我的tex檔案是
\documentclass[12pt, letterpaper]{article}
\usepackage{natbib}
\bibliographystyle{aer}
\usepackage[left=1in,top=1.5in,right=1in,bottom=1.5in]{geometry}
\usepackage[normalem]{ulem}
\usepackage{times}
\begin{document}
\nocite{*}
\bibliography{MyBib}
\end{document}
MyBib.bib 是
@inbook{GL2022,
author={Ggg, Iii and Lll, Yyy},
title={STD},
booktitle={FST},
publisher={CUP},
editor={Fff, Jjj and Kkk, Aaa and Sss, Ttt},
pages={123--456},
year={2345},
place={Cambridge}
}
如果編譯 tex 文件,產生的引用看起來會損壞:
GGG、Iii 和 Yyy Lll, 性病,杯子,
另一方面,我期望
GGG、Iii 和 Yyy Lll,“STD”,請參閱:Fff、Jjj、Aaa KKK 和 Ttt Sss,編輯。FST,劍橋:CUP:2345:123--456
或類似的東西。我並不堅持我上面寫的確切格式,但我認為這足以表明我只想透過輸入所有資訊來獲得合理的輸出。
我非常感謝任何關於我出錯的地方的建議。感謝您的時間!
答案1
我非常感謝任何關於我出錯的地方的建議。
您對手頭上的條目使用了錯誤的條目類型。你應該使用@incollection
,不是 @inbook
。並且欄位名稱place
錯誤;它應該是address
。
\documentclass[12pt, letterpaper]{article}
\begin{filecontents}[overwrite]{MyBib.bib}
@incollection{GL2022,
author ={Ggg, Iii and Lll, Yyy},
title ={STD},
booktitle={FST},
publisher={CUP},
editor ={Fff, Jjj and Kkk, Aaa and Sss, Ttt},
pages ={123--456},
year ={2345},
address ={Cambridge}
}
\end{filecontents}
\usepackage{natbib}
\bibliographystyle{aer}
\usepackage[hmargin=1in,vmargin=1.5in]{geometry}
\usepackage[normalem]{ulem}
\usepackage{newtxtext,newtxmath} %{times} 'times' is obsolete
\usepackage[scaled=0.86]{helvet}
\begin{document}
\nocite{*}
\bibliography{MyBib}
\end{document}