[Tex/LaTex] ClassicThesis, Lyx and reference ordering

bibliographiesbibtexclassicthesislyxnatbib

I am writing my PhD thesis with ClassicThesis, in LyX under Linux. Everything is working perfect… until I noticed that the order of apperance for my references is off. For example, the first listed reference in the text is reference 48 (and not 1), so the list of references is in another order than they were referred to. This of course looks… Bad to say the least. I have tried passing unsrt to natbib, tried unsrt, unsrtnat as bibstyles (Using biblatex, but with the bst file for Angewandte Chemie journal). Nothing happens, I have changed everything everywhere but the references still come in the wrong order. Anyone? Please? 🙂

Best Answer

General Remark: The port of ClassisThesis (v4.1) to LyX does not seem to be complete yet.

Probably the reason is that the main document ClassisThesis.lyx contains under "Document Settings... > Bibliography" the citation style "Natbib". Set this to "Default (Numerical)". Natbib will still be used because of

\PassOptionsToPackage{square,numbers}{natbib}
  \usepackage{natbib}

in the file classicthesis-config.tex. (Alternatively, you could remove these lines and leave the setting in LyX on "Natbib".)

Furthermore, looking at the file Bibliography.lyx (of the default Classisthesis archive) I can see the TeX code/ERT

%\bibliographystyle{plainnat} %%%%% LyX will do this

in front of the "BibTeX Generated Bibliography". Leave this as is and right click on "BibTeX Generated Bibliography > Settings..." and change the style to "unsrtnat".


If "unsrt" is used then I saw that the citation via the author name - that corresponds to \citeauthor in LaTeX - does not work.

Looking at the generated LaTeX code (via "View > View Source", "Complete Source") might help to spot any duplicated entries. In the case of Bibliography.lyx you would see this (which is okay since % denotes a comment):

%\bibliographystyle{unsrtnat} %%%%% LyX will do this

\label{app:bibliography}

\bibliographystyle{unsrtnat}
\bibliography{Bibliography}