Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font inheritance in blocks #891

Open
samcarter opened this issue Mar 14, 2024 · 1 comment
Open

Font inheritance in blocks #891

samcarter opened this issue Mar 14, 2024 · 1 comment
Assignees

Comments

@samcarter
Copy link
Collaborator

The inheritance of fonts in blocks seems a bit inconsistent, maybe this can be unified...

\documentclass{beamer}

\setbeamerfont{block body}{series=\itshape}

\begin{document}

\begin{frame}
  \begin{block}{title}
  content...
  \end{block}
  \begin{exampleblock}{title}
  content...
  \end{exampleblock}
  \begin{alertblock}{title}
  content...
  \end{alertblock}
\end{frame}

\end{document}

document-1

@samcarter samcarter self-assigned this Mar 14, 2024
@louisstuart96
Copy link
Contributor

In beamerfontthemedefault.sty, in the vicinity of Line 80:

\setbeamerfont{block body}{}
# These two font template don't have a parent
\setbeamerfont{block body alerted}{}
\setbeamerfont{block body example}{}
# but this one does
\setbeamerfont{block title}{size=\large,parent={structure,block body}}
\setbeamerfont{block title alerted}{parent={block title,alerted text}}
\setbeamerfont{block title example}{parent={block title,example text}}

Therefore, two possible solutions:

  1. Let these two font templates, block body altered and block body example, inherit block body;
  2. Remove the inheritance relation between block title and block body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants