我知道存在这样的情况:仅引用一个参考资料的页码然而,我的问题对此进行了扩展。
Tex 文件:
\documentclass{article}
\usepackage{natbib}
\bibliographystyle{agsm}
\begin{document}
Reference to the book without parenthesis: \cite{kopka2003guide}
Reference to specific page without parenthesis: \cite[p. 150]{kopka2003guide}
Reference to the book with parenthesis: \citep{kopka2003guide}
Reference to specific page wit parenthesis: \citep[p. 150]{kopka2003guide}
\bibliography{references.bib}
\end{document}
现在我期望得到这样的结果:
Reference to the book without parenthesis: Kopka & Daly (2003)
Reference to specific page without parenthesis: Kopka & Daly (2003, p 150)
Reference to the book with parenthesis: (Kopka & Daly 2003)
Reference to specific page wit parenthesis: (Kopka & Daly 2003, p 150)
但最终我得到的是这样的:
Reference to the book without parenthesis: Kopka & Daly (2003)
Reference to specific page without parenthesis: (Kopka & Daly 2003, p 150)
Reference to the book with parenthesis: (Kopka & Daly 2003)
Reference to specific page wit parenthesis (Kopka & Daly 2003, p 150)
那么,有没有办法可以得到对特定页面的实际引用而不需要括号(情况 2)?
围兜文件:
@book{kopka2003guide,
title = {Guide to LaTeX (Adobe Reader)},
author = {Kopka, H. and Daly, P.W.},
isbn = 9780321617743,
year = 2003,
publisher = {Pearson Education}
}
答案1
你问,
那么,有没有办法最终得到对特定页面的实际引用,而无需括号 [围绕引用标注的作者部分](情况 2)?
是的:只需使用\citet
而不是\cite
。
\documentclass{article}
\begin{filecontents}[overwrite]{references.bib}
@book{kopka2003guide,
title = {Guide to LaTeX (Adobe Reader)},
author = {Kopka, H. and Daly, P.W.},
isbn = 9780321617743,
year = 2003,
publisher = {Pearson Education}
}
\end{filecontents}
\usepackage{har2nat} % to maximize compatibility with hyperref package
\bibliographystyle{agsm}
\begin{document}
Reference to the book without parenthesis: \citet{kopka2003guide}
Reference to specific page without parenthesis: \citet[p.\ 150]{kopka2003guide}
\medskip
Reference to the book with parenthesis: \citep{kopka2003guide}
Reference to specific page with parenthesis: \cite[p.\ 150]{kopka2003guide}
\bibliography{references.bib}
\end{document}