summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/beamer/base/emulation/beamertexpower.sty
blob: 479413a20b4635ab2128bd323f1aa4d3810c7558 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
% Copyright 2003--2007 by Till Tantau
% Copyright 2010 by Vedran Mileti\'c
% Copyright 2015 by Vedran Mileti\'c, Joseph Wright
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/licenses/LICENSE for more details.

\long\def\stepwise#1{{\nonboxedsteps#1}}
\long\def\parstepwise#1{{\boxedsteps#1}}
\long\def\liststepwise{\vspace*{\parskip}\hrule \@height\z@\stepwise}
\long\def\step#1{\beamerpower@action<+(1)->{#1}}
\long\def\steponce#1{\beamerpower@action<+(1)>{#1}}
\long\def\switch#1#2{\alt<+(1)->{#2}{#1}}
\long\def\bstep#1{{\boxedsteps\step{#1}}}
\long\def\dstep{\addtocounter{beamerpauses}{1}}
\long\def\vstep{\addtocounter{beamerpauses}{1}}

\def\restep{\addtocounter{beamerpauses}{-1}\step}
\def\reswitch{\addtocounter{beamerpauses}{-1}\switch}
\def\rebstep{\addtocounter{beamerpauses}{-1}\bstep}
\def\redstep{\addtocounter{beamerpauses}{-1}\dstep}
\def\revstep{\addtocounter{beamerpauses}{-1}\vstep}

\def\boxedsteps{\let\beamerpower@action=\uncover}
\def\nonboxedsteps{\let\beamerpower@action=\only}
\boxedsteps

\DeclareRobustCommand{\code}[1]{\textbf{\texttt{#1}}}%
\DeclareRobustCommand{\codeswitch}{\bfseries\ttfamily}%