我有这个.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
和的组合\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}