If I use the caption package with beamer frames, I get a 'missing number treated as zero'.
The following compiles with texlive, but if I uncomment the \usepackage{caption}
line, I get the error.
\documentclass[10pt]{beamer}
\usetheme{metropolis}
\usepackage{appendixnumberbeamer}
% \usepackage{caption}
\title{Error}
\author{Author}
\institute{Stack Overflow}
\begin{document}
\maketitle
\begin{frame} \frametitle{Introduction}
\begin{columns}
\begin{column}{0.5\textwidth}
\begin{figure}
\includegraphics[width=.9\linewidth]{example-image-duck}
\caption{Duck\footnote[frame]{Duck Duck}}
\end{figure}
\end{column}
\begin{column}{0.5\textwidth}
\begin{figure}
\includegraphics[width=.9\linewidth]{example-image-duck}
\caption{Duck\footnote[frame]{Duck Duck}}
\end{figure}
\end{column}
\end{columns}
\end{frame}
\end{document}
[frame]
option added to the macro\footnote[frame]{}
. Removing this option will make it work :\caption{Duck\footnote{Duck Duck}}
. Where did you get this[frame]
option?beamer
is incompatible withcaption
.beamer
already provides caption-related templates to control style of\caption
, seebeamer
manual, sec. 12.6. Hence you can avoid loadingcaption
by make use of those beamer caption templates.\footnote[frame]
is supported bybeamer
to indicate "this footnote should be typeset at the bottom of the frame", see beamer manual, sec. 12.12. Furthermore, although no errors, using\caption{Duck \footnote{Duck Duck}}
produces wrong output, in which the width of column is wider than expected. Frombeamer
issue #268, Incompatibility of beamer with caption package, it seems the compatibility issue is never solved.caption
side, it do fixed compatibility reported issues withbeamer
, see here. So if one can reduce the problem to becaption
-related, an issue to gitlab.com/axelsommerfeldt/caption/-/issues is welcome. @AndréC I checked again, the too-wide column issue is reproducible even withoutcaption
. Sorry for my mis-judgement.caption
. See gitlab.com/axelsommerfeldt/caption/-/issues/84.