The TeX FAQ

Frequently Asked Question List for TeX

Bibliographies

Table of contents rearranges “unsrt” ordering

If you’re using the unsrt bibliography style, you’re expecting that your bibliography will not be sorted, but that the entries will appear in the order that they first appeared in your document.

However, if you’re unfortunate enough to need a citation in a section title, and you also have a table of contents, the citations that now appear in the table of contents will upset the “natural” ordering produced by the unsrt style. Similarly, if you have citations in captions, and have a list of figures (or tables).

There’s a pretty simple “manual” method for dealing with the problem — when you have the document stable:

  1. Delete the aux file, and any of toc, lof, lot files.
  2. Run LaTeX.
  3. Run BibTeX for the last time.
  4. Run LaTeX often enough that things are stable again.

Which is indeed simple, but it’s going to get tedious when you’ve found errors in your “stable” version, often enough.

The package notoccite avoids the kerfuffle, and suppresses citations while in the table of contents, or lists of figures, tables (or other floating things: the code is quite general).

FAQ ID: Q-bibtocorder
Tags: citations