Skip to content

Commit

Permalink
Add overlay-able commands
Browse files Browse the repository at this point in the history
- `\textmd`
- `\textnormal`
- `\textsc`
- `\texttt`
- `\textup`
  • Loading branch information
e-kwsm committed Jan 24, 2019
1 parent b822da2 commit 87f1646
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions base/beamerbaseoverlay.sty
Expand Up @@ -617,9 +617,14 @@
{
\renewcommand<>{\textbf}{\only#1{\beameroriginal{\textbf}}}
\renewcommand<>{\textit}{\only#1{\beameroriginal{\textit}}}
\renewcommand<>{\textsl}{\only#1{\beameroriginal{\textsl}}}
\renewcommand<>{\textsf}{\only#1{\beameroriginal{\textsf}}}
\renewcommand<>{\textmd}{\only#1{\beameroriginal{\textmd}}}
\renewcommand<>{\textnormal}{\only#1{\beameroriginal{\textnormal}}}
\renewcommand<>{\textrm}{\only#1{\beameroriginal{\textrm}}}
\renewcommand<>{\textsc}{\only#1{\beameroriginal{\textsc}}}
\renewcommand<>{\textsf}{\only#1{\beameroriginal{\textsf}}}
\renewcommand<>{\textsl}{\only#1{\beameroriginal{\textsl}}}
\renewcommand<>{\texttt}{\only#1{\beameroriginal{\texttt}}}
\renewcommand<>{\textup}{\only#1{\beameroriginal{\textup}}}
}

\renewcommand<>{\hypertarget}[2]{\only#3{\beameroriginal{\hypertarget}{#1}{#2}}}
Expand Down
2 changes: 1 addition & 1 deletion doc/beamerug-overlays.tex
Expand Up @@ -121,7 +121,7 @@ \subsection{Commands with Overlay Specifications}
commands documented here are \emph{all} fragile even if the \LaTeXe{} kernel
versions are not.

For the following commands, adding an overlay specification causes the command to be simply ignored on slides that are not included in the specification: |\textbf|, |\textit|, |\textrm|, |\textsl|, |\textsf|, |\emph|; |\color|, |\textcolor|; |\alert|, |\structure|. If a command takes several arguments, like |\color|, the specification should directly follow the command as in the following example (but there are exceptions to this rule):
For the following commands, adding an overlay specification causes the command to be simply ignored on slides that are not included in the specification: |\textbf|, |\textit|, |\textmd|, |\textnormal|, |\textrm|, |\textsc|, |\textsf|, |\textsl|, |\texttt|, |\textup|, |\emph|; |\color|, |\textcolor|; |\alert|, |\structure|. If a command takes several arguments, like |\color|, the specification should directly follow the command as in the following example (but there are exceptions to this rule):
\begin{verbatim}
\begin{frame}
\color<2-3>[rgb]{1,0,0} This text is red on slides 2 and 3, otherwise black.
Expand Down

0 comments on commit 87f1646

Please sign in to comment.