Debian Codegraph @

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

raw
1 %%
2 %% This is file `manual.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% texpower-doc.dtx (with options: `version,manual,docu,enddoc')
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{manual.tex}%
29 [2005/04/07 TeXPower manual]
30
31 % Version info used in titles
32 \def\tpversion{v0.2 of April 8, 2005}
33
34 \documentclass[12pt]{scrartcl}
35
36 %-----------------------------------------------------------------------------------------------------------------
37 % We need some more packages...
38 %
39 \usepackage[nottoc]{tocbibind}
40
41 \usepackage{textcomp}% Just for \textregistered. Comment out if you like.
42
43 \usepackage{url}
44
45 % The following package makes code look a little nicer, but it may not be present on all systems.
46
47 \IfFileExists{cmtt.sty}{\usepackage[override]{cmtt}}{}
48
49 % Loading the soul package enables the \highlighttext command.
50
51 \IfFileExists{soul.sty}{\usepackage{soul}}
52
53 % One more Text emphasis command...
54
55 \let\name=\textsc
56
57 % We input the xr package for external references.
58
59 \usepackage{xr-hyper}
60
61 %-----------------------------------------------------------------------------------------------------------------
62 % Load hyperref.
63 %
64 \usepackage[bookmarksopen,colorlinks]{hyperref}
65
66 %-----------------------------------------------------------------------------------------------------------------
67 % Finally, the texpower package is loaded.
68 %
69 \usepackage{texpower}
70
71 %-----------------------------------------------------------------------------------------------------------------
72 % The configuration file allows user-specific settings.
73
74 \input{__TPcfg}
75
76 %-----------------------------------------------------------------------------------------------------------------
77 % Setting up indexing and custom indexing commands
78 \input{__TPindexing}
79
80 %-----------------------------------------------------------------------------------------------------------------
81 % We use references from the full demo file.
82
83 %\externaldocument{fulldemo}[http://texpower.sourceforge.net/doc/fulldemo.pdf]
84 \externaldocument{fulldemo}
85
86
87 %-----------------------------------------------------------------------------------------------------------------
88 % The code in the manual (doc tag) is meant for the document class seminar. Thus, it contains some
89 % seminar-specific commands which are replaced by dummies here.
90
91 \let\newslide=\relax
92
93 %-----------------------------------------------------------------------------------------------------------------
94 % The following command produces the title for this document.
95
96 \newcommand{\makeslidetitle}[1]
97 {%
98 \hypersetup{pdftitle={#1}}
99 \title{The \TeX Power bundle\\{\normalfont #1}}
100 \author
101 {%
102 Stephan Lehmke\\\url{mailto:[email protected]}
103 \and
104 Hans Fr.\ Nordhaug\\\url{mailto:[email protected]}%
105 }
106 \maketitle
107
108 \tableofcontents
109
110 \subsubsection*{}
111 }
112
113
114 %-----------------------------------------------------------------------------------------------------------------
115 % As the documentation text contains a lot of stuff in boxes, we use \sloppy to avoid stuff projecting into the margin.
116
117 \sloppy
118
119 %-----------------------------------------------------------------------------------------------------------------
120 % Finally, everything is set up. Here we go...
121 %
122
123 \begin{document}
124
125 \makeslidetitle
126 {%
127 Documentation%
128 \thanks{Documentation for \TeX Power \tpversion .}%
129 }%
130
131 The \TeX Power bundle contains style and class files for creating dynamic online presentations with \LaTeX.
132
133 The heart of the bundle is the package \code{texpower.sty} which implements some commands for presentation effects. This
134 includes setting page transitions, color highlighting and displaying pages incrementally.
135
136 For finding out how to achieve special effects (as shown in the \nameref{Sec:Ex}),
137 please look at the comments inside the files ending with \code{example.tex} and \code{demo.tex}
138 and read this manual to find out what's going on.
139
140 \newslide
141
142 For your own first steps with \TeX Power, the simple demo file \code{simpledemo.tex} is the best starting
143 place. There, some basic applications of the dynamic features provided by the \code{texpower} package are
144 demonstrated. You can make your own dynamic presentations by modifying that demo to your convenience.
145
146 \code{simpledemo.tex} uses the \code{article} document class for maximum
147 compatibility. There are other simple demos named
148 \code{slidesdemo.tex}, \code{foilsdemo.tex}, \code{seminardemo.tex},
149 \code{pp4sldemo.tex}, \code{pdfslidemo.tex}, \code{pdfscrdemo.tex},
150 \code{prosperdemo.tex}, and \code{ifmslidemo.tex}
151 which demonstrate how to combine \TeX Power with the
152 most popular presentation-making document classes and packages.
153
154 \newslide
155
156 The other, more sophisticated examples demonstrate the expressive power of the
157 \code{texpower} package. Look at the commented code of these examples to find out how to achieve special effects and
158 create your own presentation effects with \TeX Power.
159
160 \newslide
161
162 %-----------------------------------------------------------------------------------------------------------------
163 %
164 \section{Usage and general options}
165 The \code{texpower} package is loaded by putting
166 \begin{center}
167 \present{\commandapp{usepackage}{texpower}}
168 \end{center}
169 into the preamble of a document.
170
171 There are no specific restrictions as to which document classes can be used.
172
173 It should be stressed that \TeX Power is \underl{not} (currently) a complete presentation package. It just adds dynamic
174 presentation effects (and some other gimmicks specifically interesting for dynamic presentations) and should always be
175 combined with a document class dedicated to designing presentations (or a package like
176 \href{ftp://ftp.dante.de/tex-archive/help/Catalogue/entries/pdfslide.html}{\code{pdfslide}}).
177
178 Some of the presentation effects created by \code{texpower} require special capabilities of the viewer which is used for
179 presenting the resulting document. The target for the development of \code{texpower} has so far been
180 \href{http://www.adobe.com/products/acrobat/readermain.html}%
181 {\concept{Adobe Acrobat\textsuperscript{\textregistered} Reader}}, which means the
182 document should (finally) be produced in \code{pdf} format. The produced
183 \code{pdf} documents should display well in
184 \href{http://www.cs.wisc.edu/~ghost/gsview/}{\concept{GSview}} also, but that
185 viewer doesn't support page transitions and duration.
186
187 There are no specific restrictions as to which way the \code{pdf} format is produced. All demos and examples
188 have been tested with pdf\LaTeX{} and standard \LaTeX, using
189 \code{dvips} and \href{http://www.adobe.com/products/acrobat/}%
190 {\concept{Adobe Acrobat\textsuperscript{\textregistered} Distiller}}
191 or \code{dvips} and \code{ps2pdf} (from the \href{http://www.ghostscript.com/}%
192 {\concept{Ghostscript suite}}) for generating \code{pdf}.
193
194 \newslide
195
196 \subsection{General options}\label{Sec:GenOpt}
197 \begin{description}
198 \item[\present{option: \code{display}}.]\indexpckopt{texpower}{display} Enable `dynamic' features. If not set, it is assumed that the document is to be
199 printed, and all commands for dynamic presentations, like \macroname{pause} or \macroname{stepwise} have no effect.
200
201 \item[\present{option: \code{printout} (default)}.]\indexpckopt{texpower}{printout} Disable `dynamic' features. As this is the default behaviour,
202 setting this option explicitly is useful only if the option \code{display} is set by default for instance in the
203 \code{tpoptions.cfg} file (see section \ref{Sec:Config}).
204
205 \item[\present{option: \code{verbose}}.]\indexpckopt{texpower}{verbose} Output some administrative info.
206 \end{description}
207 Some font options are listed in section \ref{Sec:BaseFont}.
208
209 \newslide
210
211 \subsection{Side effects of page contents duplication}\label{Sec:Dupl}
212 In the implementation of the \macroname{pause} and \macroname{stepwise} commands, it is neccessary to duplicate some
213 material on the page.
214
215 This way, not only `visible' page contents will be duplicated, but also some `invisible' control code stored in
216 \concept{whatsits} (see the \TeX book for an explanation of this concept). Duplicating whatsits can lead to undesirable
217 side effects.
218
219 For instance, a \macroname{section} command creates a whatsit for writing the table of contents entry. Duplicating this
220 whatsit will also duplicate the toc entry. So, whatsit items effecting file access are inhibited when duplicating page
221 material.
222
223 \newslide
224
225 The current version of \code{texpower} is a little smarter when handling whatsits. Some commands (related to writing to
226 files and hyperlinks) are made stepwise-aware. This means that links can point to the actual subpage where the
227 anchor is and not to the last (sub)page of an incremental page. However, if you want the old behaviour just use
228 \begin{description}
229 \item[\present{option: \code{oldfiltering}}]\indexpckopt{texpower}{oldfiltering} switches on the old
230 (pre 0.2) very aggressive/robust filtering of whatsits.
231 \end{description}
232 The \code{oldfiltering} can be turned on and off inside the document using \macroname{oldfilteringon/off}. This command is
233 useful if \code{texpower} isn't smart enough...
234
235 \newslide
236
237 A second type of whatsits is created by \TeX's \macroname{special} command which is used for instance for color
238 management. Some drivers, like \code{dvips} and \code{textures}, use a color stack which is controlled by
239 \macroname{special} items included in the dvi file. When page contents are duplicated, then these \macroname{special}s
240 are also duplicated, which can seriously mess up the color stack.
241
242 \newslide
243
244 \code{texpower} implements a `color stack correction' method by maintaining a stack of color corrections, which should
245 counteract this effect. Owing to potential performance problems, this method is turned off by default.
246 \begin{description}
247 \item[\present{option: \code{fixcolorstack}}]\indexpckopt{texpower}{fixcolorstack} switches on color stack correction. Use it if you experience strange color
248 switches in your document.
249 \end{description}
250
251 \newslide
252
253 \subsection{Setting the base font}\label{Sec:BaseFont}
254 \code{texpower} offers no options for setting the base font of the document.
255 Use the \code{tpslifonts} package in stead. Read more in section \ref{Sec:TPslifonts}.
256
257 Further, there are packages like \code{cmbright} or \code{beton} which change the whole set of fonts to something less
258 fragile than cmr.
259
260 \newslide
261
262 \subsection{Switches}
263 There are some boolean registers provided and set automatically by \code{texpower}.
264
265 \begin{description}
266 \item[\present{boolean: \code{psspecialsallowed}}]\indexpckswitch{texpower}{psspecialsallowed} True if PostScript\textsuperscript{\textregistered} specials may be
267 used.
268
269 \code{texpower} tries to find out whether or not PostScript\textsuperscript{\textregistered} specials may be used in
270 the current document. For instance, pdf\LaTeX{} can't interpret arbitrary specials. This switch is set automatically
271 and can be used inside a document to enable/disable parts which need PostScript\textsuperscript{\textregistered}
272 specials.
273
274 \newslide
275
276 \item[\present{boolean: \code{display}}]\indexpckswitch{texpower}{display} True if \code{display} option was given.
277
278 This switch indicates whether `dynamic' features of \code{texpower} are enabled. Use it inside your document
279 to distinguish between the `presented' and the printed version of your document.
280
281 \item[\present{boolean: \code{TPcolor}}]\indexpckswitch{texpower}{TPcolor} True if any of the color highlighting options (see section
282 \ref{Sec:ColorEmphasis}) were given.
283
284 This switch indicates whether `color' features of \code{texpower} are enabled (compare section
285 \ref{Sec:ColorEmphasis}). You can use it inside your document to distinguish between a `colored' and a `monochrome'
286 version of your document.
287 \end{description}
288
289 \newslide
290
291 \subsection{Configuration files}\label{Sec:Config}
292 \code{texpower} loads three configuration files (if present):
293 \begin{description}
294 \item[\present{file: \code{tpoptions.cfg}}]\indexcode{tpoptions.cfg}
295 is loaded before options are processed. Can be used to set default options
296 in a system-specific way. See the comments inside the file
297 \code{tpoptions.cfg} which is part of the \TeX Power bundle
298 for instructions.
299
300 \item[\present{file: \code{tpsettings.cfg}}]\indexcode{tpsettings.cfg}
301 is loaded at the end of \code{texpower}. Here, you can do some
302 system-specific settings. See the comments inside the
303 file \code{tpsettings.cfg} which is part of the
304 \TeX Power bundle for instructions.
305
306 \item[\present{file: \code{tpcolors.cfg}}]\indexcode{tpcolors.cfg}
307 is loaded if \code{TPcolor} is true. The file defines the standard
308 colors/colorsets (see section \ref{Sec:ColorEmphasis}). See the
309 comments inside the file \code{tpcolors.cfg} which is part of the
310 \TeX Power bundle for instructions.
311 \end{description}
312
313 \newslide
314
315 \subsection{Miscellaneous commands}\label{Sec:MiscCmd}
316 Some important commands that don't fit in the latter sections:
317 \begin{description}
318 \item[\present{\macroname{oldfilteringon}}]\indexmacro{oldfilteringon}
319 reverts to the old (pre v0.2) aggressive/robust filtering of whatsits.
320 \item[\present{\macroname{oldfilteringoff}}]\indexmacro{oldfilteringoff}
321 turns on the new better treatment of whatsits.
322 \item[\present{\commandapp{currentpagevalue}{\carg{value}}}]\indexmacro{currentpagevalue}
323 sets how to find the number of the current page, \commandapp{value}{page} is default.
324 Used to name the hyper target on the first subpage of every page. Also used in the
325 TeXPower navigation buttons.
326 \item[\present{\commandapp{pausesafecounter}{\carg{counter}}}]\indexmacro{pausesafecounter}
327 is used to add counters that are to be restored to their original value after \macroname{pause}. The \code{page}
328 counter is always restored. In addition the \code{slide} counter is restored if the \code{seminar} class is used. If
329 you need more counters to be restored after \macroname{pause}, use \macroname{pausesafecounter}.
330 \end{description}
331
332 \newslide
333
334 \subsection{Page Anchors}\label{Sec:PageAnch}
335
336 For each physical page \TeX Power (when in display mode) makes a number of subpages - this is
337 the dynamics. For convenience \TeX Power defines an anchor to the first subpage of physical page n,
338 \code{firstpage.n}\indexcode{firstpage.n}. The standard page anchor for physical page n,
339 \code{page.n}\indexcode{page.n}, points to the last subpage of physical page n. If you want to
340 link to any other subpage just insert a \macroname{hyperlink} in the standard way assuming you haven't
341 turned on the old filtering (\ref{Sec:Dupl}).
342
343 \newslide
344
345 \subsection{Dependencies on other packages}
346 \code{textpower} always loads the packages \code{ifthen} and \code{calc}, as the extended command syntax provided by
347 these is indispensable for the macros to work. They are in the \code{base} and \code{tools} area of the \LaTeX{}
348 distribution, respectively, so I hope they are available on all systems.
349
350 Furthermore, \code{texpower} loads the package \code{color} if any color-specific options are set (see section
351 \ref{Sec:ColorEmphasis}).
352
353 Further packages are \emph{not} loaded automatically by \code{texpower} to avoid incompatibilities, although some
354 features of \code{texpower} are enabled \emph{only} if a certain package is loaded. If you wish to use these features,
355 you are responsible for loading the respective package yourself.
356
357 If some necessary package is \emph{not} loaded, \code{texpower} will issue a warning and disable the respective
358 features.
359
360 The following packages are neccessary for certain features of \code{texpower}:
361 \begin{description}
362 \item[\present{package: \code{hyperref}}]\indexfile{hyperref}{package}
363 is neccessary for page transition effects to work (see section
364 \ref{Sec:PageTrans}).
365
366 In particular, the \macroname{pageDuration} (see section \ref{Sec:PageDuration}) command only works if the version of
367 hyperref loaded is at least v6.70a (where the \code{pdfpageduration} key was introduced).
368
369 Commands which work only when \code{hyperref} is loaded are marked with \textbf{\textsf{h}} in the description.
370
371 \newslide
372
373 \item[\present{package: \code{soul}}]\indexfile{soul}{package}
374 is neccessary for the implementation of the commands \macroname{hidetext} and
375 \macroname{highlighttext} (see section \ref{Sec:displaycustom}).
376
377 Commands which work only when \code{soul} is loaded are marked with \textbf{\textsf{s}} in the description.
378 \end{description}
379
380 \newslide
381
382 \subsection{What else is part of the \TeX Power bundle?}
383 Besides the package \code{texpower} (which is described here), there are four
384 more packages, \code{tpslifonts}, \code{fixseminar}, \code{automata} and
385 \code{tplists}, and one document class, \code{powersem}, in the \TeX Power bundle.
386 Except for \code{tpslifonts} and \code{tplists} these files have no documentation
387 of their own. They will be described in this section until they are turned
388 into \code{dtx} files producing their own documentation.
389
390 See the file \code{00readme.txt} which is part of the \TeX Power bundle for a short description of all files.
391
392 \newslide
393
394 \minisec{The document class \code{powersem}}\indexfile{powersem}{class}
395 This is planned to provide a more `modern' version of \code{seminar} which can be used for creating dynamic
396 presentations.
397
398 Currently, this document class doesn't do much more than load \code{seminar} and apply some fixes, but it is planned to
399 add some presentation-specific features (like navigation panels).
400
401 \newslide
402
403 There are three new options which are specific for \code{powersem}, all other options are passed to \code{seminar}:
404 \begin{description}
405 \item[\present{option: \code{display}}]\indexpckopt{powersem}{display}
406 Turns off all features of \code{seminar} (notes, vertical centering of slides)
407 which can disturb dynamic presentations.
408
409 \item[\present{option: \code{calcdimensions}}]\indexpckopt{powersem}{calcdimensions}
410 \code{seminar} automatically calculates the slide dimensions
411 \macroname{slidewidth} and \macroname{slideheight} only for the default \code{letter} and for its own option
412 \code{a4}. For all the other paper sizes which are possible with the \code{KOMA} option, the slide dimensions are not
413 calculated automatically.
414
415 The \code{calcdimensions} option makes \code{powersem} calculate the slide dimensions automatically from paper size
416 and margins.
417
418 \newslide
419
420 \item[\present{option: \code{truepagenumbers}}]\indexpckopt{powersem}{truepagenumbers}
421 The truepagenumbers option makes powersem count pages with the counter page, independently of the counter slide. This
422 enables proper working of TeXPowers navigation buttons (some of which calculate relative page numbers) even when the
423 counter slide is reset frequently (for slide numberings of the type \verb|<l>.<n>.<m>|).
424
425 \item[\present{option: \code{KOMA}}]\indexpckopt{powersem}{KOMA} Makes
426 \code{seminar} load \code{scrartcl} (from the KOMA-Script bundle) instead of
427 \code{article} as its base class. All new features of \code{scrartcl} are then available also for slides.
428
429 \item[\present{option: \code{UseBaseClass}}]\indexpckopt{powersem}{UseBaseClass}
430 Makes \code{seminar} load the class \macroname{baseclass} (initially \code{article}) instead of
431 \code{article} as its base class.
432
433 \item[\present{option: \code{reportclass}}]\indexpckopt{powersem}{reportclass}
434 Makes \code{seminar} load the class \macroname{baseclass} (initially \code{report}) instead of
435 \code{article}.
436
437 \item[\present{option: \code{bookclass}}]\indexpckopt{powersem}{bookclass}
438 Makes \code{seminar} load the class \macroname{baseclass} (initially \code{book}) instead of
439 \code{article}.
440
441 \end{description}
442
443 There is one change in \code{powersem} which will lead to incompatibilities with \code{seminar}. \code{seminar} has the
444 unfortunate custom of \emph{not} exchanging \macroname{paperwidth} and \macroname{paperheight} when making landscape
445 slides, as for instance \code{typearea} and \code{geometry} do.
446
447 This leads to problems with setting the paper size for \code{pdf} files, as done for instance by the \code{hyperref}
448 package.
449
450 \code{powersem} effectively turns off \code{seminar}'s papersize management and leaves this to the base class (with the
451 pleasant side effect that you can use e.\,g.\ \commandapp[KOMA,a0paper]{documentclass}{powersem} for making posters).
452
453 In consequence, the \code{portrait} option of \code{seminar} is turned on by \code{powersem} to avoid confusing
454 \code{seminar}. You have to explicitly use the \code{landscape} option (and a base class or package which understands
455 this option) to get landscape slides with powersem.
456
457 \newslide
458
459 \minisec{The package \code{fixseminar}}\indexfile{fixseminar}{package}
460 Unfortunately, there are some fixes to seminar which can \emph{not} be applied in \code{powersem} because they have to
461 be applied after \code{hyperref} is loaded (if this package should be loaded).
462
463 The package \code{fixseminar} applies these fixes, so this package should be loaded after \code{hyperref} (if
464 \code{hyperref} is loaded at all, otherwise \code{fixseminar} can be loaded anywhere in the preamble).
465
466 \newslide
467
468 It applies two fixes:
469 \begin{itemize}
470 \item In case \code{pdflatex} is being run, the lengths \macroname{pdfpageheight} and \macroname{pdfpagewidth} have to
471 be set in a `magnification-sensitive' way.
472
473 \item \code{hyperref} introduces some code at the beginning of every page which can produce spurious vertical space,
474 which in turn disturbs building dynamic pages. This code is `fixed' so it cannot produce vertical space.
475 \end{itemize}
476
477 \newslide
478
479 \minisec{The package \code{tpslifonts}}
480 \indexfile{tpslifonts}{package}\label{Sec:TPslifonts}
481 Presentations to be displayed `online' with a video beamer have special needs concerning font configuration owing to low
482 `screen' resolution and bad contrast caused by possibly bad light conditions combined with color highlighting.
483
484 This package tries to cater to these needs by offering a holistic configuration of all document fonts, including text,
485 typewriter, and math fonts. Special features are `smooth scaling' of Type1 fonts and careful design size selection for
486 optimal readability.
487
488 \newslide
489
490 For more information on package options and used fonts (and on implementation) read the documentation coming with the
491 package - check the \code{tpslifonts} directory.
492
493 \minisec{The package \code{automata}}\indexfile{automata}{package}
494 Experimental package for drawing automata in the sense of theoretical computer
495 science (using PSTricks) and animating them with TeXPower. Only DFA and Mealy
496 automata are supported so far.
497
498 \newslide
499
500 \minisec{The package \code{tplists}}\indexfile{tplists}{package}
501 Experimental package providing easy dynamic lists. Currently there are stepped, flipped and dimmed versions of itemize
502 and enumerate (and corresponding lists from the \code{eqlist} and \code{paralist} package). For more information
503 and an example, compile (and then read) the file \code{tplists.dtx}.
504
505 \newslide
506
507 %-----------------------------------------------------------------------------------------------------------------
508 %
509 \section{The \macroname{pause} command}\label{Sec:pause}
510 \present{\macroname{pause}}\indexmacro{pause} is derived from the \macroname{pause} command from the package
511 \href{http://www-sp.iti.informatik.tu-darmstadt.de/software/ppower4/pp4sty.zip}{\code{texpause}} which is part of the
512 \href{http://www-sp.iti.informatik.tu-darmstadt.de/software/ppower4/}{PPower4 suite} by
513 \href{mailto:[email protected]}{Klaus Guntermann}.
514
515 It will ship out the current page, start a new page and copy whatever was on the current page onto the new page, where
516 typesetting is resumed.
517
518 \ifthenelse{\boolean{display}}{Here, let's do a little demo\pause}{}
519
520 This will create the effect of a \concept{pause} in the presentation, i.\,e.\ the presentation stops because the
521 current page ends at the point where the \macroname{pause} command occurred and is resumed at this point when the
522 presenter switches to the next page.
523
524 \newslide
525
526 \minisec{Things to pay attention to}
527 \begin{enumerate}
528 \item \macroname{pause} should appear in \concept{vertical mode} only, i.\,e.\ between paragraphs or at places where
529 ending the current paragraph doesn't hurt.
530
531 \item This means \macroname{pause} is forbidden in all \concept{boxed} material (including \code{tabular}),
532 \concept{headers/footers}, and \concept{floats}.
533
534 \item \macroname{pause} shouldn't appear either in environments which have to be \emph{closed} to work properly, like
535 \code{picture}, \code{tabbing}, and (unfortunately) environments for \concept{aligned math formulas}.
536
537 \item \macroname{pause} does work in all environments which mainly influence paragraph formatting, like \code{center},
538 \code{quote} or all \concept{list} environments.
539
540 \newslide
541
542 \item \macroname{pause} doesn't really have problems with automatic page breaking, but beware of \emph{overfull}
543 pages/slides. In this case, it may occur that only the last page(s)/slide(s) of a sequence are overfull, which
544 changes vertical spacing, making lines `wobble' when switching to the last page/slide of a sequence.
545
546 \newslide
547
548 \item The duplication of page material done by \macroname{pause} can lead to unwanted side effects. See section
549 \ref{Sec:Dupl} for further explanations. In particular, if you should experience strange color switches when using
550 \macroname{pause} (and you are \underl{not} using \code{pdftex}), turn on color stack correction with the option
551 \code{fixcolorstack}. In addition you should be aware of \macroname{pausesafecounter}, see section
552 \ref{Sec:MiscCmd}.
553
554 \end{enumerate}
555
556 A lot of the restrictions for the use of pause can be avoided by using \macroname{stepwise} (see next section).
557
558 \newslide
559
560 %-----------------------------------------------------------------------------------------------------------------
561 %
562 \section{The \macroname{stepwise} command}
563 \present{\commandapp{stepwise}{\carg{contents}}}\indexmacro{stepwise} is a command for displaying some part of a \LaTeX{} document (which
564 is contained in \carg{contents}) `step by step'. As of itself, \macroname{stepwise} doesn't do very much. If
565 \carg{contents} contains one or more constructs of the form \present{\commandapp{step}{\carg{stepcontents}}}\indexmacro{step}, the
566 following happens:
567 \begin{enumerate}
568 \item The current contents of the page are saved (as with \macroname{pause}).
569
570 \item As many pages as there are \macroname{step} commands in \carg{contents} are produced.
571
572 Every page starts with what was on the current page when \macroname{stepwise} started.
573
574 \newslide
575
576 The first page also contains everything in \carg{contents} which is \emph{not} in \carg{stepcontents} for any
577 \macroname{step} command.
578
579 The second page additionally contains the \carg{stepcontents} for the \emph{first} \macroname{step} command, and so
580 on, until all \carg{stepcontents} are displayed.
581
582 \item When all \carg{stepcontents} are displayed, \macroname{stepwise} ends and typesetting is resumed (still on the
583 current page).
584 \end{enumerate}
585
586 \parstepwise{This will create the effect that the \macroname{step} commands are executed `\step{step} \step{by}
587 \step{step}'.}
588
589 \newslide
590
591 \minisec{Things to pay attention to}
592 \begin{enumerate}
593 \item \macroname{stepwise} should appear in \concept{vertical mode} only, i.\,e.\ between paragraphs, just like
594 \macroname{pause}.
595
596 \item Don't put \macroname{pause} or nested occurrences of \macroname{stepwise} into \carg{contents}.
597
598 \item Structures where \macroname{pause} does not work (like \code{tabular} or aligned equations) can go
599 \emph{completely} into \carg{contents}, where \macroname{step} can be used freely (see \nameref{Sec:Ex}).
600
601 \item As \carg{contents} is read as a macro argument, constructs involving \concept{catcode} changes (like
602 \macroname{verb} or language switches) won't work in \carg{contents} \textbf{unless} you use the
603 \code{fragilesteps} environment (\ref{Sec:fragilesteps}).
604
605 \newslide
606
607 \item Several instances of \macroname{stepwise} may occur on one page, also combined with \macroname{pause} (outside
608 of \carg{contents}).
609
610 But beware of page breaks in \carg{contents}. This will really mess things up.
611
612 Overfull pages/slides are also a problem, just like with \macroname{pause}. See the description of \macroname{pause}
613 (section \ref{Sec:pause}) concerning this and also concerning side effects of duplicating page material.
614
615 \item \macroname{step} can go in \carg{stepcontents}. The order of execution of \macroname{step} commands is just the
616 order in which they appear in \carg{contents}, independent of nesting within each other.
617
618 \newslide
619
620 \item As \carg{contents} is executed several times, \LaTeX{} constructs changing \concept{global counters}, accessing
621 \concept{files} etc.\ are problematic. This concerns sections, numbered equations, labels, hyperlinks and the like.
622
623 Counters are taken care of explicitly by \macroname{stepwise}, so equation numbers are no problem.
624
625 Commands accessing toc files and such (like \macroname{section}) are taken care of by the whatsit suppression
626 mechanism (compare section \ref{Sec:Dupl}).
627 \end{enumerate}
628
629 \newslide
630
631 \subsection{\code{fragilesteps} environment}\label{Sec:fragilesteps}%
632
633 The \code{fragilesteps}\indexcode{fragilesteps} environment is a wrapper around \macroname{stepwise}
634 that makes it possible to use verbatim. The code for this environment is based on similar code from beamer - an
635 excellent presentation class written by Till Tantau - thanks! Using the \code{fragilesteps} environment
636 enables the use of the \code{listings} package to display code line by line. There are some examples in
637 \code{verbexample.tex}.
638
639 \newslide
640
641 \subsection{\macroname{boxedsteps} and \macroname{nonboxedsteps}}\label{Sec:boxedsteps}%
642 By default, \carg{stepcontents} belonging to a \macroname{step} which is not yet `active' are ignored altogether. This
643 makes it possible to include e.\,g.\ tabulators \code{\&} or line breaks into \carg{stepcontents} without breaking
644 anything.
645
646 Sometimes, however, this behaviour is undesirable, for instance when stepping through an equation `from outer to
647 inner', or when filling in blanks in a paragraph. Then, the desired behaviour of a \macroname{step} which is not yet
648 `active' is to create an appropriate amount of \emph{blank space} where \carg{stepcontents} can go as soon as it is
649 activated.
650
651 \newslide
652
653 The simplest and most robust way of doing this is to create an empty box (aka \macroname{phantom}) with the same
654 dimensions as the text to be hidden.
655
656 This behaviour is toggled by the following commands. See section \ref{Sec:displaycustom} for more sophisticated
657 (albeit more fragile) variants.
658 \begin{description}
659 \item[\present{\macroname{boxedsteps}}]\indexmacro{boxedsteps} makes \macroname{step} create a blank box the size of \carg{stepcontents} when
660 inactive and put \carg{stepcontents} into a box when active.
661 \item[\present{\macroname{nonboxedsteps}}]\indexmacro{nonboxedsteps} makes \macroname{step} ignore \carg{stepcontents} when inactive and leave
662 \carg{stepcontents} alone when active (default).
663 \end{description}
664
665 \newslide
666
667 \minisec{Things to pay attention to}
668 \begin{enumerate}
669 \item The settings effected by \macroname{boxedsteps} and \macroname{nonboxedsteps} are \emph{local}, i.\,e.\ whenever
670 a group closes, the setting is restored to its previous value.
671
672 \item Putting stuff into boxes can break things like tabulators (\code{\&}). It can also mess up math spacing, which
673 then has to be corrected manually. Compare the following examples:
674
675 \parstepwise{%
676 \begin{displaymath}
677 \left(\frac{a+b}{c}\right)\qquad\left(\frac{a\step{+b}}{c}\right)\qquad\left(\frac{a\restep{{}+b}}{c}\right)
678 \end{displaymath}%
679 }%
680 \end{enumerate}
681
682 \newslide
683
684 \subsection{Custom versions of \macroname{stepwise}}%
685 Sometimes, it might happen that vertical spacing is different on every page of a sequence generated by
686 \macroname{stepwise}, making lines `wobble'. This is usually fixed if you use \macroname{liststepwise} or
687 \macroname{parstepwise} (described below) in stead of \macroname{stepwise}.
688
689 \newslide
690
691 There are two custom versions of \macroname{stepwise} which should produce better vertical spacing.
692 \begin{description}
693 \item[\present{\commandapp{liststepwise}{\carg{contents}}}]
694 \indexmacro{liststepwise} works exactly like \macroname{stepwise}, but adds
695 an `invisible rule' before \carg{contents}. Use for list environments and
696 aligned equations.
697 \item[\present{\commandapp{parstepwise}{\carg{contents}}}]
698 \indexmacro{parstepwise} works like \macroname{liststepwise}, but
699 \macroname{boxedsteps} is turned on by default. Use for texts where
700 \macroname{step}s are to be filled into blank spaces.
701 \end{description}
702
703 \newslide
704
705 \subsection{Starred versions of \macroname{stepwise} commands}\label{Sec:StarredStepwise}%
706 Usually, the first page of a sequence produced contains \emph{only} material which is \emph{not} part of any
707 \carg{stepcontents}. The first \carg{stepcontents} are displayed on the second page of the sequence.
708
709 For special effects (see example \ref{Sec:Exhl}), it might be desirable to have the first \carg{stepcontents} active
710 even on the first page of the sequence.
711
712 All variants of \macroname{stepwise} have a starred version (e.\,g.\ \macroname{stepwise*}) which does exactly that.
713
714 \newslide
715
716 \subsection{The optional argument of \macroname{stepwise}}%
717 Every variant of \macroname{stepwise} takes an optional argument, like this
718 \begin{center}
719 \present{\commandapp[\carg{settings}]{stepwise}{\carg{contents}}}.
720 \end{center}
721 \carg{settings} will be placed right before the internal loop which produces the sequence of pages. It can
722 contain settings of parameters which modify the behaviour of \macroname{stepwise} or \macroname{step}. \carg{settings}
723 is placed inside a group so all changes are local to this call of \macroname{stepwise}.
724
725 Some internal macros and counters which can be adjusted are explained in the following.
726
727 \newslide
728
729 \subsection{Customizing the way \carg{stepcontents} is diplayed}\label{Sec:displaycustom}%
730 Internally, there are three macros (taking one argument each) which control how \carg{stepcontents} is displayed:
731 \macroname{displaystepcontents}\indexmacro{displaystepcontents},
732 \macroname{hidestepcontents}\indexmacro{hidestepcontents}, and
733 \macroname{activatestep}\indexmacro{activatestep}. Virtually, every
734 \commandapp{step}{\carg{stepcontents}} is replaced by
735 \begin{description}
736 \item[\present{\commandapp{hidestepcontents}{\carg{stepcontents}}}]\mbox{}\\ when this step is not yet active.
737 \item[\present{\commandapp{displaystepcontents}{\commandapp{activatestep}{\carg{stepcontents}}}}] when this step is
738 activated \emph{for the first time}.
739 \item[\present{\commandapp{displaystepcontents}{\carg{stepcontents}}}]\mbox{}\\
740 when this step has been activated before.
741 \end{description}
742
743 By redefining these macros, the behaviour of \macroname{step} is changed accordingly. You can redefine them inside
744 \carg{contents} to provide a change affecting one \macroname{step} only, or in the optional argument of
745 \macroname{stepwise} to provide a change for all \macroname{step}s inside \carg{contents}.
746
747 In the \nameref{Sec:Ex}, it is demonstrated how special effects can be achieved by redefining these macros.
748
749 \macroname{activatestep} is set to \macroname{displayidentical} by default, the default settings of
750 \macroname{hidestepcontents} and \macroname{displaystepcontents} depend on whether \macroname{boxedsteps} or
751 \macroname{nonboxedsteps} (default) is used.
752
753 \newslide
754
755 \code{texpower} offers nine standard definitions.
756
757 For interpreting \macroname{displaystepcontents}:
758 \begin{description}
759 \item[\present{\macroname{displayidentical}}]\indexmacro{displayidentical}
760 Simply expands to its argument. The same as \LaTeX s
761 \macroname{@ident}. Used by \macroname{nonboxedsteps} (default).
762
763 \item[\present{\macroname{displayboxed}}]\indexmacro{displayboxed}
764 Expands to an \macroname{mbox} containing its argument. Used by
765 \macroname{boxedsteps}.
766 \end{description}
767
768 \newslide
769
770 For interpreting \macroname{hidestepcontents}:
771 \begin{description}
772 \item[\present{\macroname{hideignore}}]\indexmacro{hideignore}
773 Expands to nothing. The same as \LaTeX s \macroname{@gobble}. Used by
774 \macroname{nonboxedsteps} (default).
775
776 \item[\present{\macroname{hidephantom}}]\indexmacro{hidephantom}
777 Expands to a \macroname{phantom} containing its argument. Used by
778 \macroname{boxedsteps}.
779
780 \item[\present{\macroname{hidevanish}}]\indexmacro{hidevanish}
781 In a colored document, makes its argument `vanish' by setting all colors to
782 \macroname{vanishcolor} (defaults to \code{pagecolor}; compare section
783 \ref{Sec:Colorcommands}). Note that this will give weird results with
784 structures backgrounds.
785
786 For monochrome documents, there is no useful interpretation for this command, so it is disabled.
787
788 \newslide
789
790 \item[{\present[s]{\macroname{hidetext}}}]\indexmacro{hidetext}
791 Produces blank space of the same dimensions as the space that would be
792 occupied if its argument would be typeset in the current paragraph. Respects automatic hyphenation and line breaks.
793
794 This command needs the \href{ftp://ftp.dante.de/tex-archive/help/Catalogue/entries/soul.html}{\code{soul}} package
795 to work, which is not loaded by \code{texpower} itself. Consult the documentation of
796 \href{ftp://ftp.dante.de/tex-archive/help/Catalogue/entries/soul.html}{\code{soul}} concerning restrictions on
797 commands implemented using \code{soul}. If you don't load the \code{soul} package yourself, there is no useful
798 definition for this command, so it defaults to \macroname{hidephantom}.
799
800 \newslide
801
802 \item[\present{\macroname{hidedimmed}}]\indexmacro{hidedimmed}
803 In a colored document, displays its argument with dimmed colors (compare
804 section \ref{Sec:Colors}). Note that this doesn't make the argument completely invisible.
805
806 For monochrome documents, there is no useful interpretation for this command, so it is disabled.
807 \end{description}
808
809 \newslide
810
811 For interpreting \macroname{activatestep}:
812 \begin{description}
813 \item[\present{\macroname{highlightboxed}}]\indexmacro{highlightboxed}
814 If the \code{colorhighlight} option (see section \ref{Sec:ColorEmphasis})
815 is set, expands to a \highlightboxed{box with colored background} containing its argument. Otherwise, expands to an
816 \macroname{fbox} containing its argument. It is made sure that the resulting box has the same dimensions as the
817 argument (the outer frame may overlap surrounding text).
818
819 There is a new length register \present{\macroname{highlightboxsep}}
820 \indexmacro{highlightboxsep} which acts like \macroname{fboxsep} for the
821 resulting box and defaults to \code{0.5\macroname{fboxsep}}.
822
823 \newslide
824
825 \item[{\present[s]{\macroname{highlighttext}}}]\indexmacro{highlighttext}
826 If the \code{colorhighlight} option (see section \ref{Sec:ColorEmphasis})
827 is set, puts its argument \highlighttext{on colored background}. Otherwise, underlines its
828 argument. It is made sure that the resulting text has the same dimensions as the argument (the outer frame may
829 overlap surrounding text).
830
831 \present{\macroname{highlightboxsep}} is used to determine the extent of the coloured box(es) used as background.
832
833 This command needs the \href{ftp://ftp.dante.de/tex-archive/help/Catalogue/entries/soul.html}{\code{soul}} package
834 to work (compare the description of \macroname{hidetext}). If you don't load the \code{soul} package yourself, there
835 is no useful definition for this command, so it is disabled.
836
837 \newslide
838
839 \item[\present{\macroname{highlightenhanced}}]\indexmacro{highlightenhanced}
840 In a colored document, displays its argument \highlightenhanced{with
841 enhanced colors} (compare section \ref{Sec:Colors}).
842
843 For monochrome documents, there is no useful interpretation for this command, so it is disabled.
844 \end{description}
845
846 \newslide
847
848 \subsection{Variants of \macroname{step}}
849 There are a couple of custom versions of \macroname{step} which make it easier to achieve special effects needed
850 frequently.
851 \begin{description}
852 \item[\present{\macroname{bstep}}]\indexmacro{bstep}
853 Like \macroname{step}, but is \emph{always} boxed (see section
854 \ref{Sec:boxedsteps}). \commandapp{bstep}{\carg{stepcontents}} is
855 implemented in principle as
856 \code{\{\macroname{boxedsteps}\commandapp{step}{\carg{stepcontents}}\}}.
857
858 In aligned equations where \macroname{stepwise} is used for being able to put tabulators into \carg{stepcontents},
859 but where nested occurrences of \macroname{step} should be boxed to assure correct sizes of growing braces or such,
860 this variant of \macroname{step} is more convenient than using \macroname{boxedsteps} for every nested occurrence
861 of \macroname{step}.
862
863 \item[\present{\commandapp{switch}{\carg{ifinactive}\}\{\carg{ifactive}}}]
864 \indexmacro{switch} is a variant of \macroname{step} which,
865 instead of making its argument appear, switches between \carg{ifinactive}
866 and \carg{ifactive} when activated.
867
868 In fact, \commandapp{step}{\carg{stepcontents}} is in principle implemented by
869 \begin{tabbing}
870 \macroname{switch}\=\code{\{\commandapp{hidestepcontents}{\carg{stepcontents}}\}}\\
871 \>\code{\{\commandapp{displaystepcontents}{\carg{stepcontents}}\}}
872 \end{tabbing}
873
874 This command can be used, for instance, to add an \macroname{underbrace} to a formula, which is difficult using
875 \macroname{step}.
876
877 Beware of problems when \carg{ifinactive} and \carg{ifactive} have different dimensions.
878
879 \newslide
880
881 \item[\present{\macroname{dstep}}]\indexmacro{dstep}
882 A variant of \macroname{step} which takes \underl{no} argument, but simply
883 switches colors to `dimmed' (compare section \ref{Sec:Colors}) if not
884 active. Not that the scope of this color change will
885 last until the next outer group closes. This command does nothing in a monochrome document.
886
887 \item[\present{\macroname{vstep}}]\indexmacro{vstep}
888 A variant of \macroname{step} which takes \underl{no} argument, but simply
889 switches all colors to \macroname{vanishcolor} (defaults to
890 \code{pagecolor}; compare section \ref{Sec:Colorcommands}) if not
891 active. Not that the scope of this color change will last until the next outer group closes. This command does
892 nothing in a monochrome document.
893
894 \item[\present{\macroname{steponce}}]\indexmacro{steponce}
895 % \steponce[<activatefirst>]{<stepcontents>}
896 Like \macroname{step}, but goes inactive again in the subsequent step.
897
898 \item[\present{\macroname{multistep}}]\indexmacro{multistep}
899 is a shorthand macro for executing several steps successively. In
900 fact, it would better be called \macroname{multiswitch}, because it's
901 functionality is based on \macroname{switch}, it only acts like a
902 (simplified) \macroname{step} command which is executed `several times'.
903 The syntax is
904 \begin{center}
905 \commandapp[\carg{activatefirst}]{multistep}{\carg{n}\}\{\carg{stepcontents}}
906 \end{center}
907 where \carg{n} is the number of steps. Only one instance of
908 \carg{stepcontents} is displayed at a time. Inside \carg{stepcontents}, a
909 counter \code{substep} can be evaluated which tells the number of the
910 current instance. In the starred form the last instance of
911 \carg{stepcontents} stays visible.
912
913 \item[\present{\macroname{movie}}]\indexmacro{movie}
914 works like \macroname{multistep}, but between \macroname{steps}, pages are
915 advanced automatically every \carg{dur} seconds. The syntax is
916 \begin{center}
917 \commandapp{movie}{\carg{n}\}\{\carg{dur}\}[\carg{stop}]\{\carg{stepcontents}}
918 \end{center}
919 where \carg{n} is the number of steps. The additional optional argument
920 \carg{stop} gives the code (default: \macroname{stopAdvancing})
921 \indexmacro{stopAdvancing} which stops the animation.
922 (\macroname{movie} accepts the same first optional argument as
923 \macroname{multistep} but it was left out above.)
924
925
926 \item[\present{\macroname{overlays}}]\indexmacro{overlays}
927 is another shorthand macro for executing several steps successively. In
928 contrast to \macroname{multistep}, it doesn't print things \emph{after}
929 each other, but \emph{over} each other. The syntax is
930 \begin{center}
931 \commandapp[\carg{activatefirst}]{overlays}{\carg{n}\}\{\carg{stepcontents}}
932 \end{center}
933 where \carg{n} is the number of steps. Inside \carg{stepcontents}, a
934 counter \code{substep} can be evaluated which tells the number of the
935 current instance.
936 \newslide
937
938 \item[\small%
939 \present{\macroname{restep}}\indexmacro{restep},
940 \present{\macroname{rebstep}}\indexmacro{rebstep},
941 \present{\macroname{reswitch}}\indexmacro{reswitch},
942 \present{\macroname{redstep}}\indexmacro{redstep},
943 \present{\macroname{revstep}}\indexmacro{revstep}.]\mbox{}\\
944 Frequently, it is desirable for two or more steps to appear at the same
945 time, for instance to fill in arguments at
946 several places in a formula at once (see example \ref{Sec:ExEq}).
947
948 \present{\commandapp{restep}{\carg{stepcontents}}} is identical with \commandapp{step}{\carg{stepcontents}}, but is
949 activated at the same time as the previous occurrence of \macroname{step}.
950
951 \present{\macroname{rebstep}}, \present{\macroname{reswitch}}, \present{\macroname{redstep}}, and
952 \present{\macroname{revstep}} do the same for \macroname{bstep}, \macroname{switch}, \macroname{dstep}, and
953 \macroname{vstep}.
954 \end{description}
955
956 \newslide
957
958 \subsection{Optional arguments of \macroname{step}}%
959 Sometimes, letting two \macroname{step}s appear at the same time (with \macroname{restep}) is not the only desirable
960 modification of the order in which \macroname{step}s appear. \macroname{step}, \macroname{bstep} and
961 \macroname{switch} take two optional arguments for influencing the mode of activation, like this:
962 \begin{center}
963 \present{\commandapp[{\carg{activatefirst}][\carg{whenactive}}]{step}{\carg{stepcontents}}}.
964 \end{center}
965 Both \carg{activatefirst} and \carg{whenactive} should be conditions in the syntax of the \macroname{ifthenelse}
966 command (see the documentation of the
967 \href{ftp://ftp.dante.de/tex-archive/help/Catalogue/entries/ifthen.html}{\code{ifthen}} package for details).
968
969 \newslide
970
971 \present{\carg{activatefirst}} checks whether this \macroname{step} is to be activated \emph{for the first time}. The
972 default value is \present{\commandapp{value}{step}=\commandapp{value}{stepcommand}} (see section \ref{Sec:Internals}
973 for a list of internal values). By using \commandapp{value}{step}=\carg{$n$}, this \macroname{step} can be forced to
974 appear as the $n$th one. See example \ref{Sec:ExPar} for a demonstration of how this can be used to make
975 \macroname{step}s appear in arbitrary order.
976
977 \present{\carg{whenactive}} checks whether this \macroname{step} is to be considered active \emph{at all}. The default
978 behaviour is to check whether this \macroname{step} has been activated before (this is saved internally for every
979 step). See example \ref{Sec:ExFooling} for a demonstration of how this can be used to make \macroname{step}s appear
980 and disappear after a defined fashion.
981
982 \minisec{If you know what you're doing\dots}
983 Both optional arguments allow two syntctical forms:
984 \begin{enumerate}
985 \item enclosed in square brackets \code{[]} like explained above.
986 \item enclosed in braces \code{()}. In this case, \carg{activatefirst} and \carg{whenactive} are \emph{not} treated as
987 conditions in the sense of \macroname{ifthenelse}, but as conditionals like those used internally by \LaTeX. That
988 means, \carg{activatefirst} (when enclosed in braces) can contain arbitrary \TeX{} code which then takes two
989 arguments and expands to one of them, depending on whether the condition is fulfilled or not fulfilled. For
990 instance, \commandapp[{\carg{activatefirst}}]{step}{\carg{stepcontents}} could be replaced by
991 \macroname{step}\code{(\commandapp{ifthenelse}{\carg{activatefirst}})\{\carg{stepcontents}\}}.
992
993 See example \ref{Sec:ExBackwards} for a simple application of this syntax.
994 \end{enumerate}
995
996 Internally, the default for the treatment of \carg{whenactive} is \code{(\macroname{if@first@TP@true})}, where
997 \macroname{if@first@TP@true} is an internal condition checking whether this \macroname{step} has been activated before.
998
999 \newslide
1000
1001 \subsection{Finding out what's going on}\label{Sec:Internals}%
1002 Inside \carg{settings} and \carg{contents}, you can refer to the following internal state variables which provide
1003 information about the current state of the process executed by \macroname{stepwise}:
1004 \begin{description}
1005 \item[\present{counter: \code{firststep}}]
1006 \indexstepwise{firststep}{counter}
1007 The number from which to start counting steps (see counter \code{step}
1008 below). Is $0$ by default and $1$ for starred versions (section \ref{Sec:StarredStepwise}) of \macroname{stepwise}.
1009 You can set this in \carg{settings} for special effects (see example \ref{Sec:ExBackwards}).
1010
1011 \item[\present{counter: \code{totalsteps}}]
1012 \indexstepwise{totalsteps}{counter}
1013 The total number of \macroname{step} commands occurring in \carg{contents}.
1014
1015 \newslide
1016
1017 \item[\present{counter: \code{step}}]
1018 \indexstepwise{step}{counter}
1019 The number of the current iteration, i.\,e.\ the number of the current page in
1020 the sequence of pages produced by \macroname{stepwise}. Runs from \commandapp{value}{firststep} to
1021 \commandapp{value}{totalsteps}.
1022
1023 \item[\present{counter: \code{stepcommand}}]
1024 \indexstepwise{stepcommand}{counter}
1025 The number of the \macroname{step} command currently being executed.
1026
1027 \item[\present{boolean: \code{firstactivation}}]
1028 \indexstepwise{firstactivation}{boolean}
1029 \code{true} if this \macroname{step} is active for the first time,
1030 \code{false} otherwise.
1031
1032 \item[\present{boolean: \code{active}}]\indexstepwise{active}{boolean}
1033 \code{true} if this \macroname{step} is currently active, \code{false}
1034 otherwise.
1035 \end{description}
1036 \code{stepcommand}, \code{firstactivation}, and \code{active} are useful only inside \carg{stepcontents}.
1037
1038
1039 \newslide
1040
1041 \subsection{\macroname{afterstep}}\indexmacro{afterstep}%
1042 It might be neccessary to set some parameters which affect the appearance of the \emph{page} (like page transitions)
1043 inside \carg{stepcontents}. However, the \macroname{step} commands are usually placed deeply inside some structure, so
1044 that all \emph{local} settings are likely to be undone by groups closing before the page is completed.
1045
1046 \present{\commandapp{afterstep}{\carg{settings}}} puts \carg{settings} right before the end of the page, after the
1047 current step is performed.
1048
1049 \newslide
1050
1051 \minisec{Things to pay attention to}
1052 \begin{enumerate}
1053 \item There can be only one effective value for \carg{settings}. Every occurrence of \macroname{afterstep} overwrites
1054 this value globally.
1055
1056 \item \macroname{afterstep} will \emph{not} be executed in \carg{stepcontents} if the corresponding \macroname{step}
1057 is not active, even if \carg{stepcontents} is displayed owing to a redefinition of \macroname{hidestepcontents},
1058 like in example \ref{Sec:Exhl}.
1059
1060 \item As \carg{settings} is put immediately before the page break, there is no means of restoring the original value
1061 of whatever has been set. So if you set something via \macroname{afterstep} and want it to be reset in some later
1062 step, you have to reset it explicitly with another call of \macroname{afterstep}.
1063 \end{enumerate}
1064
1065 \newslide
1066
1067 %-----------------------------------------------------------------------------------------------------------------
1068 %
1069 \section{Page transitions and automatic advancing}\label{Sec:PageTrans}
1070 \subsection{Page transitions}
1071 I am indepted to \href{mailto:[email protected]}{\name{Marc van Dongen}} for allowing me to include a suite of commands
1072 written by him and posted to the \href{http://www-sp.iti.informatik.tu-darmstadt.de/software/ppower4/}{PPower4}
1073 mailing list which set page transitions (using
1074 \href{ftp://ftp.dante.de/tex-archive/help/Catalogue/entries/hyperref.html}{\code{hyperref}s} \macroname{hypersetup}).
1075
1076 These commands work only if the \code{hyperref} package is loaded.
1077
1078 \newslide
1079
1080 The following page transition commands are defined:\pause
1081 \begin{description}
1082 \item[{\present[h]{\macroname{pageTransitionSplitHO}}}]
1083 \indexmacro{pageTransitionSplitHO}
1084 Split Horizontally to the outside. \pageTransitionSplitHO\pause
1085
1086 \item[{\present[h]{\macroname{pageTransitionSplitHI}}}]
1087 \indexmacro{pageTransitionSplitHI}
1088 Split Horizontally to the inside. \pageTransitionSplitHI\pause
1089
1090 \item[{\present[h]{\macroname{pageTransitionSplitVO}}}]
1091 \indexmacro{pageTransitionSplitVO}
1092 Split Vertically to the outside. \pageTransitionSplitVO\pause
1093
1094 \item[{\present[h]{\macroname{pageTransitionSplitVI}}}]
1095 \indexmacro{pageTransitionSplitVI}
1096 Split Vertically to the inside. \pageTransitionSplitVI\pause
1097
1098 \item[{\present[h]{\macroname{pageTransitionBlindsH}}}]
1099 \indexmacro{pageTransitionBlindsH}
1100 Horizontal Blinds. \pageTransitionBlindsH\pause
1101
1102 \item[{\present[h]{\macroname{pageTransitionBlindsV}}}]
1103 \indexmacro{pageTransitionBlindsV}
1104 Vertical Blinds. \pageTransitionBlindsV
1105
1106 \newslide
1107
1108 \item[{\present[h]{\macroname{pageTransitionBoxO}}}]
1109 \indexmacro{pageTransitionBoxO}
1110 Growing Box. \pageTransitionBoxO\pause
1111
1112 \item[{\present[h]{\macroname{pageTransitionBoxI}}}]
1113 \indexmacro{pageTransitionBoxI}
1114 Shrinking Box. \pageTransitionBoxI\pause
1115
1116 \item[{\present[h]{\commandapp{pageTransitionWipe}{\carg{angle}}}}]
1117 \indexmacro{pageTransitionWipe}\mbox{}\\
1118 Wipe from one edge of the page to the facing edge.
1119
1120 \stepwise
1121 {%
1122 \carg{angle} is a number between $0$ and $360$ which specifies the direction (in degrees) in which to wipe.
1123
1124 Apparently, only the values \afterstep{\pageTransitionWipe{0}}$0$, \step{\afterstep{\pageTransitionWipe{90}}$90$,}
1125 \step{\afterstep{\pageTransitionWipe{180}}$180$,} \step{$270$ are supported.}%
1126 }%
1127 \pageTransitionWipe{270}\pause
1128
1129 \item[{\present[h]{\macroname{pageTransitionDissolve}}}]
1130 \indexmacro{pageTransitionDissolve}
1131 Dissolve. \pageTransitionDissolve
1132
1133 \newslide
1134
1135 \item[{\present[h]{\commandapp{pageTransitionGlitter}{\carg{angle}}}}]
1136 \indexmacro{pageTransitionGlitter}\mbox{}\\
1137 Glitter from one edge of the page to the facing edge.
1138
1139 \stepwise
1140 {%
1141 \carg{angle} is a number between $0$ and $360$ which specifies the direction (in degrees) in which to glitter.
1142
1143 Apparently, only the values \afterstep{\pageTransitionGlitter{0}}$0$,
1144 \step{\afterstep{\pageTransitionGlitter{270}}$270$,} \step{$315$ are supported.}%
1145 }%
1146 \pageTransitionGlitter{315}\pause
1147
1148 \item[{\present[h]{\macroname{pageTransitionReplace}}}]
1149 \indexmacro{pageTransitionReplace}
1150 Simple Replace (the default).
1151 \end{description}
1152
1153 \pageTransitionReplace
1154
1155 \newslide
1156
1157 \minisec{Things to pay attention to}
1158 \begin{enumerate}
1159 \item The setting of the page transition is a property of the \emph{page}, i.~e.\ whatever page transition is in
1160 effect when a page break occurs, will be assigned to the corresponding pdf page.
1161
1162 \item The setting of the page transition is undone when a group ends.
1163
1164 Make sure no \LaTeX{} environment is ended between a \macroname{pageTransition} setting and the next page break. In
1165 particular, in \carg{stepcontents}, \macroname{afterstep} should be used (see example \ref{Sec:ExPic}).
1166
1167 \newslide
1168
1169 \item Setting page transitions works well with \macroname{pause}. Here, \macroname{pause} acts as a page break,
1170 i.\,e.\ a different page transition can be set before every occurrence of \macroname{pause}.
1171 \end{enumerate}
1172
1173 \newslide
1174
1175 \subsection{Automatic advancing of pages}\label{Sec:PageDuration}
1176 If you have loaded a sufficiently new version of the
1177 \href{ftp://ftp.dante.de/tex-archive/help/Catalogue/entries/hyperref.html}{\code{hyperref}} package (which allows to
1178 set \code{pdfpageduration}), then the following command is defined which enables automatic advancing of \code{pdf}
1179 pages.
1180
1181 \present[h]{\commandapp{pageDuration}{\carg{dur}}}\indexmacro{pageDuration}
1182 causes pages to be advanced automatically every \carg{dur}
1183 seconds. \carg{dur} should be a non-negative fixed-point number.
1184
1185 \pageDuration{2}\pause
1186
1187 Depending on the \code{pdf} viewer, this will happen only in full-screen mode.
1188
1189 See example \ref{Sec:ExFooling} for a demonstration of this effect.
1190
1191 \stopAdvancing
1192
1193 \newslide
1194
1195 The same restrictions as for \concept{page transitions} apply. In particular, the page duration setting is undone by
1196 the end of a group, i.\,e.\ it is useless to set the page duration if a \LaTeX{} environment ends before the next page
1197 break.
1198
1199 There is no `neutral' value for \carg{dur} ($0$ means advance as fast as possible). You can make automatic advancing
1200 stop by calling \commandapp{pageDuration}{}. \code{texpower} offers the custom command
1201 \begin{center}
1202 \present[h]{\macroname{stopAdvancing}}\indexmacro{stopAdvancing}
1203 \end{center}
1204 to do this.
1205
1206 \newslide
1207
1208 %-----------------------------------------------------------------------------------------------------------------
1209 %
1210 \section{Color management, color emphasis and highlighting}\label{Sec:ColorEmphasis}
1211 \TeX Power tries to find out whether you are making a colored document. This is assumed if
1212 \begin{itemize}
1213 \item the \href{ftp://ftp.dante.de/tex-archive/help/Catalogue/entries/color.html}{\code{color}} package has been
1214 loaded before the \code{texpower} package or
1215 \item a color-related option (see sections \ref{Sec:ColBgdOpt} and \ref{Sec:ColorOptions}) is given to the
1216 \code{texpower} package (in this case, the
1217 \href{ftp://ftp.dante.de/tex-archive/help/Catalogue/entries/color.html}{\code{color}} package is loaded
1218 automatically).
1219 \end{itemize}
1220 If this is the case, \TeX Power installs an extensive color management scheme on top of the kernel of the
1221 \href{ftp://ftp.dante.de/tex-archive/help/Catalogue/entries/color.html}{\code{color}} package.
1222
1223 In the following, some new concepts established by this management scheme are explained. Sections \ref{Sec:ColBgdOpt}
1224 and \ref{Sec:ColorOptions} list options for color activation, section \ref{Sec:Colorcommands} lists some new
1225 highlighting commands, and section \ref{Sec:Colors} gives the names and meaning of \TeX Power's predefined colors.
1226
1227 Note that parts of the kernel of the
1228 \href{ftp://ftp.dante.de/tex-archive/help/Catalogue/entries/color.html}{\code{color}} package are overloaded for
1229 special purposes (getting driver-independent representations of defined colors to be used by \macroname{colorbetween}
1230 (\ref{Sec:MiscColorCommands}), for instance), so it is recommended to execute color definition commands like
1231 \macroname{definecolor} \emph{after} the \code{texpower} package has been loaded (see also the next section on
1232 \macroname{defineTPcolor}).
1233
1234 \newslide
1235
1236 \subsection{Standard colors}\label{Sec:StdCols}
1237 \TeX Power maintains a list of \concept{standard colors} which are recognized and handled by \TeX Power's color
1238 management. Some commands like \macroname{dimcolors} (see section \ref{Sec:ColorVariants}) affect \emph{all} standard
1239 colors. There are some predefined colors which are in this list from the outset (see section \ref{Sec:Colors}).
1240
1241 If colors defined by the user are to be recognized by \TeX Power, they have to be included in this list. The easiest
1242 way is to use the following command for defining them.
1243
1244 \newslide
1245
1246 \present{\commandapp{defineTPcolor}{\carg{name}\}\{\carg{model}\}\{\carg{def}}}
1247 \indexmacro{defineTPcolor} acts like \macroname{definecolor}
1248 \indexmacro{defineTPcolor} from the \code{color} package, but the color
1249 \carg{name} is also added to the list of standard colors.
1250
1251 If you want to make a color a standard color which is defined elsewhere (by a document class, say), you can simply add
1252 it to the list of standard colors with the command
1253 \present{\commandapp{addTPcolor}{\carg{name}}}\indexmacro{addTPcolor}.
1254
1255 \newslide
1256
1257 \subsection{Color sets}
1258 Every standard color may be defined in one or several \concept{color sets}. There are two fundamentally different
1259 types of color set:
1260 \begin{description}
1261 \item[The current color set.] This contains the current definition of every standard color which is actually used at
1262 the moment. Every standard color should be defined at least in the current color set. The current color set is not
1263 distinguished by a special name.
1264
1265 \newslide
1266
1267 \item[Named color sets.] These are `containers' for a full set of color definitions (for the standard colors) which
1268 can be activated by respective commands (see below). The color sets are distinguished by their names. Color
1269 definitions in a named color set are not currently available, they have to be made available by activating the named
1270 color set.
1271
1272 There are four predefined color sets named \code{whitebg}\indexcode{whitebg},
1273 \code{lightbg}\indexcode{lightbg}, \code{darkbg}\indexcode{darkbg},
1274 \code{blackbg}\indexcode{blackbg}, each of which contains a full set of (predefined)
1275 standard colors customized for a white, light, dark, black background
1276 color, respectively.
1277 \end{description}
1278
1279 \newslide
1280
1281 There are the following commands for manipulating color sets:
1282 \begin{description}
1283 \item[\present{\commandapp{usecolorset}{\carg{name}}}]\indexmacro{usecolorset}
1284 Make the color set named \carg{name} the current color set.
1285 \emph{All standard colors in the current color set which are also in color set \carg{name} are overwritten.}
1286
1287 The standard color \code{textcolor} is set automatically after activating color set \carg{name}.
1288
1289 \item[\present{\commandapp{dumpcolorset}{\carg{name}}}]\indexmacro{dumpcolorset}
1290 Copy the definitions of \emph{all} standard colors in the
1291 current color set into color set named \carg{name}. All standard colors in color set \carg{name} will be
1292 overwritten.
1293 \end{description}
1294
1295 \newslide
1296
1297 Using \commandapp{defineTPcolor}{\carg{name}} or \commandapp{definecolor}{\carg{name}} will define the color
1298 \carg{name} in the \emph{current} color set. To define a color in color set \carg{cset}, use
1299 \present{\commandapp[\carg{cset}]{defineTPcolor}{\carg{name}}}.
1300
1301 \newslide
1302
1303 \minisec{Things to pay attention to}
1304 \begin{enumerate}
1305 \item Color sets are not really `\TeX{} objects', but are distinguished by color name suffixes. This means, a color
1306 named \code{foo} is automatically in the current color set. Executing \commandapp[\carg{cset}]{defineTPcolor}{foo}
1307 means executing \macroname{definecolor} for a specific color the name of which is a combination of \code{foo} and
1308 \carg{cset}.
1309
1310 Consequently, \macroname{usecolorset} and \macroname{dumpcolorset} do not copy color sets as composite objects, but
1311 simply all colors the names of which are generated from the list of standard colors.
1312
1313 \newslide
1314
1315 \item The command \commandapp{usecolorset}{\carg{name}} overwrites only those colors which have been defined in color
1316 set \carg{name}. If a standard color is defined in the current color set, but not in color set \carg{name}, it is
1317 preserved (but if \commandapp{dumpcolorset}{\carg{name}} is executed later, then it will also be copied back into
1318 the color set \carg{name}).
1319 \end{enumerate}
1320
1321 \newslide
1322
1323 \subsection{Color Background Options}\label{Sec:ColBgdOpt}
1324 For activating the predefined color sets, there are shorthands
1325 \macroname{whitebackground}\indexmacro{whitebackground},
1326 \macroname{lightbackground}\indexmacro{lightbackground},
1327 \macroname{darkbackground}\indexmacro{darkbackground},
1328 \macroname{blackbackground}\indexmacro{blackbackground} which execute
1329 \macroname{usecolorset} and additionally set the background color to its current value.
1330
1331 \newslide
1332
1333 When one of the following options is given, the respective command is executed automatically at the beginning of the
1334 document.
1335 \begin{description}
1336 \item[\present{option: \code{whitebackground} (default)}]
1337 \indexpckopt{texpower}{whitebackground}
1338 Set standard colors to match a white background color.
1339
1340 \item[\present{option: \code{lightbackground}}]
1341 \indexpckopt{texpower}{lightbackground}
1342 Set standard colors to match a light (but not white) background color.
1343
1344 \item[\present{option: \code{darkbackground}}]
1345 \indexpckopt{texpower}{darkbackground}
1346 Set standard colors to match a dark (but not black) background color.
1347
1348 \item[\present{option: \code{blackbackground}}]
1349 \indexpckopt{texpower}{blackbackground}
1350 Set standard colors to match a black background color.
1351 \end{description}
1352
1353 \newslide
1354
1355 \subsection{Color variants}\label{Sec:ColorVariants}
1356 In addition to color sets, \TeX Power implements a concept of \concept{color variant}. Currently, every color has three
1357 variants: \concept{normal}, \concept{dimmed}, and \concept{enhanced}. The normal variant is what is usually seen, text
1358 written in the dimmed variant appears ``faded into the background'' and text written in the enhanced variant appears
1359 to ``stick out''.
1360
1361 \newslide
1362
1363 When switching variants, for every color one of two cases can occur:
1364 \begin{enumerate}
1365 \item A \concept{designated color} for this variant has been defined.
1366
1367 For color \carg{color} the designated name of the \concept{dimmed}
1368 \indexcode{dimmed color variant} variant is \code{d\carg{color}}, the designated
1369 name of the \concept{enhanced}\indexcode{enhanced color variant} variant is
1370 \code{e\carg{color}}.
1371
1372 If a color by that name exists at the time the variant is switched to, then variant switching is executed by
1373 replacing color \carg{color} with the designated color.
1374
1375 \newslide
1376
1377 \item A \concept{designated color} for this variant has not been defined.
1378
1379 If a color by the designated name does not exist at the time a color variant is switched to, then variant switching
1380 is executed by \concept{automatically} calculating the color variant from the original color.
1381
1382 The method for calculation depends on the variant:
1383
1384 \newslide
1385
1386 \begin{description}
1387 \item[dimmed.] The dimmed variant is calculated by \concept{interpolating} between \code{pagecolor} and the color to
1388 be dimmed, using the \macroname{colorbetween} command (see \ref{Sec:MiscColorCommands}).
1389
1390 There is a command \present{\macroname{dimlevel}}\indexmacro{dimlevel}
1391 which contains the parameter \carg{weight} given to \macroname{colorbetween}
1392 (default: \code{0.7}). This default can be overridden by either redefining
1393 \macroname{dimlevel} or giving an alternative \carg{weight} as an optional
1394 argument to the color dimming command (see below).
1395
1396 \newslide
1397
1398 \item[enhanced.] The enhanced variant is calculated by \concept{extrapolating} the color to be enhanced (relative to
1399 \code{pagecolor}).
1400
1401 There is a command \present{\macroname{enhancelevel}}\indexmacro{enhancelevel}
1402 which gives the \concept{extent} of the extrapolation (default: \code{0.5}).
1403 The same holds for overriding this default as for \macroname{dimlevel}.
1404 \end{description}
1405 \end{enumerate}
1406
1407 \newslide
1408
1409 The following commands switch color variants:
1410 \begin{description}
1411 \item[\present{\commandapp[\carg{level}]{dimcolor}{\carg{color}}}]
1412 \indexmacro{dimcolor} switches color \carg{color} to the \concept{dimmed}
1413 variant. If given, \carg{level} replaces the value of \macroname{dimlevel} in automatic calculation of the dimmed
1414 variant (see above).
1415
1416 \item[\present{\code{\macroname{dimcolors}[\carg{level}]}}]
1417 \indexmacro{dimcolors} switches \emph{all} standard colors to the \concept{dimmed}
1418 variant. The optional argument \carg{level} acts as for \macroname{dimcolor}.
1419
1420 \newslide
1421
1422 \item[\present{\commandapp[\carg{level}]{enhancecolor}{\carg{color}}}]
1423 \indexmacro{enhancecolor} switches color \carg{color} to the
1424 \concept{enhanced} variant. If given, \carg{level} replaces the value of \macroname{enhancelevel} in automatic
1425 calculation of the enhanced variant (see above).
1426
1427 \item[\present{\code{\macroname{enhancecolors}[\carg{level}]}}]
1428 \indexmacro{enhancecolors} switches \emph{all} standard colors to the
1429 \concept{enhanceed} variant. The optional argument \carg{level} acts as for \macroname{enhancecolor}.
1430 \end{description}
1431
1432 \newslide
1433
1434 \minisec{Things to pay attention to}
1435 \begin{enumerate}
1436 \item While automatic calculation of a \concept{dimmed} color will almost always yield the desired result
1437 (interpolating between colors by calculating a weighted average is trivial), automatic calculation of an
1438 \concept{enhanced} color by `extrapolating' is tricky at best and will often lead to unsatisfactory results. This is
1439 because the idea of making a color `stronger' is very hard to formulate numerically.
1440
1441 \newslide
1442
1443 The following effects of the current algorithm should be kept in mind:
1444 \begin{itemize}
1445 \item if the background color is light, enhancing a color will make it darker;
1446 \item if the background color is dark, enhancing a color will make it lighter;
1447 \item sometimes, the numerical values describing an enhanced color have to be \concept{bounded} to avoid exceeding
1448 the allowed range, diminishing the enhancing effect. For instance, if the background color is black and the color
1449 to be enhanced is a `full-powered' yellow, there is no way of enhancing it by simple numeric calculation.
1450 \end{itemize}
1451
1452 \newslide
1453
1454 As a conclusion, for best results it is recommended to provide custom \code{e} variants of colors to be enhanced. By
1455 default, \TeX Power does not provide dedicated enhanced colors, but the file \code{tpsettings.cfg} contains complete
1456 sets of enhanced variants for the standard colors in the different color sets, which you can uncomment and
1457 experiment with as convenient.
1458
1459 \newslide
1460
1461 \item Currently, switching to a different color variant is done by simply overwriting the current definitions of all
1462 standard colors. This means
1463 \begin{itemize}
1464 \item there is no way of `undimming' a color once it has been dimmed,
1465 \item a dimmed color can not be enhanced and vice versa.
1466 \end{itemize}
1467 Maybe this will be solved in a slightly more clever way in subsequent releases of \TeX Power.
1468
1469 \newslide
1470
1471 Hence, it is recommended to
1472 \begin{itemize}
1473 \item restrict the \concept{scope} of a global variant switching command like \macroname{dimcolors},
1474 \macroname{enhancecolors} or \macroname{dstep} by enlcosing it into a \LaTeX{} group (like \code{\{\dots\}}) or
1475 \item use \macroname{dumpcolorset} before the command to save the current definitions of all colors, to be restored
1476 with \macroname{usecolorset}.
1477
1478 At the very beginning of a \macroname{stepwise} command, \TeX Power executes \commandapp{dumpcolorset}{stwcolors},
1479 so you can restore the colors anywhere in the argument of \macroname{stepwise} by saying
1480 \commandapp{usecolorset}{stwcolors}.
1481 \end{itemize}
1482
1483 \newslide
1484
1485 \item Some rudimentary attempts are made to keep track of which color is in what variant, to the effect that
1486 \begin{itemize}
1487 \item a color which is not in the normal variant will neither be dimmed nor enhanced;
1488 \item when \macroname{usecolorset} overwrites a color with its normal variant, this is registered.
1489 \end{itemize}
1490 Still, it is easy to get in trouble by mixing variant changes with color set changes (say, if not all standard
1491 colors are defined in a color set, or if a color set is dumped when not all colors are in normal variant), so it is
1492 recommended not to use or dump color sets when outside the normal variant (unless for special applications like
1493 undoing a variant change by \commandapp{usecolorset}{stwcolors}).
1494 \end{enumerate}
1495
1496
1497 \newslide
1498
1499 \subsection{Miscellaneous color management commands}\label{Sec:MiscColorCommands}
1500 \begin{description}
1501 \item[\present{\commandapp[\carg{tset}]{replacecolor}{\carg{tcolor}\}[\carg{sset}]\{\carg{scolor}}}]
1502 \indexmacro{} makes
1503 \carg{tcolor} have the same definition as \carg{scolor} (if \carg{scolor} is defined at all), where \carg{tcolor}
1504 and \carg{scolor} are color names as given in the first argument of \macroname{definecolor}. If (one of)
1505 \carg{tset} and \carg{sset} are given, the respective color is taken from the respective color set, otherwise from
1506 the current color set.
1507
1508 If \carg{scolor} is not defined (in color set \carg{sset}), \carg{tcolor} is left alone.
1509
1510 \newslide
1511
1512 \item[\present{\commandapp[\carg{weight}]{colorbetween}{\carg{src1}\}\{\carg{src2}\}\{\carg{target}}}]
1513 \indexmacro{colorbetween} calculates a
1514 `weighted average' between two colors. \carg{src1} and \carg{src2} are the names of the two colors. \carg{weight}
1515 (default: $0.5$) is a fixed-point number between $0$ and $1$ giving the `weight' for the interpolation between
1516 \carg{src1} and \carg{src2}. \carg{target} is the name to be given to the resulting mixed color.
1517
1518 If \carg{weight} is $1$, then \carg{target} will be identical to \carg{src1} (up to color model conversions, see
1519 below), if \carg{weight} is $0$, then \carg{target} will be identical to \carg{src2}, if \carg{weight} is $0.5$
1520 (default), then \carg{target} will be exactly in the middle between \carg{src1} and \carg{src2}.
1521
1522 \macroname{colorbetween} supports the following color models: \code{rgb}, \code{RGB}, \code{gray}, \code{cmyk},
1523 \code{hsb}. If both colors are of the same model, the resulting color is also of the respective model. If
1524 \carg{src1} and \carg{src2} are from \emph{different} models, then \carg{target} will \emph{always} be an \code{rgb}
1525 color. The only exception is the \code{hsb} color model: As I don't know how to convert \code{hsb} to \code{rgb},
1526 mixing \code{hsb} with another color model will always raise an error.
1527
1528 \newslide
1529
1530 \item[\present{\commandapp{mkfactor}{\carg{expr}\}\{\carg{macroname}}}]
1531 \indexmacro{mkfactor} is a helper command for automatically
1532 generating the fixed point numbers between $0$ and $1$ which are employed by the color calculation commands.
1533 \carg{expr} can be any expression which can stand behind \code{*} in expressions allowed by the
1534 \href{ftp://ftp.dante.de/tex-archive/help/Catalogue/entries/calc.html}{\code{calc}} package (for instance:
1535 \code{\commandapp{value}{counter}/\commandapp{value}{maxcounter}} or \macroname{ratio} or whatever).
1536 \carg{macroname} should be a valid macro name. \carg{expr} is converted into a fixed-point representation which is
1537 then assigned to \carg{macroname}.
1538
1539 \newslide
1540
1541 \item[\present{\code{\macroname{vanishcolors}[\carg{color}]}}]
1542 \indexmacro{vanishcolors} is similar to the color variant command
1543 \macroname{dimcolors}, but instead of dimming colors, all standard colors are replaced by a single color given by
1544 the new command \present{\macroname{vanishcolor}} (default: \code{pagecolor}). Hence, the result of calling
1545 \macroname{vanishcolors} should be that all text vanishes, as it is written in the background color (this doesn't
1546 work with structured backgrounds, of course).
1547
1548 For getting a color different from the default \code{pagecolor}, you can either redefinine \macroname{vanishcolor}
1549 or give an alternative \carg{color} as an optional argument to \macroname{vanishcolors}.
1550
1551 There is no dedicated command for making a single color vanish. To achieve this, use
1552 \commandapp{replacecolor}{\carg{color}\}\{\macroname{vanishcolor}}.
1553 \end{description}
1554
1555
1556 \subsection{Color Emphasis and Highlighting}\label{Sec:ColorOptions}
1557 \code{texpower} offers some support for text emphasis and highlighting with colors (instead of, say, font
1558 changes). These features are enabled by the following options:
1559 \begin{description}
1560 \item[\present{option: \code{coloremph}}]\indexpckopt{texpower}{coloremph}
1561 Make \macroname{em} and \macroname{emph} switch colors instead of fonts.
1562
1563 \item[\present{option: \code{colormath}}]\indexpckopt{texpower}{colormath}
1564 Color all mathematical formulae.
1565
1566 \item[\present{option: \code{colorhighlight}}]\indexpckopt{texpower}{colorhighlight}
1567 Make new highlighting and emphasis commands defined by \code{texpower}
1568 use colors.
1569 \end{description}
1570
1571 \minisec{Things to pay attention to}
1572 \begin{enumerate}
1573 \item You need the \code{color} package to use any of the color features.
1574
1575 \item To implement the options \code{coloremph} and \code{colormath}, it is neccessary to redefine some \LaTeX{}
1576 internals. This can lead to problems and incompatibilities with other packages. Use with caution.
1577
1578 \item If the \code{colorhighlight} option is \emph{not} given, new highlighting and emphasis commands defined by
1579 \code{texpower} are realized otherwise. Sometimes, however, there is no good alternative to colors, so different
1580 emphasis commands can become disabled or indistinguishable.
1581
1582 \newslide
1583
1584 \item Because of font changes, emphasized or highlighted text can have different dimensions whether or not the options
1585 \code{coloremph}, \code{colormath}, and \code{colorhighlight} are set. Prepare for different line and page breaks
1586 when changing one of these options.
1587
1588 \item Color emphasis and highlighting makes use of the predefined standard colors described in section
1589 \ref{Sec:Colors}. See sections \ref{Sec:StdCols} to \ref{Sec:ColBgdOpt} for further information on standard colors,
1590 color sets, and customization.
1591 \end{enumerate}
1592
1593 \newslide
1594
1595 \subsection{New commands for emphasis and highlighting elements}\label{Sec:Colorcommands}
1596 Some things like setting the page or text color, making emphasised text or math colored are done automatically when
1597 the respective options are set. There are some additional new commands for creating emphasis and highlighting
1598 elements.
1599
1600 \minisec{Concerning math:}
1601 \begin{description}
1602 \item[\present{\macroname{origmath}}]\indexmacro{origmath}
1603 When the \code{colormath} option is given, \emph{everything} which appears in
1604 math mode is colored accordingly. Sometimes, however, math mode is used for something besides mathematical formulae.
1605 Some \LaTeX{} commands which internally use math mode (like \code{tabular} or \macroname{textsuperscript}) are
1606 redefined accordingly when the \code{colormath} option is given (this is a potential source of trouble; beware of
1607 problems\dots).
1608
1609 If you need to use math mode for something which is not to be colored (like a symbol for \code{itemize}), you can
1610 use the \macroname{origmath} command which works exactly like \macroname{ensuremath} but doesn't color its argument.
1611 If a nested use of math mode should occur in the argument of \macroname{origmath}, it will again be colored.
1612 \end{description}
1613
1614 \newslide
1615
1616 \minisec{Documenting \TeX{} code:}
1617 \begin{description}
1618 \item[\present{\macroname{code}}]\indexmacro{code}
1619 Simple command for typesetting \code{code} (like shell commands).
1620
1621 \item[\present{\macroname{macroname}}]\indexmacro{macroname}
1622 For \macroname{macro names}. Like \macroname{code}, but with a \macroname{} in
1623 front.
1624
1625 \item[\present{\commandapp[\carg{opt arg}]{commandapp}{\carg{command}\}\{\carg{arg}}}]
1626 \indexmacro{commandapp} For \TeX{} commands. \carg{arg}
1627 stands for the command argument, \carg{opt arg} for an optional argument.
1628
1629 \item[\present{\macroname{carg}}]\indexmacro{carg}
1630 For \carg{macro arguments}.
1631 \end{description}
1632
1633 \newslide
1634
1635 \minisec{Additional emphasis commands:}
1636 \begin{description}
1637 \item[\present{\macroname{underl}}]\indexmacro{underl}
1638 Additional \underl{emphasis} command. Can be used like \macroname{emph}. Defaults
1639 to \textbf{bold face} if the \code{colorhighlight} option is not given.
1640
1641 \item[\present{\macroname{concept}}]\indexmacro{concept}
1642 Additional \concept{emphasis} command, especially for new concepts. Can be
1643 augmented by things like automatic index entry creation. Also defaults to \textbf{bold face} if the
1644 \code{colorhighlight} option is not given.
1645
1646 \item[\present{\macroname{inactive}}]\indexmacro{inactive}
1647 Additional \inactive{emphasis} command, this time for `de-emphasising'. There is
1648 no sensible default if the \code{colorhighlight} option is not given, as base \LaTeX{} doesn't offer an appropriate
1649 font. In this case, \macroname{inactive} defaults to \macroname{monochromeinactive}, which does nothing.
1650
1651 You can (re-)define \macroname{monochromeinactive} to provide some sensible behaviour in the absence of colors, for
1652 instance striking out if you're using the
1653 \href{ftp://ftp.dante.de/tex-archive/help/Catalogue/entries/soul.html}{\code{soul}} package.
1654 \end{description}
1655
1656
1657 \minisec{Color Highlighting:}
1658 \begin{description}
1659 \item[\present{\macroname{present}}]\indexmacro{present}
1660 Highlighting command which puts its argument into a \present{box with colored
1661 background}. Defaults to an \fbox{\macroname{fbox}} if the \code{colorhighlight} option is not given.
1662
1663 See section \ref{Sec:displaycustom} for some further highlighting commands.
1664 \end{description}
1665
1666 \newslide
1667
1668 \subsection{Predefined standard colors}\label{Sec:Colors}
1669 In previous subsections, it has been mentioned that \TeX Power predefines some standard colors which have appropriate
1670 values in the predefined color sets \code{whitebg}, \code{lightbg}, \code{darkbg}, and \code{blackbg} (see sections
1671 \ref{Sec:StdCols} to \ref{Sec:ColBgdOpt} for further information on standard colors, color sets, and customization).
1672 \begin{description}
1673 \item[\present{color: \code{pagecolor}}]\indexcode{pagecolor}
1674 Background color of the page. Is set automatically at the beginning of the
1675 document if color management is active.
1676
1677 \item[\present{color: \code{textcolor}}]\indexcode{textcolor}
1678 Color of normal text. Is set automatically at the beginning of the
1679 document if color management is active.
1680
1681 \item[\present{color: \code{emcolor}}]\indexcode{emcolor}
1682 Color used for \emph{emphasis} if the \code{coloremph} option is set.
1683
1684 \item[\present{color: \code{altemcolor}}]\indexcode{altemcolor}
1685 Color used \emph{for \emph{double} emphasis} if the \code{coloremph} option
1686 is set.
1687
1688 \item[\present{color: \code{mathcolor}}]\indexcode{mathcolor}
1689 Color used for math $a^2+b^2=c^2$ if the \code{colormath} option is set.
1690
1691 \item[\present{color: \code{codecolor}}]\indexcode{codecolor}
1692 Color used by the \macroname{code} command if the \code{colorhighlight}
1693 option is set.
1694
1695 \item[\present{color: \code{underlcolor}}]\indexcode{underlcolor}
1696 Color used by the \underl{\macroname{underl} command} if the
1697 \code{colorhighlight} option is set.
1698
1699 \item[\present{color: \code{conceptcolor}}]\indexcode{conceptcolor}
1700 Color used by the \concept{\macroname{concept} command} if the
1701 \code{colorhighlight} option is set.
1702
1703 \newslide
1704
1705 \item[\present{color: \code{inactivecolor}}]\indexcode{inactivecolor}
1706 Color used by the \inactive{\macroname{inactive} command} if the
1707 \code{colorhighlight} option is set.
1708
1709 \item[\present{color: \code{presentcolor}}]\indexcode{presentcolor}
1710 Color used as background color by the \present{\macroname{present}}
1711 command if the \code{colorhighlight} option is set.
1712
1713 \item[\present{color: \code{highlightcolor}}]\indexcode{highlightcolor}
1714 Color used as background color by the
1715 \highlightboxed{\macroname{highlightboxed}} and \macroname{highlighttext} commands (see section
1716 \ref{Sec:displaycustom}) if the \code{colorhighlight} option is set.
1717 \end{description}
1718
1719 \ifthenelse{\boolean{TPcolor}}
1720 {%
1721 \newslide
1722
1723 \whitebackground
1724
1725 \minisec{Color tables}
1726
1727 \newlength{\widthfirstcol}
1728 \settowidth{\widthfirstcol}{\textbf{\footnotesize white background}}
1729
1730 \vspace*{\fill}
1731 \begin{center}
1732 \begin{tabular}{|p{\widthfirstcol}*{3}{|p{2cm}}|}
1733 \cline{2-4}
1734 \multicolumn{1}{l|}{\textbf{\footnotesize white background}}&standard&dimmed&enhanced\\\hline
1735 \code{textcolor}&\textcolor{textcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{textcolor}\textcolor{textcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{textcolor}\textcolor{textcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1736 \code{emcolor}&\textcolor{emcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{emcolor}\textcolor{emcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{emcolor}\textcolor{emcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1737 \code{altemcolor}&\textcolor{altemcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{altemcolor}\textcolor{altemcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{altemcolor}\textcolor{altemcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1738 \code{mathcolor}&\textcolor{mathcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{mathcolor}\textcolor{mathcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{mathcolor}\textcolor{mathcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1739 \code{codecolor}&\textcolor{codecolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{codecolor}\textcolor{codecolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{codecolor}\textcolor{codecolor}{\rule{2cm}{\heightof{l}}}\\\hline
1740 \code{underlcolor}&\textcolor{underlcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{underlcolor}\textcolor{underlcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{underlcolor}\textcolor{underlcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1741 \code{conceptcolor}&\textcolor{conceptcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{conceptcolor}\textcolor{conceptcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{conceptcolor}\textcolor{conceptcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1742 \code{inactivecolor}&\textcolor{inactivecolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{inactivecolor}\textcolor{inactivecolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{inactivecolor}\textcolor{inactivecolor}{\rule{2cm}{\heightof{l}}}\\\hline
1743 \code{presentcolor}&\textcolor{presentcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{presentcolor}\textcolor{presentcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{presentcolor}\textcolor{presentcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1744 \code{highlightcolor}&\textcolor{highlightcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{highlightcolor}\textcolor{highlightcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{highlightcolor}\textcolor{highlightcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1745 \end{tabular}
1746 \end{center}
1747
1748 \newslide
1749
1750 \lightbackground
1751
1752 \vspace*{\fill}
1753 \begin{center}
1754 \begin{tabular}{|p{\widthfirstcol}*{3}{|p{2cm}}|}
1755 \cline{2-4}
1756 \multicolumn{1}{l|}{\textbf{\footnotesize light background}}&standard&dimmed&enhanced\\\hline
1757 \code{textcolor}&\textcolor{textcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{textcolor}\textcolor{textcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{textcolor}\textcolor{textcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1758 \code{emcolor}&\textcolor{emcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{emcolor}\textcolor{emcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{emcolor}\textcolor{emcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1759 \code{altemcolor}&\textcolor{altemcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{altemcolor}\textcolor{altemcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{altemcolor}\textcolor{altemcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1760 \code{mathcolor}&\textcolor{mathcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{mathcolor}\textcolor{mathcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{mathcolor}\textcolor{mathcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1761 \code{codecolor}&\textcolor{codecolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{codecolor}\textcolor{codecolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{codecolor}\textcolor{codecolor}{\rule{2cm}{\heightof{l}}}\\\hline
1762 \code{underlcolor}&\textcolor{underlcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{underlcolor}\textcolor{underlcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{underlcolor}\textcolor{underlcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1763 \code{conceptcolor}&\textcolor{conceptcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{conceptcolor}\textcolor{conceptcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{conceptcolor}\textcolor{conceptcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1764 \code{inactivecolor}&\textcolor{inactivecolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{inactivecolor}\textcolor{inactivecolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{inactivecolor}\textcolor{inactivecolor}{\rule{2cm}{\heightof{l}}}\\\hline
1765 \code{presentcolor}&\textcolor{presentcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{presentcolor}\textcolor{presentcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{presentcolor}\textcolor{presentcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1766 \code{highlightcolor}&\textcolor{highlightcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{highlightcolor}\textcolor{highlightcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{highlightcolor}\textcolor{highlightcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1767 \end{tabular}
1768 \end{center}
1769
1770 \newslide
1771
1772 \darkbackground
1773
1774 \vspace*{\fill}
1775 \begin{center}
1776 \begin{tabular}{|p{\widthfirstcol}*{3}{|p{2cm}}|}
1777 \cline{2-4}
1778 \multicolumn{1}{l|}{\textbf{\footnotesize dark background}}&standard&dimmed&enhanced\\\hline
1779 \code{textcolor}&\textcolor{textcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{textcolor}\textcolor{textcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{textcolor}\textcolor{textcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1780 \code{emcolor}&\textcolor{emcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{emcolor}\textcolor{emcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{emcolor}\textcolor{emcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1781 \code{altemcolor}&\textcolor{altemcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{altemcolor}\textcolor{altemcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{altemcolor}\textcolor{altemcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1782 \code{mathcolor}&\textcolor{mathcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{mathcolor}\textcolor{mathcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{mathcolor}\textcolor{mathcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1783 \code{codecolor}&\textcolor{codecolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{codecolor}\textcolor{codecolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{codecolor}\textcolor{codecolor}{\rule{2cm}{\heightof{l}}}\\\hline
1784 \code{underlcolor}&\textcolor{underlcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{underlcolor}\textcolor{underlcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{underlcolor}\textcolor{underlcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1785 \code{conceptcolor}&\textcolor{conceptcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{conceptcolor}\textcolor{conceptcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{conceptcolor}\textcolor{conceptcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1786 \code{inactivecolor}&\textcolor{inactivecolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{inactivecolor}\textcolor{inactivecolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{inactivecolor}\textcolor{inactivecolor}{\rule{2cm}{\heightof{l}}}\\\hline
1787 \code{presentcolor}&\textcolor{presentcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{presentcolor}\textcolor{presentcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{presentcolor}\textcolor{presentcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1788 \code{highlightcolor}&\textcolor{highlightcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{highlightcolor}\textcolor{highlightcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{highlightcolor}\textcolor{highlightcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1789 \end{tabular}
1790 \end{center}
1791
1792 \newslide
1793
1794 \blackbackground
1795
1796 \vspace*{\fill}
1797 \begin{center}
1798 \begin{tabular}{|p{\widthfirstcol}*{3}{|p{2cm}}|}
1799 \cline{2-4}
1800 \multicolumn{1}{l|}{\textbf{\footnotesize black background}}&standard&dimmed&enhanced\\\hline
1801 \code{textcolor}&\textcolor{textcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{textcolor}\textcolor{textcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{textcolor}\textcolor{textcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1802 \code{emcolor}&\textcolor{emcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{emcolor}\textcolor{emcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{emcolor}\textcolor{emcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1803 \code{altemcolor}&\textcolor{altemcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{altemcolor}\textcolor{altemcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{altemcolor}\textcolor{altemcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1804 \code{mathcolor}&\textcolor{mathcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{mathcolor}\textcolor{mathcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{mathcolor}\textcolor{mathcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1805 \code{codecolor}&\textcolor{codecolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{codecolor}\textcolor{codecolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{codecolor}\textcolor{codecolor}{\rule{2cm}{\heightof{l}}}\\\hline
1806 \code{underlcolor}&\textcolor{underlcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{underlcolor}\textcolor{underlcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{underlcolor}\textcolor{underlcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1807 \code{conceptcolor}&\textcolor{conceptcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{conceptcolor}\textcolor{conceptcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{conceptcolor}\textcolor{conceptcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1808 \code{inactivecolor}&\textcolor{inactivecolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{inactivecolor}\textcolor{inactivecolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{inactivecolor}\textcolor{inactivecolor}{\rule{2cm}{\heightof{l}}}\\\hline
1809 \code{presentcolor}&\textcolor{presentcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{presentcolor}\textcolor{presentcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{presentcolor}\textcolor{presentcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1810 \code{highlightcolor}&\textcolor{highlightcolor}{\rule{2cm}{\heightof{l}}}&\dimcolor{highlightcolor}\textcolor{highlightcolor}{\rule{2cm}{\heightof{l}}}&\enhancecolor{highlightcolor}\textcolor{highlightcolor}{\rule{2cm}{\heightof{l}}}\\\hline
1811 \end{tabular}
1812 \end{center}
1813 }{}
1814
1815 \newslide
1816
1817 \ifthenelse{\boolean{TPcolor}}{\lightbackground}{}
1818
1819 %-----------------------------------------------------------------------------
1820 %
1821 \section{Structured page backgrounds and panels}\label{Sec:PageBackPanel}
1822 \subsection{Structured page backgrounds}
1823
1824 \present{\commandapp[\carg{options}]{backgroundstyle}{\carg{style}}}
1825 \indexmacro{backgroundstyle}
1826 is the central command for structured page backgrounds. It works like
1827 \macroname{pagestyle} and other commands of this type. This means
1828 \carg{style} is a symbolic name specifying the general method by which the
1829 page background is constructed.
1830
1831 The detailed construction is influenced by parameters which can be set in
1832 \carg{options}. If given, the optional parameter \carg{options} should
1833 contain a list of settings in ``keyval'' manner. The keyval method
1834 % (which is used by the \includegraphics command from the graphicx package,
1835 %for instance)
1836 is based on associating a symbolic name with every parameter. \carg{options}
1837 is then a comma-separated list of parameter settings of the form
1838 \carg{name}=\carg{value}, where \carg{name} is the symbolic name of the
1839 parameter to be set and \carg{value} is the value it is to be set to.
1840
1841 Not every \carg{style} evaluates every parameter. In the following, a
1842 description of all styles, together with lists of the parameters employed, is
1843 given. It is followed by a list of all parameters. Note that some parameter
1844 names internally access the same parameter. For instance, parameters
1845 \code{startcolor} and \code{startcolordef} both set the start color of a color
1846 gradient. In case of conflict, the last setting in the list \carg{options}
1847 will prevail. It is noted in the list of parameters which other parameters
1848 are overwritten.
1849
1850 \newslide
1851
1852 \carg{style} may have one of the following values:
1853 \begin{description}
1854 \item[\present{Style: \code{none}}]
1855 \indexmacroopt{backgroundstyle}{none}%
1856 No background. This means the page background is whatever it would be if
1857 \macroname{backgroundstyle} wasn't used at all (for instance, a plain area
1858 of color pagecolor if one of the color options has been given).
1859
1860 Parameters used: none.
1861
1862 \item[\present{Style: \code{plain}}]
1863 \indexmacroopt{backgroundstyle}{plain}%
1864 Plain background. This means the page background is whatever it would be if
1865 \macroname{backgroundstyle} wasn't used at all (as for no background). In
1866 addition to background style \code{none}, the background style \code{plain}
1867 does produce panel backgrounds. The colors and dimensions of a \code{top
1868 panel}, \code{bottom panel}, \code{left panel}, and \code{right panel} can
1869 be specified.
1870
1871 \begin{flushleft}
1872 Parameters used: \code{hpanels}, \code{autopanels}, \code{toppanelcolor},
1873 \code{bottompanelcolor}, \code{leftpanelcolor}, \code{rightpanelcolor},
1874 \code{toppanelcolordef}, \code{bottompanelcolordef}, \code{leftpanelcolordef},
1875 \code{rightpanelcolordef}, \code{toppanelheight}, \code{bottompanelheight},
1876 \code{leftpanelwidth}, \code{rightpanelwidth}.
1877 \end{flushleft}
1878
1879 \item[\present{Style: \code{vgradient}}]
1880 \indexmacroopt{backgroundstyle}{vgradient}%
1881 Vertical gradient. The page background is constructed using the
1882 \macroname{vgradrule}\indexmacro{vgradrule} command. In addition to the
1883 usual parameters of gradient rules, the vgradient background style allows
1884 to leave space for headers, footers, or panels. The colors and dimensions
1885 of a \code{top panel}, \code{bottom panel}, \code{left panel}, and
1886 \code{right panel} can be specified. The gradient rule fills the
1887 rectangular space left between the specified panels.
1888
1889 \begin{flushleft}
1890 Parameters used: \code{stripes}, \code{firstgradprogression},
1891 \code{startcolor}, \code{startcolordef}, \code{endcolor}, \code{endcolordef}
1892 in addition to the parameters used for style \code{plain}.
1893 \end{flushleft}
1894
1895 \item[\present{Style: \code{hgradient}}]
1896 \indexmacroopt{backgroundstyle}{hgradient}%
1897 Horizontal gradient. The page background is constructed using the
1898 \macroname{hgradrule}\indexmacro{hgradrule} command. See the description of
1899 \macroname{vgradient} concerning panels.
1900
1901 Parameters used: See list for style \code{vgradient}.
1902
1903 \item[\present{Style: \code{doublevgradient}}]
1904 \indexmacroopt{backgroundstyle}{doublevgradient}%
1905 Double vertical gradient. The page background is constructed using the
1906 \macroname{dblvgradrule}\indexmacro{dblvgradrule} command. See the
1907 description of \macroname{vgradient} concerning panels.
1908
1909 \begin{flushleft}
1910 Parameters used: \code{gradmidpoint}, \code{secondgradprogression},
1911 \code{midcolor}, \code{midcolordef} in addition to the parameters used for
1912 style \code{vgradient} (and \code{plain}).
1913 \end{flushleft}
1914
1915 \item[\present{Style: \code{doublehgradient}}]
1916 \indexmacroopt{backgroundstyle}{doublehgradient}%
1917 Double horizontal gradient. The page background is constructed using the
1918 \macroname{dblhgradrule}\indexmacro{dblhgradrule} command. See the description of
1919 \macroname{vgradient} concerning panels.
1920
1921 Parameters used: See list for \code{doublevgradient}.
1922
1923 \end{description}
1924 Now, a list of all parameters and their meaning. In the following,
1925 \begin{itemize}\setlength{\itemsep}{0cm}
1926 \item[\carg{n}] denotes a (calc expression for a) nonnegative integer
1927 \item[\carg{i}] denotes a (calc expression for an) integer
1928 \item[\carg{r}] denotes a fixed-point number
1929 \item[\carg{l}] denotes a (calc expression for a) length
1930 \item[\carg{c}] denotes the name of a defined color
1931 \item[\carg{cm}] denotes a valid color model name (in the sense of the color
1932 package)
1933 \item[\carg{cd}] denotes a valid color definition (in the sense of the color
1934 package) wrt a given \carg{cm} parameter
1935 \item[\carg{t}] denotes a `truth value' in the sense of the ifthen package:
1936 either true or false. As usual for keyval, if =\carg{t} is omitted, the
1937 default true is assumed.
1938 \end{itemize}
1939 \begin{description}
1940 \item[\present{Option: \code{stripes=}\carg{n}}] Set the \carg{stripes}
1941 parameter of gradient rules to \carg{n}.\\
1942 Default: \macroname{bgndstripes}. \\
1943 Used by: \code{vgradient}, \code{hgradient}, \code{doublevgradient},
1944 \code{doublehgradient}.
1945
1946 \item[\present{Option: \code{gradmidpoint=}\carg{r}}] Set the \carg{midpoint}
1947 parameter of double gradient rules to \carg{r}.\\
1948 Default: \macroname{bgndgradmidpoint}\\
1949 Used by: doublevgradient, doublehgradient
1950
1951 \item[\present{Option: \code{firstgradprogression=}\carg{i}}]
1952 Set the first gradient progression of gradient rules to \carg{i}.\\
1953 Default: \macroname{bgndfirstgradprogression}\\
1954 Used by: vgradient, hgradient, doublevgradient, doublehgradient
1955
1956 \item[\present{Option: \code{secondgradprogression=}\carg{i}}]
1957 Set the second gradient progression of double gradient rules to \carg{i}.\\
1958 Default: \macroname{bgndsecondgradprogression}\\
1959 Used by: doublevgradient, doublehgradient
1960
1961 \item[\present{Option: \code{startcolor=}\carg{c}}]
1962 Set the \carg{startcolor} parameter of gradient rules to \carg{c}.\\
1963 Default: If neither startcolor nor startcolordef is given, the color
1964 bgndstartcolor is used as startcolor.\\
1965 Used by: vgradient, hgradient, doublevgradient, doublehgradient\\
1966 Overwrites: startcolordef
1967
1968 \item[\present{Option: \code{startcolordef=\{\carg{cm}\}\{\carg{cd}\}}}]
1969 Set the \carg{startcolor} parameter of gradient rules to color foo, which
1970 is obtained by \macroname{definecolor\{foo\}\{\carg{cm}\}\{\carg{cd}\}}.
1971 Note that the two pairs of curly braces are mandatory.\\
1972 Default: If neither startcolor nor startcolordef is given, the color
1973 bgndstartcolor is used as startcolor.\\
1974 Used by: vgradient, hgradient, doublevgradient, doublehgradient\\
1975 Overwrites: startcolor
1976
1977 \item[\present{Option: \code{endcolor=}\carg{c}}]
1978 Set the \carg{endcolor} parameter of gradient rules to \carg{c}.\\
1979 Default: If neither endcolor nor endcolordef is given, the color
1980 bgndendcolor is used as endcolor.\\
1981 Used by: vgradient, hgradient, doublevgradient, doublehgradient\\
1982 Overwrites: endcolordef
1983
1984 \item[\present{Option: \code{endcolordef=\{\carg{cm}\}\{\carg{cd}\}}}]
1985 Set the \carg{endcolor} parameter of gradient rules to color foo, which
1986 is obtained by \macroname{definecolor\{foo\}\{\carg{cm}\}\{\carg{cd}\}}.
1987 Note that the two pairs of curly braces are mandatory.\\
1988 Default: If neither endcolor nor endcolordef is given, the color
1989 bgndendcolor is used as endcolor.\\
1990 Used by: vgradient, hgradient, doublevgradient, doublehgradient\\
1991 Overwrites: endcolor
1992
1993 \item[\present{Option: \code{midcolor=}\carg{c}}]
1994 Set the \carg{midcolor} parameter of double gradient rules to \carg{c}.\\
1995 Default: If neither midcolor nor midcolordef is given, the color
1996 bgndmidcolor is used as midcolor.\\
1997 Used by: doublevgradient, doublehgradient\\
1998 Overwrites: midcolordef
1999
2000 \item[\present{Option: \code{midcolordef=\{\carg{cm}\}\{\carg{cd}\}}}]
2001 Set the \carg{midcolor} parameter of double gradient rules to color foo,
2002 which is obtained by \macroname{definecolor\{foo\}\{\carg{cm}\}\{\carg{cd}\}}.
2003 Note that the two pairs of curly braces are mandatory.\\
2004 Default: If neither midcolor nor midcolordef is given, the color
2005 bgndmidcolor is used as midcolor.\\
2006 Used by: doublevgradient, doublehgradient\\
2007 Overwrites: midcolor
2008
2009 \item[\present{Option: \code{hpanels=}\carg{t}}]
2010 Specifies the `direction' of panels produced. hpanels=true means the top
2011 and bottom panel span the full width of the screen. In the space left in
2012 the middle, the left panel, the background itself, and the right panel are
2013 displayed. hpanels=false means the left and right panel span the full
2014 height of the screen. In the space left in the middle, the top panel,
2015 the background itself, and the bottom panel are
2016 displayed.\\
2017 Default: hpanels=true is the default for plain, hgradient and
2018 doublehgradient. hpanels=false is the default for vgradient and
2019 doublevgradient.\\
2020 Used by: plain, vgradient, hgradient, doublevgradient, doublehgradient
2021
2022 \item[\present{Option: \code{autopanels=}\carg{t}}]
2023 Specifies whether the default values of the parameters toppanelheight,
2024 bottompanelheight, leftpanelwidth, rightpanelwidth should be calculated
2025 automatically from the contents of declared panels. The automatism used
2026 is analogous to that of \macroname{DeclarePanel*}. Note that for panel
2027 arrangement, both the width and the height of all declared panels are
2028 overwritten. If you don't want this, calculate the panel parameters
2029 yourself and set autopanels=false. In this case, the current panel
2030 dimensions of declared panels are used as defaults for toppanelheight,
2031 bottompanelheight, leftpanelwidth, rightpanelwidth.\\
2032 Default: true.\\
2033 Used by: plain, vgradient, hgradient, doublevgradient, doublehgradient
2034
2035 \item[\present{Option: \code{\carg{pos}panelheight=}\carg{l}}]
2036 Set the height/width of the space left for the top / bottom / left / right
2037 panel to \carg{l}. Note that the remaining dimensions of panels, for
2038 instance the width of the top panel, are always calculated automatically,
2039 depending on the setting of the hpanels parameter.\\
2040 Default: If a respective panel has been defined using
2041 \macroname{DeclarePanel}, the default used depends on the setting of the
2042 autopanels parameter. If autopanels=true, the correct dimension is
2043 calculated from the contents of the panel. The respective one of
2044 \macroname{toppanelheight}, \macroname{bottompanelheight},
2045 \macroname{leftpanelwidth}, \macroname{rightpanelwidth} is overwritten
2046 with the result. If autopanels=false, then the respective setting of
2047 \macroname{toppanelheight}, \macroname{bottompanelheight},
2048 \macroname{leftpanelwidth}, \macroname{rightpanelwidth} is taken as the
2049 default. If a panel has not been declared, the appropriate one of
2050 \macroname{bgndtoppanelheight}, \macroname{bgndbottompanelheight},
2051 \macroname{bgndleftpanelwidth}, \macroname{bgndrightpanelwidth} is used
2052 as default. \\
2053 Used by: plain, vgradient, hgradient, doublevgradient, doublehgradient
2054
2055 \item[\present{Option: \code{\carg{pos}panelcolor=}\carg{c}}]
2056 Set the color of the space left for the top / bottom / left / right panel
2057 to \carg{c}.\\
2058 Default: The standard colors toppanelcolor, bottompanelcolor, leftpanelcolor,
2059 rightpanelcolor are used as defaults.\\
2060 Used by: plain, vgradient, hgradient, doublevgradient, doublehgradient\\
2061 Overwrites: toppanelcolordef bottompanelcolordef leftpanelcolordef
2062 rightpanelcolordef
2063
2064 \item[\present{Option: \code{\carg{pos}panelcolordef=\{\carg{cm}\}\{\carg{cd}\}}}]
2065 Set the color of the space left for the top / bottom / left / right panel
2066 to color foo, which is obtained by
2067 \macroname{definecolor\{foo\}\{\carg{cm}\}\{\carg{cd}\}}.
2068 Note that the two pairs of curly braces are mandatory. \\
2069 Default: See the description of top/bottom/left/rightpanelcolor.\\
2070 Used by: plain, vgradient, hgradient, doublevgradient, doublehgradient\\
2071 Overwrites: toppanelcolor bottompanelcolor leftpanelcolor rightpanelcolor
2072
2073 \end{description}
2074
2075 \newslide
2076
2077 \subsection{Panel-specific user level commands}
2078 If you're using a package that has it own panel (as
2079 \href{ftp://ftp.dante.de/tex-archive/help/Catalogue/entries/pdfscreen.html}%
2080 {\code{pdfscreen}}) don't even consider using the following.
2081
2082 \present{\commandapp[\carg{name}]{DeclarePanel}{\carg{pos}\}\{\carg{contents}}}
2083 \indexmacro{DeclarePanel}
2084 declares the contents \carg{contents} of the panel at position \carg{pos}.
2085 Afterwards, on every page the panel contents are set in a parbox of
2086 dimensions and position specified by \carg{pos}panelwidth,
2087 \carg{pos}panelheight, \macroname{panelmargin} and \carg{pos}panelshift for
2088 top and bottom panels and \carg{pos}panelraise for left and right panels. The
2089 parbox is constructed anew on every page, so all changes influencing panel
2090 contents or parameters (like a \macroname{thepage} in the panel contents) are
2091 respected.
2092
2093 The panel contents are set in color \carg{pos}paneltextcolor. There is
2094 another standard color \carg{pos}panelcolor, which is however not activated by
2095 \macroname{DeclarePanel} but by selecting an appropriate background style.
2096
2097 Note that \macroname{backgroundstyle} must be called after the panel
2098 declaration.
2099
2100 \newslide
2101
2102 Pages are constructed as follows: first the page background, then
2103 the panels, and then the page contents. \emph{Hence, panels overwrite the background
2104 and the page contents overwrite the panels.} The user is supposed to make sure
2105 themselves that there is enough space left on the page for the panels
2106 (document class specific settings). The panel declaration is global. A panel
2107 can be `undeclared' by using \macroname{DeclarePanel\{\carg{pos}\}\{\}}.
2108
2109 If the optional argument \carg{name} is given, the panel contents and
2110 (calculated) size will also be stored under the given name, to be restored
2111 later with \macroname{restorepanels}. This is nice for switching between
2112 different sets of panels.
2113
2114 \newslide
2115
2116 For an example look at the files \code{simplepanel.tex} and \code{panelexample.tex}.
2117 A very simple example follows:
2118
2119 \begin{verbatim}
2120 \DeclarePanel{left}{%
2121 \textsf{Your Name}
2122
2123 \vfill
2124
2125 \button{\Acrobatmenu{PrevPage}}{Back}
2126 \button{\Acrobatmenu{NextPage}}{Next} }
2127 \end{verbatim}
2128
2129 \newslide
2130
2131 There is a starred version which will (try to) automatically calculate the
2132 \indexmacro{DeclarePanel*} `flexible' dimension of each panel. For top and
2133 bottom panels this is the height, for left and right panels this is the width.
2134 Make sure the panel contents are `valid' at the time \macroname{DeclarePanel*}
2135 is called so the calculation can be carried out in a meaningful way.
2136
2137 While the automatic calculation of the height of top and bottom panels is
2138 trivial (using \macroname{settoheight}), there is a sophisticated procedure
2139 for calculating a `good' width for the parbox containing the panel. Owing to
2140 limitations set by TeX, there are certain limits to the sophistication of the
2141 procedure.
2142
2143 \newslide
2144
2145 For instance, any `whatsits' (specials (like color changes), file
2146 accesses (like \macroname{label}), or hyper anchors)
2147 or rules which are inserted directly in the vertical list of the parbox
2148 `block' the analysis, so the procedure can't `see' past them (starting at the
2149 bottom of the box) when analysing the contents of the parbox.
2150
2151 The user should make sure such items are set in horizontal mode (by using
2152 \macroname{leavevmode} or enclosing stuff in boxes). Furthermore, only
2153 overfull and underfull hboxes which occur while setting the parbox are
2154 considered when judging which width is `best'. This will reliably make the
2155 width large enough to contain `wide' objects like tabulars, logos and buttons,
2156 but might not give optimal results for justified text. vboxes occurring
2157 directly in the vbox are ignored.
2158
2159 \newslide
2160
2161 Note further that hboxes with fixed width
2162 (made by \macroname{hbox} to...) which occur directly in the vbox may disturb
2163 the procedure, because the fixed width cannot be recovered. These hboxes will
2164 be reformatted with the width of the vbox, generating an extremely large
2165 badness, unsettling the calculation of maximum badness. To avoid this such
2166 hboxes should be either contained in a vbox or set in horizontal mode with
2167 appropriate glue at the end.
2168
2169 \newslide
2170
2171 \subsection{Navigation buttons}
2172 The following provides only the very basics for navigation buttons. If you're
2173 using a package that has it's own naviagtion buttons (as
2174 \href{ftp://ftp.dante.de/tex-archive/help/Catalogue/entries/pdfscreen.html}%
2175 {\code{pdfscreen}}) don't even consider using the following.
2176
2177 \present{\macroname{button\{\carg{navcommand}\}\{\carg{text}\}}}
2178 \indexmacro{button}
2179 creates a button labelled \carg{text} which executes \carg{navcommand} when
2180 pressed. The command takes four optional arguments (left out above):
2181 \carg{width}, \carg{height}, \carg{depth} and \carg{alignment} in that order.
2182 \carg{navcommand} can be for instance \commandapp{Acrobatmenu}{\carg{command}} or
2183 \commandapp{hyperlink}{\carg{target}} (note that \carg{navcommand} should take
2184 one (more) argument specifying the sensitive area which is provided by
2185 \macroname{button}). If given, the optional parameters \carg{width}, \carg{height}, and
2186 \carg{depth} give the width, height and depth, respectively, of the framed
2187 area comprising the button (excluding the shadow, but including the
2188 frame). Default are the `real' width, height and depth, respectively, of
2189 \carg{text}, plus allowance for the frame. If given, the optional parameter
2190 \carg{alignment} (one of l,c,r) gives the alignment of \carg{text} inside the
2191 button box (makes sense only if \carg{width} is given).
2192
2193 The button appearence is defined by some configurable button parameters:
2194 \begin{description}
2195 \item[\present{\macroname{buttonsep}}]
2196 \indexmacro{buttonsep}
2197 Space between button label and border. (Default: \macroname{fboxsep})
2198
2199 \item[\present{\macroname{buttonrule}}]
2200 \indexmacro{buttonrule}
2201 Width of button frame. (Default: \code{0pt})
2202
2203 \item[\present{\macroname{buttonshadowhshift}}]
2204 \indexmacro{buttonshadowhshift}
2205 Horizontal displacement of button shadow. (Default: 0.3\macroname{fboxsep})
2206
2207 \item[\present{\macroname{buttonshadowvshift}}]
2208 \indexmacro{buttonshadowvshift}
2209 Vertical displacement of button shadow. (Default: 0.3\macroname{fboxsep})
2210 \end{description}
2211
2212 A list of predefined buttons follows:
2213 \begin{description}
2214
2215 \item[\present{\macroname{backpagebutton[\carg{width}]}}]
2216 \indexmacro{backpagebutton}
2217 Last subpage of previous page.
2218
2219 \item[\present{\macroname{backstepbutton[\carg{width}]}}]
2220 \indexmacro{backstepbutton}
2221 Previous step.
2222
2223 \item[\present{\macroname{gobackbutton[\carg{width}]}}]
2224 \indexmacro{gobackbutton}
2225 `Undo action' (go back to whatever was before last action).
2226
2227 \item[\present{\macroname{nextstepbutton[\carg{width}]}}]
2228 \indexmacro{nextstepbutton}
2229 Next step.
2230
2231 \item[\present{\macroname{nextpagebutton[\carg{width}]}}]
2232 \indexmacro{nextpagebutton}
2233 First subpage of next page.
2234
2235 \item[\present{\macroname{nextfullpagebutton[\carg{width}]}}]
2236 \indexmacro{nextfullpagebutton}
2237 Last subpage of next page.
2238
2239 \item[\present{\macroname{fullscreenbutton[\carg{width}]}}]
2240 \indexmacro{fullscreenbutton}
2241 Toggle fullscreen mode.
2242
2243 \end{description}
2244
2245 \clearpage
2246 \printindex
2247 \end{document}
2248 \endinput
2249 %%
2250 %% End of file `manual.tex'.