Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to order citations by appearance using BibTeX?

Tags:

latex

bibtex

By default (using the plain style) BibTeX orders citations alphabetically.

How to order the citations by order of appearance in the document?

like image 772
Brendan Avatar asked Sep 27 '08 22:09

Brendan


People also ask

Which bibliography style is used to generate references in the order they are cited in the document?

You can manage your references and bibliography in LaTex using the BibTex system. BibTex allows you to automatically generate and format a bibliography in a LaTeX document. You can do this by storing them in separate BibTeX database files (. bib extension).

How do you cite using BibTeX?

Use BibTeX To do this we need the commands \bibliography (which tells LaTeX where the . bib file is located) and \bibliographystyle (which selects the appropriate bibliography style we need). Type your text here. This text requires a citation \cite{Dummy:1} to embed the citation in the required position in the text.


1 Answers

There are three good answers to this question.

  • Use the unsrt bibliography style, if you're happy with its formatting otherwise
  • Use the makebst (link) tool to design your own bibliography style

And my personal recommendation:

  • Use the biblatex package (link). It's the most complete and flexible bibliography tool in the LaTeX world.

Using biblatex, you'd write something like

\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} 
like image 108
Will Robertson Avatar answered Sep 19 '22 08:09

Will Robertson