I am writing my PhD dissertation in LaTeX and want to include a bibliography, obviously. However, I'm having problems making this work at all. Instead of trying to make it work in my multiple dissertation LaTeX files, I made a minimum working example of it, but not even that works! Can anybody please help me with telling me what I'm doing wrong? I want an author year citation style, by the way. No numbers, just citations of author year in the text and a reference list sorted alphabetically at the end.
This is my minimum working example, example.tex:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[backend=biber,style=alphabetic,citestyle=authoryear]{biblatex}
\addbibresource{library.bib}
\begin{document}
This is a test \cite{bakerstair}.
\printbibliography
\end{document}
Here's the content of my library.bib file:
@Article{bakerstair,
author = {Baker, Doran J. and Stair, A. T.},
title = {Rocket measurements of the altitude distributions of the hydroxyl airglow},
journal = {Physica Scripta},
year = {1988},
volume = {37},
pages = {611-622},
}
Error messages I get after running PdfLaTeX + Bib(la)tex + PdfLaTeX(x2) + View Pdf in TeXMaker:
example.tex. Warning. line 9. Citation 'bakerstair' on page 1 undefined. example.tex. Warning. line 11. Empty bibliography. example.tex. Warning. line 1. There were undefined references. example.tex. Warning. line 1. Please (re)run Biber on the file: example and rerun LaTeX afterwards.
I have no idea what I'm doing wrong and it's driving me crazy.
backend=biber, so that should be OK. Do you maybe have the "use a 'build' subdirectory" option enabled? Can you find any temporary files in the directory (.aux,.bcf,.log, ...) – moewe Mar 17 '16 at 15:06biblatexversions match. (Check the biblatex or Biber doc for a table of compatible versions.) – moewe Mar 17 '16 at 15:28\listfilesto the very top of your file you can check thebiblatexversion in the.logfile after a compilation. The Biber version can be found in the.blgfile. (You can also just do an update to make sure the versions match.) – moewe Mar 18 '16 at 06:58