Skip to content

Commit

Permalink
Fix incorrect Beamer template names for 'structureenv' (#862)
Browse files Browse the repository at this point in the history
As per Section 12.2 of the Beamer User Guide for version 3.70, the
Beamer template names for 'structureenv' should be 'structure begin' and
'structure end'.  However, some of the Beamer package's source files are
not using these exact names.

An issue caused by this is that, in article mode, text in 'structureenv'
is not typeset in boldface as specified also by Section 12.2.  A minimal
working example is:

    \documentclass{article}
    \usepackage{beamerarticle}
    \begin{document}
    \begin{frame}
        \structure{This text should be typeset in boldface.}
    \end{frame}
    \end{document}

Signed-off-by: Yuan Liao <[email protected]>
  • Loading branch information
Leo3418 authored Sep 26, 2023
1 parent 20b8b7a commit b491730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/beamerbaselocalstructure.sty
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@
{\usebeamertemplate{alerted text end}}{\color{.}}{}\ignorespaces}{\ifhmode\unskip\fi\end{altenv}}

\newenvironment<>{structureenv}{\begin{altenv}#1%
{\usebeamercolor[fg]{structure}\usebeamerfont{structure}\usebeamertemplate{structure text begin}}
{\usebeamertemplate{structure text end}}{\color{.}}{}\ignorespaces}{\ifhmode\unskip\fi\end{altenv}}
{\usebeamercolor[fg]{structure}\usebeamerfont{structure}\usebeamertemplate{structure begin}}
{\usebeamertemplate{structure end}}{\color{.}}{}\ignorespaces}{\ifhmode\unskip\fi\end{altenv}}

\newcommand<>{\alert}[1]{\begin{alertenv}#2\relax#1\end{alertenv}}
\newcommand<>{\structure}[1]{\begin{structureenv}#2\relax#1\end{structureenv}}
Expand Down

0 comments on commit b491730

Please sign in to comment.