josephwright / beamer

A LaTeX class for producing presentations and slides
Other
1.41k stars 142 forks source link

fixed spacing problem for right-aligned frametitles without background #898

Closed samcarter closed 3 months ago

samcarter commented 3 months ago

For users of the right aligned default frametitle template, beamer currently inserts additional vertical and horizontal space:

\documentclass{beamer}

\usepackage{lipsum}
\usepackage{ragged2e}

%\setbeamercolor{frametitle}{bg=red}
\setbeamertemplate{frametitle}[default][right]

\begin{document}

\begin{frame}
\frametitle{title title title title title title title title title title title title title title title}
  \justifying
  \lipsum[]
\end{frame}

\end{document}

document-1

This does not seem consistent with the left aligned template:

document-1

nor with the right aligned frametitle if a background colour is set

document-1


Simple fix:

One could avoid this by removing the line

https://github.com/josephwright/beamer/blob/main/base/themes/outer/beamerouterthemedefault.sty#L184

The result would look like this:

document-1


The question is: what was the purpose of this line?

josephwright commented 3 months ago

We'll go for it and see if we get complaints - it's one of the Till things we have no idea about!

samcarter commented 3 months ago

@josephwright Thanks for taking a look!