josephwright / beamer

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

scale height of infolines headline with fontsize of `section in head/foot` #843

Closed samcarter closed 1 year ago

samcarter commented 1 year ago

As shown in https://tex.stackexchange.com/q/678971/36296 the infolines headline can get too small if users choose a bigger (sub)section in head/foot font. Currently the height of the boxes is defined relative the headline font (which has tiny structure as parent font).

One could lessen the problem by scaling it with respect to the section in head/foot font.

Cons:

Test file:

\documentclass[compress]{beamer}
\usetheme{CambridgeUS}

\setbeamerfont{section in head/foot}{size=\fontsize{15}{15}\selectfont}
\setbeamerfont{subsection in head/foot}{size=\fontsize{15}{15}\selectfont}

\begin{document}

\section{Title Page}
\subsection{XXXXXXXXXXXXXXXXXXXXXXXX}
\begin{frame}
\frametitle{title}
\title{Estimation}
\titlepage
\end{frame}

\end{document}
josephwright commented 1 year ago

Looks like a reasonable change to me