kks32 / phd-thesis-template

A LaTeX / XeLaTeX / LuaLaTeX PhD thesis template for Cambridge University Engineering Department (CUED)
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/
MIT License
820 stars 392 forks source link

Sort references in order of appearance not working #212

Closed JamesTimothyMeech closed 3 years ago

JamesTimothyMeech commented 3 years ago

Hello

Thanks for the template, it has saved me a lot of time! I'm trying to set up biblatex so that the first reference that appears in the text as [1] rather than [196] as it does at the moment.

I have attempted to follow the instructions in the README.md and set

\documentclass[a4paper,12pt,times,numbered,print,index,custombib]{PhDThesisPSnPDF}

in thesis.tex

\ifuseCustomBib
\RequirePackage[backend=biber, style=numeric-comp, citestyle=numeric, sorting=none, natbib=true]{biblatex}
\addbibresource{References/references.bib} 
\fi

in preamble.tex.

I get the following error message when I run make

Class PhDThesisPSnPDF Warning: Bibliography selection conflict: A bibliography 
style aleady specified. Please check the document class options in case you hav
e defined two bibliography styles. on input line 238.

What am I doing wrong here?

JamesTimothyMeech commented 3 years ago

Looks like the solution is to do nothing of what I described above and instead comment out

\bibliographystyle{apalike}

and uncomment

\bibliographystyle{unsrt}

in thesis.tex