| 1 |
% Copyright 2003--2007 by Till Tantau |
| 2 |
% Copyright 2010 by Vedran Mileti\'c |
| 3 |
% Copyright 2015 by Vedran Mileti\'c, Joseph Wright |
| 4 |
% |
| 5 |
% This file may be distributed and/or modified |
| 6 |
% |
| 7 |
% 1. under the LaTeX Project Public License and/or |
| 8 |
% 2. under the GNU Public License. |
| 9 |
% |
| 10 |
% See the file LICENSE.md for more details. |
| 11 |
|
| 12 |
\long\def\stepwise#1{{\nonboxedsteps#1}} |
| 13 |
\long\def\parstepwise#1{{\boxedsteps#1}} |
| 14 |
\long\def\liststepwise{\vspace*{\parskip}\hrule \@height\z@\stepwise} |
| 15 |
\long\def\step#1{\beamerpower@action<+(1)->{#1}} |
| 16 |
\long\def\steponce#1{\beamerpower@action<+(1)>{#1}} |
| 17 |
\long\def\switch#1#2{\alt<+(1)->{#2}{#1}} |
| 18 |
\long\def\bstep#1{{\boxedsteps\step{#1}}} |
| 19 |
\long\def\dstep{\addtocounter{beamerpauses}{1}} |
| 20 |
\long\def\vstep{\addtocounter{beamerpauses}{1}} |
| 21 |
|
| 22 |
\def\restep{\addtocounter{beamerpauses}{-1}\step} |
| 23 |
\def\reswitch{\addtocounter{beamerpauses}{-1}\switch} |
| 24 |
\def\rebstep{\addtocounter{beamerpauses}{-1}\bstep} |
| 25 |
\def\redstep{\addtocounter{beamerpauses}{-1}\dstep} |
| 26 |
\def\revstep{\addtocounter{beamerpauses}{-1}\vstep} |
| 27 |
|
| 28 |
\def\boxedsteps{\let\beamerpower@action=\uncover} |
| 29 |
\def\nonboxedsteps{\let\beamerpower@action=\only} |
| 30 |
\boxedsteps |
| 31 |
|
| 32 |
\DeclareRobustCommand{\code}[1]{\textbf{\texttt{#1}}}% |
| 33 |
\DeclareRobustCommand{\codeswitch}{\bfseries\ttfamily}% |