我输入了序言
\usepackage[round]{natbib}
\usepackage{cite}
\newcommand{\bibfont}{times}
然后最后
\bibliography{mybibfile}{}
\bibliographystyle{plainnat}
\nocite{*}
在 bib 文件中我写了例如
@article{colizza08,
title = "Epidemic modeling in metapopulation systems with heterogeneous coupling pattern: Theory and simulations",
journal = "Journal of Theoretical Biology",
volume = "251",
number = "",
pages = "450-467",
year = "2008",
url = "",
author = "Vittoria Colizza and Alessandro Vespignani",
}
在 tex 文件中我引用为\citep{colizza08}
我希望在论文中以以下身份出现:
Colizza, V., Vespignani, A., 2008. 具有异质耦合模式的元种群系统中的流行病建模:理论与模拟。理论生物学杂志 251, 450–467。
当我得到:
Vittoria Colizza 和 Alessandro Vespignani。具有异质耦合模式的元种群系统中的流行病建模:理论与模拟。《理论生物学杂志》,251:450-467,2008 年。
即使我写
author = "Colizza,V. and Vespignani,A.",
我仍然得到:
V. Colizza 和 A. Vespignani. 元种群系统中的流行病建模
那么,我怎样才能让作者姓名按以下顺序出现:姓氏、名字的首字母,并获得我想要的输出?
答案1
以下是如何使用biblatex
。(该authoryear-comp
样式大致相当于natbib
作者年份格式加上cite
。)有关自定义参考书目格式的一般信息,请参阅自定义 biblatex 样式的指南。
\documentclass{article}
\usepackage[style=authoryear-comp,firstinits=true]{biblatex}
\DeclareNameAlias{sortname}{last-first}
\renewcommand*{\multinamedelim}{\addcomma\space}
\renewcommand*{\finalnamedelim}{\addcomma\space}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{colizza08,
title = "Epidemic modeling in metapopulation systems with heterogeneous coupling pattern: Theory and simulations",
journal = "Journal of Theoretical Biology",
volume = "251",
number = "",
pages = "450-467",
year = "2008",
url = "",
author = "Vittoria Colizza and Alessandro Vespignani",
}
\end{filecontents}
\addbibresource{\jobname.bib}
\nocite{*}
\begin{document}
\printbibliography
\end{document}