I have a problem with references in beamer (metropolis theme) and the use of include commands. Indeed, my presentation consists of several files. Each file is included via the include command.
The problem is that when I make a reference from these files, I have a problem of an undefined reference whereas if I make a reference from a frame in the master file, there is no problem. Do you have an idea ?
Just below the master file (MWE):
\documentclass[10pt]{beamer}
\usetheme[subsectionpage=progressbar]{metropolis}
\usepackage{appendixnumberbeamer}
\usepackage{booktabs}
\usepackage[scale=2]{ccicons}
\usepackage{xspace}
\newcommand{\themename}{\textbf{\textsc{metropolis}}\xspace}
\begin{document}
% myfile included via include commande
\include{./myfile}
% reference here works fine
\begin{frame}
The reference here works fine \cite{ridge04}
\end{frame}
\begin{frame}[allowframebreaks]{Références}
\bibliography{./biblio/biblio}
\bibliographystyle{abbrv}
\end{frame}
\end{document}
myFile.tec looks like this:
\section{Contribution}
\begin{frame}
The reference does not work here \cite{ridge04} !
\end{frame}
\include? If not, use\input. – Phelype Oleinik Feb 05 '18 at 12:30myfile.tex– samcarter_is_at_topanswers.xyz Feb 05 '18 at 13:16myfile.texand notmyFile.tex? – samcarter_is_at_topanswers.xyz Feb 05 '18 at 13:52