[Tex/LaTex] How to successfully put a bibliography in a report on TexShop

biblatex

I'm trying to put a bibliography in my LaTeX document, but I get various errors when I run it in BibTeX (saying no \citation found etc.), and no bibliography is printed in the PDF when I typeset it in LaTeX. My code reads as follows:

\documentclass[12pt]{report}
...
\usepackage{biblatex}
\addbibresource{SUSYBib.bib}
...
\begin{document}
...\cite{1}...
...\cite{2}...
\nocite{*}
\printbibliography
\end{document}

And my .bib file reads as

@book{1,
title={The Schrödinger Equation},
author={F. A. Berezin, M. A. Shubin},
year={1983},
publisher={Moscow State University, Moscow},
pages={57-59}
}
@book{2,
title={An Introduction to Measure Theory},
author={Terence Tao},
year={2011},
publisher={American Mathematical Society},
pages={91}
}

Best Answer

I think you are missing the inputenc package in your preamble. It's needed to tell your (La)TeX which character encoding you use, eg. for the ö in your bibliography:

\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}

\usepackage[backend = biber]{biblatex}
\addbibresource{SUSYBib.bib}
\begin{document}
\cite{ab}
\cite{bc}
\nocite{*}
\printbibliography
\end{document}

You need to configure your TeXShop to compile the document properly, for me:

  1. Configuring TeXShop to run biber: tex.stackexchange.com/questions/154751/…
  2. and selecting "pdflatexmk" from the dropdown menu (to the left of the typset button)

worked.

Surprisingly, adding % !TEX TSprogram = pdflatexmk as first line in the .tex file (as suggested in the comments) did not work (TeXShop 3.62, texlive 2016).