plainnat
我正在使用带有类的样式beamer
。我正在使用 BibTeX,然后发生了这种情况。我的.bib
@Article{ TiWuNg07,
title = "{Performance analysis and improvement for BitTorrent-like file sharing systems}",
author = "Y. Tian and Di Wu and KW Ng",
journal = "Concurrency and Computation: Practice and Experience",
volume = "19",
number = "13",
pages = "1811--1835",
year = "2007",
publisher = "John Wiley \& Sons"
}
显示的内容如下bibitem
:
\bibitem[Tian et~al.(2007)Tian, Wu, and Ng]{TiWuNg07}
Y.~Tian, Di~Wu, and KW~Ng.
\newblock {Performance analysis and improvement for BitTorrent-like file
sharing systems}.
\newblock \emph{Concurrency and Computation: Practice and Experience},
19\penalty0 (13):\penalty0 1811--1835, 2007.
最小代码.tex
:
\documentclass[10pt,pdfpagelabels]{beamer}
\usepackage{tabulary}
\usepackage{snapshot}
\usepackage{todonotes}
\usefonttheme[onlymath]{serif}
\setbeamercovered{transparent=100}
\mode<presentation>
{
\usetheme{Warsaw}
\setbeamercovered{transparent}
}
\usepackage[spanish]{babel}
\usepackage[latin1]{inputenc}
\usepackage{lmodern}
\hypersetup{pdfnewwindow=true}
\begin{document}
\begin{frame}{Tian, Wu, Ng - 2007\cite{TiWuNg07}}
\end{frame}
\section{Referencias}
\begin{frame}[allowframebreaks]{Referencias}
\bibliographystyle{plainnat}
\bibliography{modelo}
\end{frame}
\end{document}
引文出现的[Tian et~al.(2007)Tian, Wu, and Ng]
时间应该是[Tian et~al.(2007)]
如您所见,在引用文本中,作者再次出现在年份之后。为什么会发生这种情况?我该如何解决而不手动更改?其他所有都bibitems
正确显示。
答案1
是什么让你认为plainnat
没有natbib
包装这种风格也能奏效?;-)
将以下内容添加到您的序言中(第二行代码将natbib
与之兼容beamer
):
\usepackage{natbib}
\newcommand*{\newblock}{}
并在文档中使用\citep
而不是。\cite
答案2
您正在使用参考书目样式plainnat
,该样式旨在与natbib
包一起使用,而无需实际加载此包。natbib
在标签中存储一些额外信息,例如作者姓名和年份。要获得正确的标签,请加载natbib
,或将样式更改为plain
。