File: FAQ-sortbib.html

package info (click to toggle)
texlive-doc 2007.dfsg.2-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 129,872 kB
  • ctags: 3,330
  • sloc: xml: 23,147; perl: 8,370; makefile: 843; sh: 352; lisp: 276; java: 159; python: 97; sed: 4
file content (20 lines) | stat: -rw-r--r-- 1,194 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<head>
<title>UK TeX FAQ -- question label sortbib</title>
</head><body>
<h3>Sorting lists of citations</h3>
<p>BibTeX has a sorting function, and most BibTeX styles sort the
citation list they produce; most people find this desirable.
<p>However, it is perfectly possible to write a
<code>thebibliography</code> environment that <em>looks</em> as if it
came from BibTeX, and many people do so (in order to save time in
the short term).
<p>The problem arises when <code>thebibliography</code>-writers decide
their citations need to be sorted.  A common misapprehension is to
insert <code>\</code><code>bibliographystyle{alpha}</code> (or similar) and expect
the typeset output to be sorted in some magical way.  BibTeX
doesn&rsquo;t work that way! &mdash; if you write <code>thebibliography</code>,
you get to sort its contents.  BibTeX will only sort the contents
of a <code>thebibliography</code> environment when it creates it, to
be inserted from a <code>.bbl</code> file by a <code>\</code><code>bibliography</code> command.
<p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=sortbib">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=sortbib</a>
</body>