By default (using the plain
style) BibTeX orders citations alphabetically.
How to order the citations by order of appearance in the document?
By default (using the plain
style) BibTeX orders citations alphabetically.
How to order the citations by order of appearance in the document?
Change
to
Then rebuild it a few times to replace the
.aux
and.bbl
files that were made when you used the plain style.Or simply delete the
.aux
and.bbl
files and rebuild.If you use MiKTeX you shouldn't need to download anything extra.
The best I came up with is using the
unsrt
style, which seems to be a tweakedplain
style. i.e.However what if my style is not the default?
There are three good answers to this question.
unsrt
bibliography style, if you're happy with its formatting otherwisemakebst
(link) tool to design your own bibliography styleAnd my personal recommendation:
biblatex
package (link). It's the most complete and flexible bibliography tool in the LaTeX world.Using
biblatex
, you'd write something likeI often use the bibliography style
natbib
because it supplies quite complete set of formats as well as tags for us.I use
natbib
in combination withbibliographystyle{apa}
. Eg:with
unsrt
the problem is the format. use\bibliographystyle{ieeetr}
to get refences in order of citation in document.