BibTeX, biblatex and biber ⇒ natbib, custom bibliographystyle, sort order problem
-
- Posts: 12
- Joined: Thu Dec 16, 2010 2:09 pm
natbib, custom bibliographystyle, sort order problem
I'm using XeLaTeX to write a thesis using the style memoir. I'm having a problem with the ordering of my bibliography references. I use the natbib package with number style references and the sort option \usepackage[numbers,sort]{natbib}.
The problem is that the sort order of the references is according to how they are ordered in the .bib file, and I would like to have them ordered according to whatever is actually cited first. I have attached an example with two papers, one by Medalia and one by Goodsell.
It doesn't matter if I cite Medalia first and Goodsell second, or the other way around. Because Medalia is first in the .bib file, that paper always ends at number 1, even if I cite Goodsell first.
If I change the order of the papers in the .bib file, then Goodsell is always first, even if I cite Medalia first.
Can anyone help me sort this (pun intended)?
Vic
- Attachments
-
- vic.bst.txt
- .bst file (had to rename to be allowed to post)
- (23.9 KiB) Downloaded 269 times
-
- medalia-goodsell.tex
- .tex file
- (1.09 KiB) Downloaded 219 times
-
- medalia-goodsell.bib
- .bib file
- (1.96 KiB) Downloaded 221 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
-
- Posts: 12
- Joined: Thu Dec 16, 2010 2:09 pm