summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-bibtocorder.html
blob: a4a1414fb2a766b162869caaee63263717ef894e (plain)
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 &#8220;<i>unsrt</i>&#8221; ordering</h3>
<p/>If you&#8217;re using the <i>unsrt</i> bibliography style, you&#8217;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&#8217;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 &#8220;natural&#8221; 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&#8217;s a pretty simple &#8220;manual&#8221; method for dealing with the
problem &#8212; 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&#8217;s going to get tedious when you&#8217;ve
found errors in your &#8220;stable&#8221; 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="http://www.tex.ac.uk/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>