1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<head>
<title>UK TeX FAQ -- question label bibtocorder</title>
</head><body>
<h3>Table of contents rearranges “<i>unsrt</i>” ordering</h3>
<p/>If you’re using the <i>unsrt</i> bibliography style, you’re
expecting that your bibliography will <em>not</em> be sorted, but that
the entries will appear in the order that they first appeared in your
document.
<p/>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 <i>unsrt</i> style. Similarly, if you have
citations in captions, and have a list of figures (or tables).
<p/>There’s a pretty simple “manual” method for dealing with the
problem — when you have the document stable:
<ol>
<li> Delete the <code>.aux</code> file, and any of <code>.toc</code>,
<code>.lof</code>, <code>.lot</code> files.
<li> Run LaTeX.
<li> Run BibTeX for the last time.
<li> Run LaTeX often enough that things are stable again.
</ol>
Which is indeed simple, but it’s going to get tedious when you’ve
found errors in your “stable” version, often enough.
<p/>The package <i>notoccite</i> 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).
<dl>
<dt><tt><i>notoccite.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/misc/notoccite.sty">macros/latex/contrib/misc/notoccite.sty</a>
</dl>
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=bibtocorder">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=bibtocorder</a>
</body>
|