Natbib 不显示完整的作者姓名

发布于 2024-10-01 15:02:06 字数 1451 浏览 2 评论 0原文

我无法让 natbib 显示完整的作者姓名。相反,我只得到最后一个字符。我的文档如下所示:

\documentclass[a4paper,10pt]{article}
\usepackage[sort, comma]{natbib}
\begin{document}
\section{Introduction}

According to \citet{Farmer2004}...

\bibliographystyle{plainnat}
\bibliography{./refs}
\end{document}

输出是

According to r (a)

我在 Ubuntu 10.04 上运行 Kile,我的构建顺序是 PDFLatex、BibTex、PDFLatex、PDFLatex。我还尝试在 Ubuntu 和 Windows 7 上使用 TeXworks 进行构建,结果是相同的。如果我注释掉 natbib 并使用 \cite 而不是 \citet,则输出为

According to [Farmer(2004)]

Bib 文件如下所示:

\bibitem[Farmer(2004)]{Farmer2004}
Charles Farmer.
\newblock {Effect of electronic stability control on automobile crash risk.}
\newblock \emph{Traffic injury prevention}, 5\penalty0 (4):\penalty0 317--25,
  December 2004.

.aux 文件如下所示:

\relax 
\citation{Farmer2004}
\citation{Tseng1999}
\citation{Farmer2004}
\select@language{english}
\@writefile{toc}{\select@language{english}}
\@writefile{lof}{\select@language{english}}
\@writefile{lot}{\select@language{english}}
\@writefile{toc}{\contentsline {section}{\numberline {1}Introduction}{1}}
\newlabel{sec:intro}{{1}{1}}
...
\bibcite{Farmer2004}{Farmer(2004)}

...以及下面的更多引用... \newblock ISSN 1538-9588。 \newblock \doi{10.1080/15389580490896951}。 \newblock URL \url{http://www.ncbi.nlm.nih.gov/pubmed/15545069}。

任何建议都将受到高度赞赏。

I can't get natbib to display the full author name. Instead, I only get the last character. My document looks like so:

\documentclass[a4paper,10pt]{article}
\usepackage[sort, comma]{natbib}
\begin{document}
\section{Introduction}

According to \citet{Farmer2004}...

\bibliographystyle{plainnat}
\bibliography{./refs}
\end{document}

The output of this is

According to r (a)

I am running Kile on Ubuntu 10.04, and my build order is PDFLatex, BibTex, PDFLatex,PDFLatex. I also tried building with TeXworks on both Ubuntu and Windows 7, result is identical. If I comment out natbib and use \cite instead of \citet, the output is

According to [Farmer(2004)]

The bib file looks like so:

\bibitem[Farmer(2004)]{Farmer2004}
Charles Farmer.
\newblock {Effect of electronic stability control on automobile crash risk.}
\newblock \emph{Traffic injury prevention}, 5\penalty0 (4):\penalty0 317--25,
  December 2004.

and the .aux file looks like so:

\relax 
\citation{Farmer2004}
\citation{Tseng1999}
\citation{Farmer2004}
\select@language{english}
\@writefile{toc}{\select@language{english}}
\@writefile{lof}{\select@language{english}}
\@writefile{lot}{\select@language{english}}
\@writefile{toc}{\contentsline {section}{\numberline {1}Introduction}{1}}
\newlabel{sec:intro}{{1}{1}}
...
\bibcite{Farmer2004}{Farmer(2004)}

...and some more citations below...
\newblock ISSN 1538-9588.
\newblock \doi{10.1080/15389580490896951}.
\newblock URL \url{http://www.ncbi.nlm.nih.gov/pubmed/15545069}.

Any suggestions are highly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

迟月 2024-10-08 15:02:06

我猜你没有包含你使用 newinclude 的信息,因为我今天使用 newinclude 和 natbib 遇到了这个错误,

答案是 include newinclude before natbib,然后它对我有用

\usepackage{新包含}
\usepackage{natbib}

I guess you didn't include the information that you use newclude, because I ran into this error today with newclude and natbib

the answer is include newclude before natbib, then it works (for me)

\usepackage{newclude}
\usepackage{natbib}

千仐 2024-10-08 15:02:06

感谢大家的帮助。如果其他人偶然发现这个问题,答案是“不要使用包 newinclude”。

Thanks everyone for your help. In case someone else stumbles upon this question, the answer is "do not use package newclude".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文