[Tex/LaTex] How to populate a bibliography in the book class

apa-stylebibliographiesthesis

Today I have been playing with LATEX and I really like it up to now! But i have a problem with populating an apa style bibliography. Right now I am busy with making a template for a thesis and i am doing this by use of the book documentclass. I have been able to produce the following (in the preamble):

\usepackage{csquotes}
\usepackage[american]{babel}
\usepackage[style=apa,natbib=true]{biblatex}
\bibliography{mylib}
\DeclareLanguageMapping{american}{american-apa}

(in the middle of my code to call the cite):

\cite{Vickrey1961}.

(At the end of my document, before \end(document) to populate the bibliography):

 \printbibliography

Though, it doesn't work. When i compile the code neither errors nor the bibliography with references are being displayed. Does somebody can help me out??

Tnx in advance

Best Answer

This is how it works:

First run: latex-compiler Biblatex generates a file mydocument.bcf in which it lists your bibliography files and the citation it needs.

Second run: biber: biber reads the mydocument.bcf file and your bib and creates the needed latex-code for the citations and the bibliography. The output is written to the mydocument.bbl

Third run: latex-compiler LaTeX reads the created mydocument.bbl and puts everything in the right places.

Fourth run: latex-compiler This fourth run is sometimes needed because of the changing labels of citations and the bibliography itself page numbers might have changed and the table of contents has to be updated.

latexmk automates this process, it looks itself what has to be run how many times and when.

What engine do you use? If you are using biblatex with biber i would recommend one of the newer native-unicode engines, so either lualatex or xetex.

Related Question