mtheme icon indicating copy to clipboard operation
mtheme copied to clipboard

titlegraphic overlaps subtitle

Open larseggert opened this issue 7 years ago • 4 comments

When using a larger \titlegraphic, the image begins to overlap the following \subtitle. Is there a way to not have that happen?

larseggert avatar Apr 25 '17 09:04 larseggert

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?

benjamin-weiss avatar May 25 '17 15:05 benjamin-weiss

I'd like the subtitle to move down if the image is too high vertically.

larseggert avatar May 26 '17 10:05 larseggert

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}

benjamin-weiss avatar Jul 15 '17 00:07 benjamin-weiss

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} }; }

mapsa avatar Nov 12 '17 12:11 mapsa