File: FAQ-sortbib.html

package info (click to toggle)
tetex-base 3.0.dfsg.3-5
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 239,540 kB
  • ctags: 10,610
  • sloc: xml: 103,461; perl: 9,398; ruby: 2,850; python: 1,551; php: 1,067; sh: 981; lisp: 494; makefile: 371; awk: 88
file content (20 lines) | stat: -rw-r--r-- 1,182 bytes parent folder | download | duplicates (3)
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't work that way! - 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>