默认情况下(使用“plain”样式),BibTeX按字母顺序排序引用。
如何按照文档中出现的顺序对引用进行排序?
默认情况下(使用“plain”样式),BibTeX按字母顺序排序引用。
如何按照文档中出现的顺序对引用进行排序?
amsrefs
,它们将覆盖上述所有内容 - 因此请注释掉:\usepackage{amsrefs}
。datatool包提供了一种很好的方法,通过将参考文献首先转换为某些数据库格式,按任意标准进行排序。
以下是一个简短的例子,取自这里并发布以备记录:
\documentclass{article}
\usepackage{databib}
\begin{document}
% First argument is the name of new datatool database
% Second argument is list of .bib files
\DTLloadbbl{mybibdata}{acmtr}
% Sort database in order of year starting from most recent
\DTLsort{Year=descending}{mybibdata}
% Add citations
\nocite{*}
% Display bibliography
\DTLbibliography{mybibdata}
\end{document}
我在使用natbib
与bibliographystyle{apa}
相结合。例如:
\begin{document}
The body of the document goes here...
\newpage
\bibliography{bibliography} % Or whatever you decided to call your .bib file
\usepackage[round, comma, sort&compress ]{natbib}
bibliographystyle{apa}
\end{document}