Issue #222 resolved

A robust version of overlay commands?

Jürgen Spitzmüller
created an issue

Currently, all beamer overlay commands seem to be fragile. This is most obvious and annoying with \emph in sections.

\section{Hello \emph{world}}

fails, while

\section{Hello \protect\emph{world}}

passes (see example file).

While there is a workaround (\protect'ing), I think this is still unfavourable and most probably very irritating to new users (it is also not documented).

I don't know if it is possible to make those commands robust in general or provide a \DeclareRobustCommand alternative with overlay spec (my attempts all failed), but it would be very welcome.

Comments (5)

  1. Joseph Wright

    This is basically a 'known issue', at least from my point of view. Till's approach to redefining commands to add the overlay spec is defective when it comes to robust commands. However, at this stage fixing it is not really an option. Altering the code to detect robust commands would almost certainly break lots of things (as Till's approach has lots of assumptions built-in), while the other option of requiring e-TeX and making things protected alters both the class requirements and the behaviour of commands in another way which is still not equivalent to the original definitions from the kernel.

  2. Log in to comment