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
833 stars 400 forks source link

quite weird problem with reference #135

Closed shouwei closed 7 years ago

shouwei commented 7 years ago

Hi Krishna,

Thank you so much for your great work. I am using this template for my thesis.

I came across a very weird problem, here it is: if I only compile the first chapter, the cite{} reference works well; if compile many (for example two) chapters, no matter what the second chapter is, even an empty file, all the reference will be undefined.

Here is the configure for the bib and the document definition:

\ifuseCustomBib \RequirePackage[square, sort, numbers, authoryear]{natbib} % CustomBib

% If you would like to use biblatex for your reference management, as opposed to the default natbibpackage pass the option custombib in the document class. Comment out the previous line to make sure you don't load the natbib package. Uncomment the following lines and specify the location of references.bib file

%\RequirePackage[backend=biber, style=numeric-comp, citestyle=numeric, sorting=nty, natbib=true]{biblatex} \bibliography{References/references} %Location of references.bib only for biblatex

\fi

% changes the default name Bibliography -> `References' \renewcommand{\bibname}{References}

\documentclass[a4paper,11pt,times,numbered,print]{Classes/PhDThesisPSnPDF}

would you please kindly to check what the problem is? What's more, would you please show me an example of the biblatex system?

Thank you once again.

shouwei commented 7 years ago

I solved the problem. The root cause is I have many begin document and end document in different chapter files.