![仅引用作者或年份,无 natbib](https://linux22.com/image/266919/%E4%BB%85%E5%BC%95%E7%94%A8%E4%BD%9C%E8%80%85%E6%88%96%E5%B9%B4%E4%BB%BD%EF%BC%8C%E6%97%A0%20natbib.png)
我必须提交这篇文章,其中我需要引用
Smith [2012]
而不是
[Smith, 2012]
简单。natbib
我只需使用\citet
。只是我刚刚意识到出版商不想要natbib
我的 LaTeX 文件。
除了手写“Smith [2012]”之外,还有其他选择吗?
答案1
biblatex
目前尚不清楚解决方案中是否允许使用。但是,如果biblatex
确实允许,我建议使用biblatex
(\textcite
以及\citeauthor
和\citeyear
),并进行以下调整:
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{mybiblio.bib}
@Book{Batchelor:2000,
address = {Cambridge, UK},
author = {Batchelor, G.{\,}K.},
title = {An Introduction to Fluid Dynamics},
publisher = {Cambridge University Press},
year = {2000},
}
\end{filecontents*}
\usepackage[style=authoryear]{biblatex}
\renewcommand*\bibopenparen{[}
\renewcommand*\bibcloseparen{]}
\addbibresource{mybiblio}
\begin{document}
\noindent
All of this is discussed in \textcite{Batchelor:2000}.\\
\citeauthor{Batchelor:2000}'s book was published in \citeyear{Batchelor:2000}.
\printbibliography
\end{document}
答案2
使用 biblatex 和命令\citeyear
。