0

I've adapted the example from this question:

\documentclass{beamer}

\setbeamercolor{block title}{bg=red!30,fg=black}

\begin{document}

\begin{frame}
\begin{block}{This title has a problem}
    some text
\end{block}
\begin{block}{This title is about fine}
    some text
\end{block}
\end{frame}

\end{document}

The result looks like this:

enter image description here

The second title looks fine, but the first one looks wrong - due to the "p" crossing the baseline. How can I fix that?

  • This was actually fixed yesterday, see https://github.com/josephwright/beamer/commit/c09ad1f62c980b34404975cb1b6c4d8aef12f8bf and see https://tex.stackexchange.com/questions/332463/beamer-itemize-not-aligned-when-in-blocks for the work around – samcarter_is_at_topanswers.xyz Jul 06 '17 at 11:16
  • The workaround involving \vphantom{Ag} makes all titles look like the first one. So the height is the same, but they are all top-aligned as well, which still looks wrong. Is it possible to apply the vphantom fix automatically to every block title so that I can insert a custom strut instead? – Jakub Klinkovský Jul 06 '17 at 11:51
  • You could simply use the fixed version by placing https://github.com/josephwright/beamer/blob/c09ad1f62c980b34404975cb1b6c4d8aef12f8bf/base/themes/inner/beamerinnerthemedefault.sty in your working directory – samcarter_is_at_topanswers.xyz Jul 06 '17 at 11:55
  • That still does not do what I want due to the top-alignment, but I can edit the file based on the upstream fix... – Jakub Klinkovský Jul 06 '17 at 12:03
  • I added another answer to https://tex.stackexchange.com/a/378502/36296 – samcarter_is_at_topanswers.xyz Jul 06 '17 at 14:17

0 Answers0