summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/beamer/emulation/beamertexpower.sty
blob: fffc2166a46ff4191287416289472ea924374a86 (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
34
% Copyright 2003--2007 by Till Tantau
% Copyright 2010 by Vedran Mileti\'c
%
% 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.

\ProvidesPackageRCS $Header: /home/vedran/bitbucket/beamer/emulation/beamertexpower.sty,v dd2ef3616c35 2010/04/28 23:38:22 rivanvx $

\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}%