josephwright / beamer

A LaTeX class for producing presentations and slides
Other
1.35k stars 139 forks source link

Frametitle of previously slide shown overlapped in next slide with new \frametitle{} #853

Closed DDuck007 closed 1 year ago

DDuck007 commented 1 year ago

Version 3.70 shows following problem: The content of \frametitle{...} of the previous slide is also shown in the next slide - overlapped to the new \frametitle{...}. Removing the command \beamer@calculateheadfoot% in line 456 solves the problem.

samcarter commented 1 year ago

Can you please add a minimal working example which reproduces the problem?

A simple

\documentclass{beamer}

\begin{document}

\begin{frame}
\frametitle{title}
\end{frame}

\begin{frame}
\frametitle{abc}
\end{frame}

\end{document}

seems to work fine

DDuck007 commented 1 year ago

... you are right, minimal example works => just removed the company-specific theme and it´s also ok - sorry ...

samcarter commented 1 year ago

If you could boil down your custom theme to a MWE which reproduces the problem, I could take a look if the problem can be avoided.

DDuck007 commented 1 year ago

I will check the sty-files - but to be honest I am not sure if I can make a MWE ...

DDuck007 commented 1 year ago

After some testing I think I was able to strip it down to a minium working example - see attachment. MWE_frametitle.zip

samcarter commented 1 year ago

Ah, the problem is that your theme sets the frametitle in the headline instead of using the frametitle template.

I would recommend to set the frametitle in the frametitle template and not in the headline.

If you really must set it in the headline, you could work around the problem with

\documentclass{beamer}
\usetheme{my_theme}
\usepackage[ngerman]{babel}

\AtBeginEnvironment{frame}{\gdef\insertframetitle{}}

\begin{document}

\begin{frame}
  \frametitle{Slide 1 - 1111}

  \LaTeX{} 

\end{frame}

%%%%%

\begin{frame}
  \frametitle{Slide 2 - 2222}

  \LaTeX{}
\end{frame}

\end{document}
DDuck007 commented 1 year ago

I have no idea why the frametitle was placed in the headline - will check with my colleagues ... Thank you very much for your help - works like a charm ;-).