I am using the Metropolis theme in beamer, and wondering why having \includegraphics
within braces {...}
doesn't work (image doesn't get added in). I get a blank slide (with title) with the code below:
\documentclass[10pt]{beamer}
\usetheme[progressbar=frametitle]{metropolis}
\begin{document}
\begin{frame}{test}
{\hfill\includegraphics[width=1cm]{example-image}\hfill}
\end{frame}
\end{document}
Commenting out the metropolis
line, (thus, switching to using the default beamer theme), the image appears as expected. So I know this behaviour has something to do with the metropolis theme.
I know I can remove the braces, but you can imagine a scenario where I want some effect localized/grouped, e.g. \color{blue}
.
I want to know why does this happen?
\begin{frame}{test}
the image shows up. I prefer the cleaner syntax\begin{frame} \frametitle{test} {\hfill\includegraphics[width=1cm]{example-image}\hfill} \end{frame}
, with which the problem is absent. – user121799 Feb 6 '19 at 0:23\begin{frame}
takes a second argument? do you know what this second argument means/refers to? – ksgj1 Feb 6 '19 at 0:26\frametitle
because of problems I had with the other syntax. – user121799 Feb 6 '19 at 0:28