1

Bibliography is not showing up:

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

\usepackage[utf8]{inputenc}
\usepackage{amsmath, amsthm, amssymb}
\usepackage[table,xcdraw]{xcolor}
\usepackage{hyperref}
\usepackage{booktabs}

\bibliographystyle{apalike}
\cleardoublepage
\bibliography{library}

Absolutely nothing happens. Not even a .blg file is produced. Running with pdflatex, bibtex, pdflatex, pdflatex. The bib file is produces by Mendeley. And .bbl is empty.

In Winedt I get:

I found no \bibdata command---while reading file thesis.aux I found no \bibstyle command---while reading file thesis.aux (There were 2 error messages)

There is not \bibstyle{...} or \bibdata{...} in my .aux file.

Iroxk
  • 11
  • Welcome to TeX.SE. Since you've specified backend=biber, you should biber instead of bibtex. – Mico Sep 01 '15 at 13:38
  • Thank you. I changed to \RequirePackage[backend=biber, style=numeric-comp, citestyle=numeric, sorting=nty, natbib=true]{biber}. Nothing happens. – Iroxk Sep 01 '15 at 13:45
  • style=numeric-comp, citestyle=numeric seems odd to me, it will produce exactly the output of style=numeric (as numeric and numeric-comp differ only in their cite styles), or did you want style=numeric-comp. You will have to run Biber steadiness of BibTeX, see Biblatex with Biber: Configuring my editor to avoid undefined citations for help on the configuration of your editor. – moewe Sep 01 '15 at 13:47
  • You should probably get rid of the temporary/auxiliary files afterwards to make sure you don't get spurious errors/warnings – moewe Sep 01 '15 at 13:48
  • I am a beginner with latex, trying to get citations from Mendeley. I just want the most simple thing. Can I just use Biblatex, or does that make no sense? Removed the aux files and still nothing. – Iroxk Sep 01 '15 at 13:51
  • I removed everyting and replaced with: \bibliographystyle{apalike} \bibliography{library}. Can this work with a bib file? – Iroxk Sep 01 '15 at 13:57
  • Sorry I wasn't clear in my instructions. The directive \RequirePackage[backend=biber, ...]{biblatex} is fine. It's just that you need to run pdfLaTeX, biber (not BibTeX!), and pdfLaTeX twice more. biber and bibtex are two external, "back-end" programs. – Mico Sep 01 '15 at 14:01
  • I understand. To simplify stuff (I cannot run biber with texworks or winedt as far as I know) I removed that part. Simply running: – Iroxk Sep 01 '15 at 14:09
  • \documentclass[a4paper,12pt,times,numbered,print,index]{Classes/PhDThesisPSnPDF} \bibliographystyle{apalike} \bibliography{library} Still no luck. – Iroxk Sep 01 '15 at 14:10
  • Please refer to Biblatex with Biber: Configuring my editor to avoid undefined citations on how you can make your editor run Biber for your instead of BibTeX. If you compile from the command line you just need to replace the call bibtex foo.aux by biber foo. If you use another way to compile your document, please let us know. – moewe Sep 01 '15 at 14:10
  • You have to install Biber first, of course. – moewe Sep 01 '15 at 14:10
  • Thank you, I thought I need it, but I dont. I would prefer to make it work like this. – Iroxk Sep 01 '15 at 14:11
  • OK, in that case your are not using biblatex. I will re-tag your question appropriately. You will need to make sure to run BibTeX. See http://tex.stackexchange.com/q/63852/35864 – moewe Sep 01 '15 at 14:24
  • In that case you will have to remove all the code regarding biblatex in your document. Please explain in more detail how the second approach does not work. – moewe Sep 01 '15 at 14:27
  • I removed the first part and left what is important. – Iroxk Sep 01 '15 at 14:38
  • 4
    I'm voting to close this question as off-topic because it was about a stray \end{document} left in one of the \input/\included chapters blocking further execution of bibliography commands at the end. (See self-answer below.) – moewe Sep 01 '15 at 14:56

1 Answers1

-1

Problem found. There was an \end{document} in one of the chapters. References were not even called.

Stefan Kottwitz
  • 231,401
Iroxk
  • 11