I have found a Bibtex style that suits my requirements very well as it presents my sources exactly how I want.
I am using the \nocite{*}
command to display all my bibliography sources from my .bib
file. My issue is that the sources then appear in the order that they are in the Bib file rather than in alphabetical order by author surname.
Is there any way someone can tell me how to edit the bst file to make the references appear in alphabetical order rather than in the listed order?
I have been searching around for ages trying to sort this myself but to no avail.
Best Answer
Sorting of references is a job for the bibliography style file
.bst
. The bibliography style you are usingcj.bst
is set-up to not sort the references, or rather to print them in the order they are cited.\nocite{*}
then gives the order they are listed in thebib
file.Reading the file
cj.bst
you can see that it has been generated by themakebst
utility ofcustom-bib
, plus a final bit of hand editing. Fortunately, thebst
file tells us thatcustom-bib
was provided with the optionsThe first option
seq-no
means that references are to be listed in the order they are cited. To effect sorting, we should reproduce this creation process without this first option, as sorting by author name is the default. This may accomplished by creating the filecjj.dbj
:and running
latex
on this file to producecjj.bst
. Using this style as followswith
bib.bib
containingproduces
with the references sorted by author.
This may be good enough for your purposes. As mentioned above, the file
cj.bst
contains a couple of edits by hand to change some fine details of the printing of certain references. These are clearly flagged in that file, and it should not be too hard to implement those changes should you be so inclined.