默认情况下(使用 plain 样式)分的订单引文字母顺序排列。

如何以引用,通过顺序出现在文档?

有帮助吗?

解决方案

有三个很好的答案,这个问题。

  • 使用 unsrt 参考书目风格,如果你很高兴与其格式,否则
  • 使用 makebst (链接) 工具来设计你自己的风格参考书目

和我个人的建议:

  • 使用 biblatex(链接).这是最完整而灵活的工具的参考书目中的乳胶的世界。

使用 biblatex, 你会写的东西喜欢

\documentclass[12pt]{article}
\usepackage[sorting=none]{biblatex}
\bibliography{journals,phd-references} % Where journals.bib and phd-references.bib are BibTeX databases
\begin{document}
\cite{robertson2007}
\cite{earnshaw1842}
\printbibliography
\end{document}

其他提示

更改

\bibliographystyle{plain}

\bibliographystyle{ieeetr}

然后重建几次以替换使用普通样式时生成的 .aux .bbl 文件。

或者只是删除 .aux .bbl 文件并重建。

如果您使用MiKTeX,则无需额外下载任何内容。

我提出的最好的方法是使用 unsrt 样式,这似乎是一种经过调整的 plain 样式。即。

\bibliographystyle{unsrt}
\bibliography{bibliography}

但是,如果我的风格不是默认风格怎么办?

我对Bibtex(以及一般的Latex)有点新意,我想恢复这篇旧帖子,因为我发现它出现在我的许多Google搜索查询中,关于Latex参考书目的排序。

我正在为这个问题提供一个更冗长的答案,希望它可以帮助那些面临与我相同困难的新手。

以下是调用参考书目的主要.tex文件示例:

\documentclass{article}
\begin{document}

So basically this is where the body of your document goes.

``FreeBSD is easy to install,'' said no one ever \cite{drugtrafficker88}.

``Yeah well at least I've got chicken,'' said Leeroy Jenkins \cite{goodenough04}.

\newpage
\bibliographystyle{ieeetr} % Use ieeetr to list refs in the order they're cited
\bibliography{references} % Or whatever your .bib file is called
\end{document}

...以及.bib文件本身的一个示例:

@ARTICLE{ goodenough04,
AUTHOR    = "G. D. Goodenough and others", 
TITLE     = "What it's like to have a sick-nasty last name",
JOURNAL   = "IEEE Trans. Geosci. Rem. Sens.",
YEAR      = "xxxx",
volume    = "xx",
number    = "xx",
pages     = "xx--xx"
}
@BOOK{ drugtrafficker88,
AUTHOR    = "G. Drugtrafficker", 
TITLE     = "What it's Like to Have a Misleading Last Name",
YEAR      = "xxxx",
PUBLISHER = "Harcourt Brace Jovanovich, Inc."
ADDRESS   = "The Florida Alps, FL, USA"
}

请注意.bib文件中的引用以相反的顺序列出,但引用按文档中引用的顺序列出。

有关.bib文件格式的更多信息,请访问: http:// en .wikibooks.org /维基/胶乳/ Bibliography_Management

我经常使用参考书目样式 natbib ,因为它为我们提供了相当完整的格式和标签。

使用 unsrt 问题是格式。使用 \ bibliographystyle {ieeetr} 按文件中的引文顺序获取补充。

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}

如果您碰巧使用 amsrefs ,他们将覆盖以上所有内容 - 请注释掉:

<代码> \ usepackage {amsrefs}

我将 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}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top