默认情况下(使用普通样式)BibTeX按字母顺序排序引用。

如何按文献中出现的顺序排列引文?


当前回答

我使用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}

其他回答

unsrt的问题在于格式。使用\bibliographystyle{ieeetr}在文档中按引用顺序获取参考。

我想到的最好的是使用unsrt风格,这似乎是一个调整的普通风格。即。

\bibliographystyle{unsrt}
\bibliography{bibliography}

但是,如果我的样式不是默认的呢?

如果你碰巧使用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}

我对Bibtex(和Latex一般来说)有点陌生,我想恢复这个旧帖子,因为我发现它出现在我的谷歌搜索查询中关于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/wiki/LaTeX/Bibliography_Management