BibTex(natbib)弄乱了引用顺序

BibTex(natbib)弄乱了引用顺序

我正在尝试使用 Natbib 来处理平方数。但是,在我的文本中,引用显示不正确。第一次尝试时,它正确地对引用进行了编号,因此文本中的第一个引用将被命名为 [ 1],第二个引用将被命名为 [2],依此类推。但是,当我移动一些文本时,引用仍然保留其原始编号,而不是自动检测哪个引用排在前面。

为了说明我的问题:

引用顺序问题

这是我的 MWE:

\documentclass[a4paper,11pt]{book} 
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[square,numbers]{natbib} 
\bibliographystyle{abbrvnat}

\begin{document}

This was once citation 2, but should be citatation 1, since it now appears first: \cite{pmid25348421}
This was once citation 1, but should be citation 2, since it currently appears second: \cite{pmid19995345}

\bibliography{Referencer}

\end{document}

我尝试删除所有 .aux 文件,也在互联网上搜索解决方案,但都无济于事。

答案1

您想要的书目样式是“未分类”,即书目项目按出现顺序列出。因此你需要

\bibliographystyle{unsrtnat}

而不是abbrvnat

请记住在完成更改后重新运行 BibTeX。

相关内容