仅显示引用年份

仅显示引用年份

目前,我正在使用这种书目样式:

\bibliography{mybib}
\bibliographystyle{apalike}

为了引用,我只使用\cite{stone2010}。这个引用看起来是这样的:

...一些文字[Stone, 2010]。还有一些文字。

现在,我想实现以下目标:在某些句子中,我已经提到了作者的名字。在这种情况下,我希望引用仅包含年份而不包含作者的名字。让我用一个例子来解释一下。目前,我有这个:

...this was developed by Stone et al.\cite{stone2000}.

...这是由 Stone 等人开发的。[Stone et al., 2000]

我想要的是:

...这是由 Stone 等人 [2000] 开发的。

我如何获得它?

答案1

您应该 (a)natbib使用选项square(将年份括在方括号中)加载引文管理包以及 (b) 用于\citet生成“文本”引文。

实际上,如果natbib加载了包,\cite则默认为\citet;因此,如果您继续使用,您将自动获得文本引用标注\cite。要生成“括号内”的引用标注(类型为“[Stone et al., 2000]”),您需要输入\citep{stone2000}

在此处输入图片描述

\RequirePackage{filecontents}
\begin{filecontents}{mybib.bib}
@article{stone2000,
   author  = "Flint Stone and Alexandra Alright and Daniel Doubts",
   title   = "Thoughts",
   journal = "Circularity Today",
   year    = 2000,
   volume  = 1,
   number  = 2,
   pages   = "3-4",
}
\end{filecontents}

\documentclass{article}
\bibliographystyle{apalike}
\usepackage[square]{natbib}
\begin{document}
\dots\ this was developed by \citet{stone2000}.
\bibliography{mybib}
\end{document}

相关内容