mtheme
mtheme copied to clipboard
titlegraphic overlaps subtitle
When using a larger \titlegraphic
, the image begins to overlap the following \subtitle
. Is there a way to not have that happen?
Sorry, but I don't really get what you want to happen. Do you want that the subtitle does not span over the full linewidth? Should it be moved down? Why don't you just make the \titlegraphic
smaller?
I'd like the subtitle to move down if the image is too high vertically.
Personally I don't think this is a good idea (so imho we should not support something like this in the theme) and an automatic solution would be quite complicated. But as a workaround you could just play around with the vertical spaces of the title.
\documentclass{beamer}
\usetheme{metropolis}
\setbeamertemplate{title}{
\vspace{4em}% additional (I added this line) vertical space above the title
\raggedright%
\linespread{1.0}%
\inserttitle%
\par%
\vspace*{0.5em}% space between title and subtitle -> could be increased
}
\title{A Small Example}
\subtitle{with a very long subtitle which spans over the full width}
\titlegraphic{\hfill\includegraphics[width=4cm]{example-grid-100x100pt}}
\date{\today}
\begin{document}
\maketitle
\end{document}
My solution was to add it using tikz
\titlegraphic{ \tikz[overlay,remember picture] \node[at=(current page.south east), anchor=south east] { \includegraphics[height=1.5cm]{yourlogo} }; }