I'm using BibTeX to manage my bibliography, and have about 250 references. I cannot keep track of the order they were cited in, which leads to some funny formatting. To explain, consider this scenario...
The first citation goes like this \cite[ref1, ref2, ref3], and results in an in-text citation of "[1,2,3]", and also in a bibliography entry of:
- Ref 1 details
- Ref 2 details
- Ref 3 details
All normal so far. The difficulty occurs when I cite these again, but 'out of order', i.e., \cite[ref3, ref2]. This results in an in-text citation of "[3,2]". That looks very odd. What I'd like to do is tell LaTeX/BibTeX that order doesn't matter, and for it to automatically make the second citation appear in-text as "[2,3]".
It seems like a petty request in this fake example, but for a full 'book' with over 250 references that are named by authors rather than numbers, there's no way I can do this ordering manually, particularly as references get added or deleted with revisions.
I've tried adding in the command \usepackage[sort&compress]{natbib}, but it came up with this error:
! Package natbib Error: Bibliography not compatible with author-year citations. (natbib) l.287 ...and
\NAT@force@numbers{}\NAT@force@numbers?
EDIT: Never mind, problem solved, it was as simple as adding \usepackage{cite}. Admins, feel free to delete this question.