Discussion:
Bibtex unsrt bibliography: wrong sorting?
(too old to reply)
n***@kepier.clara.net
2003-07-21 16:19:19 UTC
Permalink
I'm using unsrt style of bibliography for my thesis. I thought this was
working fine, but for some reason the \cite{} entries are being read out
of order: that is, the bibliography has entry 1 as an entry which is
from chapter 3, whereas one in chapter 1 is entry 2. I'm using \input to
split the chapters up, and using multiple files in my \bibliography{}.

Any clues as to why this might be happening?

Thanks,
--
Neil
Robin Fairbairns
2003-07-21 19:19:42 UTC
Permalink
Post by n***@kepier.clara.net
I'm using unsrt style of bibliography for my thesis. I thought this was
working fine, but for some reason the \cite{} entries are being read out
of order: that is, the bibliography has entry 1 as an entry which is
from chapter 3, whereas one in chapter 1 is entry 2. I'm using \input to
split the chapters up, and using multiple files in my \bibliography{}.
Any clues as to why this might be happening?
you've probably got entry number 1 in the chapter heading, or a
section heading or a caption. from there, it's gone to the table of
contents, list of something, or whatever, and so it _is_ the first
thing in the document.

i've got a brilliant package to solve this problem. except it doesn't
work. yet...
--
Robin Fairbairns, Cambridge
n***@kepier.clara.net
2003-07-21 23:05:41 UTC
Permalink
Post by Robin Fairbairns
Post by n***@kepier.clara.net
I'm using unsrt style of bibliography for my thesis. I thought this was
working fine, but for some reason the \cite{} entries are being read out
of order: that is, the bibliography has entry 1 as an entry which is
from chapter 3, whereas one in chapter 1 is entry 2. I'm using \input to
split the chapters up, and using multiple files in my \bibliography{}.
Any clues as to why this might be happening?
you've probably got entry number 1 in the chapter heading, or a
section heading or a caption. from there, it's gone to the table of
contents, list of something, or whatever, and so it _is_ the first
thing in the document.
Yes, its in a caption...damn that's annoying...so it appears in the list
of figures...aha, that's what that .lof file is!
[insert sound of light bulb turning on]
Post by Robin Fairbairns
i've got a brilliant package to solve this problem. except it doesn't
work. yet...
Well, strictly speaking, I suppose the list of figures goes first...yet
the citation makes more sense in the caption ;|

So when will the fix be finished? ;)

Thanks for the hint,
--
Neil
Donald Arseneau
2003-07-22 02:28:31 UTC
Permalink
Post by n***@kepier.clara.net
So when will the fix be finished? ;)
It will be fixed as soon as you clear away the toc/lof before running
bibTeX. Delete the .lot .lof .toc files, run latex, run bibtex,
run latex, run latex.

What use is a numeric citation in a lof? Better provide an alternate
caption without any \cite (\caption[]{}).

If you happen to use chapterbib, it fixes the problem.

Donald Arseneau ***@triumf.ca
n***@kepier.clara.net
2003-07-22 15:23:05 UTC
Permalink
Post by Donald Arseneau
Post by n***@kepier.clara.net
So when will the fix be finished? ;)
It will be fixed as soon as you clear away the toc/lof before running
bibTeX. Delete the .lot .lof .toc files, run latex, run bibtex,
run latex, run latex.
Ah, yeah, ok, that fixed it :)
In case of trouble: clean up and rebuild...rings a bell ;)
Post by Donald Arseneau
What use is a numeric citation in a lof? Better provide an alternate
caption without any \cite (\caption[]{}).
Aha :) You learn something new... :)
I was thinking of changing the place it was actually cited to the main
text anyhow...now I have to choose what to do...doh ;)
Post by Donald Arseneau
If you happen to use chapterbib, it fixes the problem.
I'm not sure this is appropriate; separate bibliography for each \include
file? Unless you mean putting the list-of-figures in a separate file
which is then included?

Ta muchly,
--
Neil
Jody M. Klymak
2003-07-22 16:16:48 UTC
Permalink
Hello Neil,
Post by n***@kepier.clara.net
Post by Robin Fairbairns
Post by n***@kepier.clara.net
I'm using unsrt style of bibliography for my thesis. I thought this was
working fine, but for some reason the \cite{} entries are being read out
of order: that is, the bibliography has entry 1 as an entry which is
from chapter 3, whereas one in chapter 1 is entry 2. I'm using \input to
split the chapters up, and using multiple files in my \bibliography{}.
Any clues as to why this might be happening?
you've probably got entry number 1 in the chapter heading, or a
section heading or a caption. from there, it's gone to the table of
contents, list of something, or whatever, and so it _is_ the first
thing in the document.
Yes, its in a caption...damn that's annoying...so it appears in the list
of figures...aha, that's what that .lof file is!
[insert sound of light bulb turning on]
You might also consider using short captions for your list of figures
which do not have the citation in them. Most implementations of
\caption accept an optional argument:

\caption[A short description]{A long-winded description that explains
everything in the figure, and discusses some data by
\cite{myadvisor52}.}

The short caption should appear in the list of figures. My University
insisted on a one sentence short caption in the list of figures.

Cheers, Jody

Loading...