BibTex 没有引用 et al. 格式的某个特定条目

BibTex 没有引用 et al. 格式的某个特定条目

bib 文件中的条目是:

@article{singhsetal2003,
  title={On the use of modified randomization device for estimating the prevalence of a sensitive attribute},
  author={Singh, S and Horn, S and Singh, R and Mangat, NS},
  journal={Statistics in transition},
  volume={6},
  number={4},
  pages={515--522},
  year={2003}
}

我将其引用为,这样\cite{singhsetal2003}产生的引文是 Singh, Horn, Singh and Mangat (2003),而不是 Singh et al. (2003),正如预期的那样。其他引文都正确地生成为 et al.

知道这里是什么问题吗?

预计到达时间:我正在使用

\catcode`'=9
\catcode``=9
\bibliography{bib2022}
\bibliographystyle{agsm}

ETA:我正在使用 TexLive 2023 和 TexStudio 编辑器。这是一个最小的工作示例:

\documentclass[12pt,a4paper,twoside,openright]{book}
\usepackage[authoryear]{natbib}

\begin{document}
\cite{singhsetal2021}
\bibliography{bib2022}
\bibliographystyle{agsm}
\end{document}

答案1

(评论太长,因此作为答案发布)

我是无法natbib如果我加载或引文管理包,就会复制您所说的遇到的问题har2nat

在此处输入图片描述

\documentclass{article} % or some other suitable document class

% create a test bib file "on the fly":
\begin{filecontents}[overwrite]{mybib.bib}
@article{singhsetal2003,
  title   = {On the use of modified randomization device for 
             estimating the prevalence of a sensitive attribute},
  author  = {Singh, S and Horn, S and Singh, R and Mangat, NS},
  journal = {Statistics in Transition},
  volume  = {6},
  number  = {4},
  pages   = {515--522},
  year    = {2003}
}
\end{filecontents}

\usepackage{natbib}
\bibliographystyle{agsm}

\begin{document}
\citet{singhsetal2003}
\bibliography{mybib}
\end{document}

相关内容