我有這個 .tex 檔:
\RequirePackage{filecontents}
\begin{filecontents}{refs.bib}
@article{CostantiniMoller2008,
title={Carotenoids are minor antioxidants for birds},
author={Costantini, D and M{\o}ller, AP},
journal={Functional Ecology},
volume={22},
number={2},
pages={367--370},
year={2008},
publisher={Wiley Online Library}
}
\end{filecontents}
\documentclass[a4paper,11pt]{article}
\usepackage[comma, sort&compress]{natbib}
\setlength{\bibsep}{0pt plus 0.3ex}
\begin{document}
\title{}
\author{me}
\date{\today}
\maketitle
\section{Header}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum \citep{CostantiniMoller2008, pers.obs.}
\bibliographystyle{agsm}
\bibliography{refs}
\end{document}
我需要在同一篇引文中引用 CostantiniMoller2008 和 pers.obs。當我嘗試按原樣解析文件時,pers.obs 僅顯示為 ?。我如何引用 CostantiniMoller2008 和 pers.obs?
答案1
您選擇的方法部分取決於您是否希望在作者和年份之間放置逗號。產生引文標註沒有\citetext
那個逗號,使用and的組合\citealt
。對於引文標註和逗號,與單一可選參數一起使用,或使用和\citep
的組合。\citetext
\citealp
\RequirePackage{filecontents}
\begin{filecontents}{refs.bib}
@article{CostantiniMoller2008,
title={Carotenoids are minor antioxidants for birds},
author={Costantini, D. and M{\o}ller, A. P.},
journal={Functional Ecology},
volume={22},
number={2},
pages={367--370},
year={2008},
publisher={Wiley Online Library}
}
\end{filecontents}
\documentclass[a4paper,11pt]{article}
\usepackage[comma, sort&compress]{natbib}
\setlength{\bibsep}{0pt plus 0.3ex}
\bibliographystyle{plainnat} % choose the appropriate bib style here
\setlength\parindent{0pt} % just for this example
\begin{document}
\citetext{\citealt[pers.~obs.]{CostantiniMoller2008}}
\citep[pers.~obs.]{CostantiniMoller2008}
or also:
\citetext{\citealp[pers.~obs.]{CostantiniMoller2008}}
\bibliography{refs}
\end{document}