I am making a handout with beamer, and I get the error message undefined control sequence
when I add the \addbibresource
command to the preamble. This seems to happen only when document class is beamer, not in articles. I have MikTex 2.9 and I use Winedt 10.
The MWE:
\documentclass[14pt, handout]{beamer}
\usepackage[english]{babel}
\usepackage{xyling}
\usepackage[normalem]{ulem}
\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}[a4paper, border shrink=5mm]
\addbibresource{ref.bib}
\begin{document}
\begin{frame}
Some text \cite{EKP2018}
\end{frame}
\end{document}
Best Answer
\addbibresource
is abiblatex
command and therefore only available ifbiblatex
is loaded.beamer
does not loadbiblatex
automatically (and neither does any other package in the preamble of the MWE), hence the command comes out as undefined. The solution is to loadbiblatex
explicitly, for example withThe error can also be reproduced for me with
article
instead ofbeamer
as document class, which makes sense becausearticle
(like most normal document classes) does not loadbiblatex
either.