Debian Codegraph @

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

raw
1 %%
2 %% This is file `fancyexample.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% texpower-doc.dtx (with options: `fancyexample')
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{fancyexample.tex}%
29 [2005/04/07 TeXPower example file]
30
31 \documentclass[KOMA,letterpaper,landscape,display,calcdimensions]{powersem}
32
33 \usepackage{graphicx}
34
35 \usepackage{soul}
36
37 \usepackage{palatino}
38
39 \usepackage[ps2pdf,pdfpagemode={FullScreen}]{hyperref}
40 \usepackage{fixseminar}
41 \usepackage[whitebackground]{texpower}
42
43 \slidesmag{5}
44
45 \slideframe{none}
46 \pagestyle{empty}
47
48 \renewcommand{\slideleftmargin}{2cm}
49 \renewcommand{\sliderightmargin}{2cm}
50 \renewcommand{\slidetopmargin}{2cm}
51 \renewcommand{\slidebottommargin}{2cm}
52
53 \newcounter{nosteps}
54 \setcounter{nosteps}{10} % Controls the "resolution" - a value of 100 gives a *very* long compilation time.
55 \newcounter{mycount}
56
57 \makeatletter
58 \DeclareRobustCommand*\appearI[1]
59 {%
60 \SOUL@setup
61 \def\SOUL@everytoken{\makebox[\widthof{\the\SOUL@token\SOUL@setkern\SOUL@charkern}]{\scalebox{#1}{\the\SOUL@token\SOUL@setkern\SOUL@charkern}}}%
62 \SOUL@%
63 }%
64 \DeclareRobustCommand*\appearII[1]
65 {%
66 \SOUL@setup
67 \def\SOUL@everytoken{\makebox[\widthof{\the\SOUL@token\SOUL@setkern\SOUL@charkern}*\real{#1}]{\the\SOUL@token\SOUL@setkern\SOUL@charkern}}%
68 \SOUL@%
69 }%
70 \DeclareRobustCommand*\appearIII[1]
71 {%
72 \SOUL@setup
73 \def\SOUL@everyspace{\rule{.3em}{\fboxrule}}%
74 \def\SOUL@everysyllable{\the\SOUL@syllable\SOUL@setkern\SOUL@charkern\rule{#1}{\fboxrule}}%
75 \SOUL@%
76 }%
77 \DeclareRobustCommand*\appearIV[1]
78 {%
79 \SOUL@setup
80 \def\SOUL@everytoken{\makebox[\widthof{\the\SOUL@token\SOUL@setkern\SOUL@charkern}+2em-2em*\real{#1}]{\scalebox{#1}{\setcounter{mycount}{\value{nosteps}*4-\value{nosteps}*4*\real{#1}}\rotatebox[origin=c]{\themycount}{\the\SOUL@token\SOUL@setkern\SOUL@charkern}}}}%
81 \SOUL@%
82 }%
83 \makeatother
84
85 \begin{document}
86 \begin{slide}
87 \pageDuration{1}%
88 \stepwise
89 {%
90 \begin{center}
91 \movie*{\value{nosteps}}{0.01}[\pageDuration{1}]
92 {%
93 \makebox[0pt]
94 {\rule{2\textwidth-2\textwidth/\value{nosteps}*\value{substep}}{0pt}`Twas brillig, and the slithy toves}%
95 }
96
97 \movie*{\value{nosteps}}{0.01}[\pageDuration{1}]
98 {%
99 \mkfactor{\mag}{\value{substep}/\value{nosteps}}%
100 \scalebox{\mag}{Did gyre and gimble in the wabe:}%
101 }
102
103 \movie*{\value{nosteps}}{0.01}[\pageDuration{1}]
104 {%
105 \mkfactor{\mag}{5*(\value{nosteps}-\value{substep})/\value{nosteps}+1pt}%
106 \makebox[0pt]{\scalebox{\mag}[1]{All mimsy were the borogoves,}}%
107 }
108
109 \movie*{\value{nosteps}}{0.01}[\pageDuration{1}]
110 {%
111 \mkfactor{\mag}{\value{substep}/\value{nosteps}}%
112 \colorbetween[\mag]{mycolor}{textcolor}{pagecolor}
113 \textcolor{mycolor}{And the mome raths outgrabe.}%
114 }
115
116 \medskip
117
118 \movie*{\value{nosteps}}{0.01}[\pageDuration{1}]
119 {%
120 \mkfactor{\mag}{\value{substep}/\value{nosteps}}%
121 \appearI{\mag}{"Beware the Jabberwock, my son!}%
122 }
123
124 \movie*{\value{nosteps}}{0.01}[\pageDuration{1}]
125 {%
126 \mkfactor{\mag}{\value{substep}/\value{nosteps}}%
127 \appearII{\mag}{The jaws that bite, the claws that catch!}%
128 }
129
130 \movie{\value{nosteps}}{0.01}[\pageDuration{0.01}]
131 {%
132 \makebox[0pt]{\appearIII{(\thenosteps pt-\thesubstep pt)*\real{1.5}}{Beware the Jubjub bird, and shun}}%
133 }%
134 %
135 \step{\afterstep{\pageDuration{1}}Beware the Jubjub bird, and shun}
136
137 \movie*{\value{nosteps}}{0.01}[\pageDuration{1}]
138 {%
139 \mkfactor{\mag}{\value{substep}/\value{nosteps}}%
140 \setcounter{mycount}{2*(\value{nosteps}-\value{substep})}%
141 \strut\rotatebox[origin=c]{\themycount}{\makebox[0pt]{\smash{\scalebox{\mag}{The frumious Bandersnatch!"}}}}%
142 }
143
144 \medskip
145
146 \movie*{\value{nosteps}}{0.01}[\pageDuration{1}]
147 {%
148 \mkfactor{\mag}{\value{substep}/\value{nosteps}}%
149 \hspace*{\fill}%
150 \emph
151 {%
152 \rlap
153 {%
154 \makebox[\widthof{Lewis Carroll}]
155 {\rule{5cm-5cm/\value{nosteps}*\value{substep}}{0pt}\strut\raisebox{1cm-1cm/\value{nosteps}*\value{substep}}[0pt][0pt]{\appearIV{\mag}{Lewis Carroll}}}%
156 }%
157 \rlap
158 {%
159 \makebox[\widthof{Lewis Carroll}]
160 {\strut\raisebox{1.5cm-1.5cm/\value{nosteps}*\value{substep}}[0pt][0pt]{\appearIV{\mag}{Lewis Carroll}}\rule{4cm-4cm/\value{nosteps}*\value{substep}}{0pt}}%
161 }%
162 \rlap
163 {%
164 \makebox[\widthof{Lewis Carroll}]
165 {\rule{3cm-3cm/\value{nosteps}*\value{substep}}{0pt}\strut\raisebox{-.5cm+.5cm/\value{nosteps}*\value{substep}}[0pt][0pt]{\appearIV{\mag}{Lewis Carroll}}}%
166 }%
167 \makebox[\widthof{Lewis Carroll}]
168 {\strut\raisebox{-1cm+1cm/\value{nosteps}*\value{substep}}[0pt][0pt]{\appearIV{\mag}{Lewis Carroll}}\rule{6cm-6cm/\value{nosteps}*\value{substep}}{0pt}}%
169 }%
170 }
171 \end{center}
172 }
173 \end{slide}
174 \end{document}
175 \endinput
176 %%
177 %% End of file `fancyexample.tex'.