Debian Codegraph @

texmf-dist/doc/latex/texpower/prosperdemo.tex

raw
1 %%
2 %% This is file `prosperdemo.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% texpower-doc.dtx (with options: `prosperdemo')
8 %%
9 %% --------------------------------------------------------------
10 %% TeXPower bundle - dynamic online presentations with LaTeX
11 %% Copyright (C) 1999-2004 Stephan Lehmke
12 %% Copyright (C) 2003-2005 Hans Fredrik Nordhaug
13 %%
14 %% This program is free software; you can redistribute it and/or
15 %% modify it under the terms of the GNU General Public License
16 %% as published by the Free Software Foundation; either version 2
17 %% of the License, or (at your option) any later version.
18 %%
19 %% This program is distributed in the hope that it will be useful,
20 %% but WITHOUT ANY WARRANTY; without even the implied warranty of
21 %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 %% GNU General Public License for more details.
23 %% --------------------------------------------------------------
24 %%
25 %% The list of all files belonging to the TeXPower bundle is
26 %% given in the file `00readme.txt'.
27 %%
28 \ProvidesFile{prosperdemo.tex}%
29 [2005/04/07 TeXPower example file]
30 %
31 \documentclass[pdf,colorBG,slideColor,whitecross]{prosper}
32 \usepackage[display,oldfiltering]{texpower}
33 \begin{document}
34 \ifpdf
35 No way to compile a prosper document with pdftex!
36 \else
37 \stepwise[\boxedsteps]
38 {%
39 \begin{slide}{An aligned equation}
40 \begin{eqnarray}
41 \step{\sum_{i=1}^{n} i} & \step{=} & \restep{1 + 2 + \cdots + (n-1) + n}\\
42 %
43 & \step{=} & \restep{1 + n + 2 + (n-1) + \cdots}\\
44 %
45 & \step{=} & \restep
46 {%
47 \switch
48 {%
49 \vphantom{\underbrace{(1 + n) + \cdots + (1 + n)}_{\times\frac{n}{2}}}%
50 (1 + n) + \cdots + (1 + n)%
51 }
52 {\underbrace{(1 + n) + \cdots + (1 + n)}_{\times\frac{n}{2}}}%
53 }
54 \\
55 %
56 & \step{=} & \restep{\frac{(1 + n)\step{{}\cdot n}}{\restep{2}}}
57 \end{eqnarray}
58 \end{slide}
59 }
60 \fi
61
62
63 \end{document}
64 \endinput
65 %%
66 %% End of file `prosperdemo.tex'.