0

I am using the Metropolis theme, when I attempt to use logo{} or tikz or even manually place the image, it appears underneath the "banner" that contains frame titles.

I cannot figure out how to bring the image to front (overlay it) on top of the frame title.

  • 2
    Please provide us with a minimal working example. – marmot Feb 12 at 15:41
  • I woud like to but can't figure out what you might want, since its a large theme. – Alexis Drakopoulos Feb 12 at 15:43
  • 1
    Please provide us with a minimal compilable example that illustrates the problem. I do not see why the size of the theme prevents you doing that. – marmot Feb 12 at 15:54
0

Based on https://tex.stackexchange.com/a/444958/36296 you could redefine the frametitle like in the following example:

\documentclass{beamer}

\usetheme{metropolis}

\makeatletter
\setbeamertemplate{frametitle}{%
  \nointerlineskip%
  \begin{beamercolorbox}[%
      wd=\paperwidth,%
      sep=0pt,%
      leftskip=\metropolis@frametitle@padding,%
      rightskip=\metropolis@frametitle@padding,%
    ]{frametitle}%
  \metropolis@frametitlestrut@start%
  \insertframetitle%
  \nolinebreak%
  \metropolis@frametitlestrut@end%
  \hfill
  \raisebox{-0.6ex}{\includegraphics[height=3ex,keepaspectratio]{example-image-duck}}
  \end{beamercolorbox}%
}
\makeatother

\begin{document}

\begin{frame}{My frame title}
 \begin{block}{Some itemize}
  \begin{itemize}
   \item \alert{Item 1}
   \item Item 2
  \end{itemize}
 \end{block}
 \begin{block}{Some maths}
 \[\sum_{n=1}^{\infty}\frac{1}{n^2}=\frac{\pi^2}{6}=\zeta(2)\]
\end{block}
\end{frame}

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.