Debian Codegraph @

texmf-dist/source/latex/powerdot/powerdot.dtx

raw
1 % \iffalse meta-comment
2 %
3 % powerdot class by Hendri Adriaens.
4 %
5 % Extract package files and create documentation:
6 % Find powerdot.dtx
7 % latex powerdot.dtx
8 % latex powerdot.dtx
9 % bibtex powerdot
10 % makeindex -s gglo.ist -o powerdot.gls powerdot.glo
11 % makeindex -s gind.ist -o powerdot.ind powerdot.idx
12 % latex powerdot.dtx
13 % latex powerdot.dtx
14 %
15 % If you also want to generate the source code documentation,
16 % remove \OnlyDescription from the preamble of powerdot.dtx
17 % prior to compiling the source.
18 %
19 % To generate style examples, do
20 % (after extracting powerdot-styleexample.tex):
21 % latex "\def\style{default}\input{powerdot-styleexample}"
22 % latex "\def\style{default}\input{powerdot-styleexample}"
23 % dvips -i powerdot-styleexample -o powerdot-styleexample-default.ps
24 % Do this for all available styles (replace `default' by any
25 % other style name) to generate .001 and .002 files which
26 % will be included by the documentation.
27 %
28 %% ---------------------------------------------------------------------------------
29 %% Copyright (C) 2005-2008 Hendri Adriaens, Chris Ellison; 2009-2021 Hendri Adriaens
30 %% ---------------------------------------------------------------------------------
31 %%
32 %% This work may be distributed and/or modified under the
33 %% conditions of the LaTeX Project Public License, either version 1.3
34 %% of this license or (at your option) any later version.
35 %% The latest version of this license is in
36 %% http://www.latex-project.org/lppl.txt
37 %% and version 1.3 or later is part of all distributions of LaTeX
38 %% version 2003/12/01 or later.
39 %%
40 %% This work has the LPPL maintenance status "maintained".
41 %%
42 %% This Current Maintainer of this work is Hendri Adriaens.
43 %%
44 %% This work consists of all files listed in manifest.txt.
45 %%
46 % \fi
47 %
48 % \iffalse
49 %<*batchfile>
50 \begingroup
51 \input docstrip
52 \keepsilent
53 \preamble
54 \endpreamble
55 \askforoverwritefalse
56 \generate{
57 \file{powerdot.cls}{\from{powerdot.dtx}{powerdot}}
58 \file{powerdot-default.sty}{\from{powerdot.dtx}{pddefault}}
59 \file{powerdot-tycja.sty}{\from{powerdot.dtx}{pdtycja}}
60 \file{powerdot-ikeda.sty}{\from{powerdot.dtx}{pdikeda}}
61 \file{powerdot-fyma.sty}{\from{powerdot.dtx}{pdfyma}}
62 \file{powerdot-simple.sty}{\from{powerdot.dtx}{pdsimple}}
63 \file{powerdot-ciment.sty}{\from{powerdot.dtx}{pdciment}}
64 \file{powerdot-elcolors.sty}{\from{powerdot.dtx}{pdelcolors}}
65 \file{powerdot-aggie.sty}{\from{powerdot.dtx}{pdaggie}}
66 \file{powerdot-husky.sty}{\from{powerdot.dtx}{pdhusky}}
67 \file{powerdot-sailor.sty}{\from{powerdot.dtx}{pdsailor}}
68 \file{powerdot-upen.sty}{\from{powerdot.dtx}{pdupen}}
69 \file{powerdot-bframe.sty}{\from{powerdot.dtx}{pdbframe}}
70 \file{powerdot-horatio.sty}{\from{powerdot.dtx}{pdhoratio}}
71 \file{powerdot-paintings.sty}{\from{powerdot.dtx}{pdpaintings}}
72 \file{powerdot-klope.sty}{\from{powerdot.dtx}{pdklope}}
73 \file{powerdot-jefka.sty}{\from{powerdot.dtx}{pdjefka}}
74 \file{powerdot-pazik.sty}{\from{powerdot.dtx}{pdpazik}}
75 \file{powerdot-styletest.tex}{\from{powerdot.dtx}{pdstyletest}}
76 \file{powerdot-styleexample.tex}{\from{powerdot.dtx}{pdstyleexample}}
77 \file{powerdot-example1.tex}{\from{powerdot.dtx}{pdexample1}}
78 \file{powerdot-example2.tex}{\from{powerdot.dtx}{pdexample2}}
79 \file{powerdot-example3.tex}{\from{powerdot.dtx}{pdexample3}}
80 \file{pdpream.ble}{\from{powerdot.dtx}{preamble}}
81 \file{powerdot.bib}{\from{powerdot.dtx}{bib}}
82 }
83 \endgroup
84 %</batchfile>
85 %<*driver>
86 \documentclass[a4paper]{ltxdoc}
87 \input{pdpream.ble}
88 \OnlyDescription
89 %\EnableCrossrefs
90 \def\fileversion{v1.7}
91 \def\filedate{2021/05/19}
92 \begin{document}
93 \DocInput{powerdot.dtx}
94 \let\Section\section\def\section*#1{\Section*{#1}\addcontentsline{toc}{section}{#1}}
95 \bibliographystyle{plain}
96 \bibliography{powerdot}
97 \section*{Acknowledgements}
98 The author is grateful to Christopher Ellison for help with setting up the package, styles
99 and examples, Mael Hill\'ereau for contributing the \LyX\ layout file and
100 description, and Herbert Vo\ss\ for contributions and maintaining the package
101 from 2006 to 2012. Further, I would like to thank all style contributors
102 (see section~\ref{sec:styles}). Moreover, I wish to thank everyone who contributed
103 to this package in any other way.\\[1em]
104 \hspace*{\stretch{1}}
105 \begin{minipage}{.9\linewidth}
106 Ramon van den Akker, David Carlisle, Pavel \v C\'i\v zek, Darren Dale, Hans Marius
107 Eikseth, Alexander Grahn, Morten H\o gholm, Andr\'as Horv\'ath, Laurent Jacques, Akira
108 Kakuto, Uwe Kern, Kyanh, Theo Stewart, and Don P. Story.
109 \end{minipage}
110
111 \PrintChangesX\PrintIndexX
112 \end{document}
113 %</driver>
114 % \fi
115 %
116 % \changes{v1.0}{2005/09/04}{Initial release}
117 % \changes{v1.1}{2005/09/19}{Fixed some small bugs}
118 % \changes{v1.1}{2005/09/19}{Added \texttt{tocsecindent} and
119 % \texttt{tocslideindent} options}
120 % \changes{v1.1}{2005/09/19}{Added \pf{elcolors}, \pf{aggie}, \pf{husky}
121 % and \pf{sailor} styles}
122 % \changes{v1.1}{2005/09/19}{Changed \texttt{size\protect\equals 10}
123 % to \texttt{size\protect\equals 10pt}}
124 % \changes{v1.1}{2005/09/19}{Added \LyX\ layout, description and example}
125 % \changes{v1.1}{2005/09/19}{Added graphical examples of styles to documentation}
126 % \changes{v1.1}{2005/09/19}{Improved section title handling}
127 % \changes{v1.1}{2005/09/19}{\texttt{blackslide} options adds hyperlink
128 % to slide and section titles}
129 % \changes{v1.1}{2005/09/19}{Extended FAQ}
130 % \changes{v1.1}{2005/09/19}{Improved \pf{tycja}, \pf{ciment} and \pf{fyma} styles}
131 % \changes{v1.2}{2005/10/09}{Added \pf{upen} and \pf{bframe} styles}
132 % \changes{v1.2}{2005/10/09}{Solved some small bugs}
133 % \changes{v1.2}{2005/10/09}{Simplified coding of most styles}
134 % \changes{v1.2}{2005/10/09}{Speeded up compilations}
135 % \changes{v1.3}{2005/12/06}{Solved some small bugs}
136 % \changes{v1.3}{2005/12/06}{Improved \texttt{figure} and \texttt{table} handling}
137 % \changes{v1.3}{2005/12/06}{Added \pf{horatio}, \pf{paintings}, \pf{klope}, \pf{jefka}
138 % and \pf{pazik} styles}
139 % \changes{v1.3}{2005/12/06}{Added palettes feature}
140 % \changes{v1.3}{2005/12/06}{Added random dots feature}
141 % \changes{v1.3}{2005/12/06}{Added optional argument to \cs{maketitle}}
142 % \changes{v1.3}{2005/12/06}{Added clock feature}
143 % \changes{v1.3}{2005/12/06}{Updated all styles}
144 % \changes{v1.3}{2005/12/06}{Added palettes to \pf{default}, \pf{fyma} and \pf{sailor} styles}
145 % \changes{v1.3}{2005/12/06}{Revised docs}
146 % \changes{v1.3}{2005/12/06}{Updated \LyX\ example and information}
147 % \changes{v1.3}{2005/12/06}{Cleaned up options}
148 % \changes{v1.3}{2005/12/06}{Added possibility to create horizontal table of contents}
149 % \changes{v1.3}{2005/12/06}{Added logo feature}
150 % \changes{v1.3}{2005/12/06}{Added examples and example file}
151 % \changes{v1.3}{2005/12/06}{Added two slide processing methods to do verbatim on slides easily}
152 % \changes{v1.4}{2005/12/10}{Moved \texttt{lf} and \texttt{rf} keys from
153 % \texttt{global} to \texttt{glslide} family}
154 % \changes{v1.4}{2005/12/10}{Added \texttt{cf} option}
155 % \changes{v1.4}{2005/12/10}{Updated styles}
156 % \changes{v1.4}{2005/12/10}{Solved some small bugs}
157 % \changes{v1.4}{2005/12/10}{Moved footers out of slide box in handout mode}
158 % \changes{v1.4}{2005/12/10}{Added \texttt{clockformat} and \texttt{clockrefresh} keys to \texttt{global} family}
159 % \changes{v1.4}{2005/12/10}{\texttt{blackslide} and \texttt{emptyslide} no longer have logos or randomdots}
160 % \changes{v1.5}{2014/01/01}{Option \texttt{blackslide} transformed to \texttt{pauseslide}}
161 % \changes{v1.5}{2014/01/01}{Restored package and added changes from CTAN}
162 % \changes{v1.5}{2014/01/01}{Modifications to work with the latest version of pstricks}
163 % \changes{v1.5a}{2015/11/29}{Added requirement for \texttt{pst-ovl} to get overlays working after \texttt{pstricks} moved the code there}
164 % \changes{v1.5b}{2017/07/22}{Added requirement for latest \texttt{graphicx} to work with latest \texttt{dvips}}
165 % \changes{v1.5b}{2017/07/22}{Updated documentation with respect to handout options}
166 % \changes{v1.5c}{2017/08/28}{Replaced clock code by the version by Alexander Grahn to achieve compatibility with the \pf{animate} package}
167 % \changes{v1.6}{2021/03/25}{Replaced usage of general \texttt{@inputcheck} by package specific \texttt{pd@vrbout} to solve a bug with references}
168 % \changes{v1.7}{2021/05/19}{Added paper with 16:9 ratio}
169 %
170 % \CheckSum{3397}
171 %
172 % \CharacterTable
173 % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
174 % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
175 % Digits \0\1\2\3\4\5\6\7\8\9
176 % Exclamation \! Double quote \" Hash (number) \#
177 % Dollar \$ Percent \% Ampersand \&
178 % Acute accent \' Left paren \( Right paren \)
179 % Asterisk \* Plus \+ Comma \,
180 % Minus \- Point \. Solidus \/
181 % Colon \: Semicolon \; Less than \<
182 % Equals \= Greater than \> Question mark \?
183 % Commercial at \@ Left bracket \[ Backslash \\
184 % Right bracket \] Circumflex \^ Underscore \_
185 % Grave accent \` Left brace \{ Vertical bar \|
186 % Right brace \} Tilde \~}
187 %
188 %\title{\vspace*{-2cm}\mktitledecor The \pf{powerdot} class
189 %\thanks{This class can be downloaded from the CTAN mirrors:
190 %\texttt{/macros/latex/contrib/powerdot}. See \texttt{powerdot.dtx} for
191 %information on installing \pf{powerdot} into your \LaTeX\
192 %distribution and for the license of this class.}}
193 %\author{Hendri Adriaens}
194 %\date{\fileversion\ (\filedate)}
195 %\maketitle
196 %
197 %\begin{abstract}\noindent
198 %\pf{powerdot} is a presentation class for \LaTeX\ that allows for
199 %the quick and easy development of professional presentations. It
200 %comes with many tools that enhance presentations and aid the
201 %presenter. Examples are automatic overlays, personal notes and a
202 %handout mode. To view a presentation, DVI, PS or PDF output can be
203 %used. A powerful template system is available to easily develop new
204 %styles. A \LyX\ layout file is provided.
205 %\end{abstract}
206 %
207 %\begin{multicols}{2}
208 %[\section*{Contents}
209 %\setlength{\columnseprule}{.4pt}
210 %\setlength{\columnsep}{18pt}]
211 %\tableofcontents
212 %\end{multicols}
213 %
214 %\newpage
215 %\section{Introduction}\label{sec:intro}
216 %This class gives you the possibility to easily create professionally
217 %looking slides. The class is designed to make the development of
218 %presentations as simple as possible so that you can concentrate on
219 %the actual content instead of keeping yourself busy with technical
220 %details. Of course, some knowledge of \LaTeX\ is still required
221 %though.
222 %
223 %This class builds on and extends the \pf{prosper} class
224 %\cite{prosper} and the \pf{HA-prosper} package \cite{HA-prosper}.
225 %The \pf{HA-prosper} package was initially intended to extend
226 %\pf{prosper} and correct some bugs and problems of that class. As
227 %developments on that package progressed, it was found that
228 %unfortunately, not all of the problems could be overcome with the
229 %package. That discovery was the start of a new project set up to
230 %make a new class to replace the \pf{prosper} plus \pf{HA-prosper}
231 %combination. You're currently reading the result of that project.
232 %
233 %The remainder of this section will be devoted to giving a feel of
234 %what the \pf{powerdot} presentation source looks like and giving an
235 %overview of this documentation.
236 %
237 %The document structure of a presentation is always the same. You can
238 %find it in the example below.
239 %
240 %\begin{example}
241 % \documentclass[<class options>]{powerdot}
242 % \pdsetup{<presentation options>}
243 % \begin{document}
244 % \begin{slide}{a slide}
245 % Contents of the slide.
246 % \end{slide}
247 % \section{first section}
248 % \begin{slide}[<slide options>]{another slide}
249 % Contents of the slide.
250 % \end{slide}
251 % \begin{note}{personal note}
252 % The note.
253 % \end{note}
254 % \end{document}
255 %\end{example}
256 %
257 %There are several elements that define the document structure. First
258 %of all, the class accepts some class options that control the output
259 %of the class, for instance, paper type and style. These class
260 %options will be discussed in section~\ref{sec:classopts}. Then there
261 %are presentation specific options which control some of the elements
262 %of the presentation globally, for instance, the footers. These will
263 %be discussed in section~\ref{sec:pdsetup}.
264 %
265 %Once the setup has been decided on, you can use the slide
266 %environment to produce slides (see section~\ref{sec:slides}) and the
267 %note environment to produce notes that go with the slides (see
268 %section~\ref{sec:notes}). You can use overlays to display material
269 %in steps. This is described in section~\ref{sec:overlays}. The
270 %|\section| command provides a way to structure your presentation.
271 %This is discussed in section~\ref{sec:structure}.
272 %Section~\ref{sec:styles} will show an overview of the styles that
273 %come with this class and the characteristics of each style.
274 %Section~\ref{sec:compiling} will tell you more about how to produce
275 %output. This section contains important information on required
276 %packages.
277 %
278 %Section~\ref{sec:writestyle} is mostly interesting for people that
279 %want to develop their own style for this class or want to modify an
280 %existing style. Section~\ref{sec:lyx} explains how \LyX\
281 %\cite{LyXWeb} can be used to create \pf{powerdot} presentations.
282 %This documentation concludes with a section devoted to questions
283 %(section~\ref{sec:questions}), like `Where can I find examples?'. It
284 %also tells you where to turn to in case your questions are still not
285 %solved.
286 %
287 %\section{Setting up the presentation}\label{sec:setup}
288 %This section will describe all options that are available to control
289 %the output of the presentation and the looks of it.
290 %
291 %\subsection{Document class options}\label{sec:classopts} We will
292 %start with the class options that are typed in the |\documentclass|
293 %command as a comma-separated list. For each option, the preset
294 %value\footnote{The value that will be used when you don't use the
295 %option.} will be mentioned in the description. This is the value
296 %that will be used if you decide to not give a value to the option or
297 %not use the option at all.
298 %
299 %\DescribeOption{mode}
300 %This options controls the kind of output that we want to produce.
301 %The preset value is |present|.
302 %\begin{description}
303 %\item\option{mode=present}\\
304 %This mode is used when you want to create the actual presentation. It
305 %will enable overlays and transition effects. You can read more about
306 %overlays in section~\ref{sec:overlays}.
307 %\item\option{mode=print}\\
308 %This mode can be used when printing the slides including their visual
309 %markup, but without any overlay or transition effects.
310 %\item\option{mode=handout}\\
311 %This mode will produce a black and white overview of your slides that
312 %can be used to make personal notes on, for distribution to students,
313 %a personal guide during your talk, etcetera.
314 %\begin{description}
315 %\item\option{nohandoutpagebreaks}\\
316 %By default, the handout mode produces a document with two slides per
317 %page. If you want to fit more slides on a page, specify this option
318 %in the |\documentclass| command and \pf{powerdot} will let \LaTeX\
319 %decide on the places to insert a page break, namely when a page is
320 %full.
321 %\item\option{nohandoutframes}\\
322 %By default, the handout frames the slides. This option will remove
323 %the frames around slides on handouts.
324 %\end{description}
325 %\end{description}
326 %
327 %\DescribeOption{paper} This option has five possible values. The
328 %preset value is |screen|.
329 %\begin{description}
330 %\item\option{paper=screen}\\
331 %This is a special format with screen optimized ratio (4/3). The
332 %actual page dimensions will be 8.25 inch by 11 inch. This paper format
333 %is not available for print or handout mode. In these modes, \pf{powerdot}
334 %will switch to a4 paper and put a warning that it did this in the
335 %log file of your presentation.
336 %\item\option{paper=a4paper}\\
337 %A4 paper will be used for the presentation or handout.
338 %\item\option{paper=letterpaper}\\
339 %Letter size paper will be used.
340 %\item\option{paper=smartboard}\\
341 %For presentation on a smartboard (widescreen).
342 %\item\option{paper=169}\\
343 %For a presentation on a screen with 16:9 ratio.
344 %\end{description}
345 %Some important information with respect to paper size, compiling and
346 %viewing presentations is available in section~\ref{sec:compiling}.
347 %\newline
348 %
349 %\DescribeOption{orient} This controls the orientation of the
350 %presentation. The preset value is |landscape|.
351 %\begin{description}
352 %\item\option{orient=landscape}\\
353 %The presentation will be in landscape format. This value is not
354 %available in handout mode. In that mode, \pf{powerdot} will switch
355 %to portrait orientation and will warn you about this in the log
356 %file.
357 %\item\option{orient=portrait}\\ This produces slides in portrait
358 %format. Notice that not all styles support portrait orientation. Please
359 %refer to section~\ref{sec:styles} for information about which styles
360 %do support the portrait orientation.
361 %\end{description}
362 %
363 %\DescribeOption{display} This controls the production of slides and
364 %notes. The preset value is |slides|.
365 %\begin{description}
366 %\item\option{display=slides}\\
367 %This will only typeset the slides in your presentation.
368 %\item\option{display=slidesnotes}\\
369 %This will typeset both the slides and the notes in your
370 %presentation. See also section~\ref{sec:notes} for more information
371 %about notes.
372 %\item\option{display=notes}\\
373 %This will typeset the notes only.
374 %\end{description}
375 %
376 %Here are some more options to control the output.
377 %\begin{description}
378 %\item\DescribeOption{size}\option{size}\\
379 %This is the size of the normal text font in points. Possible values
380 %are 8pt, 9pt, 10pt, 11pt, 12pt, 14pt, 17pt and 20pt and the preset
381 %value is 11pt.\footnote{Note that sizes other than 10pt, 11pt and
382 %12pt are non-standard and it is assumed that you have the
383 %\pf{extsizes} bundle \cite{extsizes} installed, which provides these
384 %sizes.}
385 %\item\DescribeOption{style}\option{style}\\
386 %This controls the style to be loaded for the presentation. By
387 %default, the \pf{default} style will be loaded. For more styles, see
388 %section~\ref{sec:styles}.
389 %\item\DescribeOption{fleqn}\option{fleqn}\\
390 %This option makes equations flushed left. It does the same as the
391 %equally named option for the article class.
392 %\item\DescribeOption{leqno}\option{leqno}\\
393 %Put equation numbers at the left. Also the same as in the article
394 %class.
395 %\item\DescribeOption{nopsheader}\option{nopsheader}\\
396 %By default, \pf{powerdot} will write a postscript command to the ps
397 %file to make sure that post processors like ps2pdf know which paper
398 %to use without the need to specify it on the command line. See also
399 %section~\ref{sec:compiling}. If you experience problems with post
400 %processing or printing or you want to specify the paper size in the
401 %post processing steps yourself, use this option.
402 %\item\DescribeOption{hlentries}\option{hlentries}\\
403 %This highlights table of contents entries when the entry matches
404 %with the current slide and its preset value is |true|. See also
405 %section~\ref{sec:structure}. If you don't want highlighting of table
406 %of contents entries (for instance in print mode), use
407 %|hlentries=false|.
408 %\item\DescribeOption{hlsections}\option{hlsections}\\
409 %This highlights table of contents sections when the section matches
410 %with the current section in the presentation and is preset to |false|.
411 %See also section~\ref{sec:structure}. Specifying this
412 %option turns highlighting of sections on. This could be useful when
413 %you are using a style that implements a split table of contents.
414 %\item\DescribeOption{pauseslide}\option{pauseslide}\\
415 %This option inserts a black slide in the presentation on page 1 and
416 %will automatically advance to page 2 when opening the presentation
417 %in a PDF viewer like Acrobat (Reader). The option also inserts a
418 %link behind every slide or section title that brings you to the
419 %black slide when clicked. When you click anywhere in the black
420 %slide, you will go back to the originating slide. This option can be
421 %used to temporarily pause a presentation, for instance, to do a
422 %proof on the black board. Optionally, a color can be supplied, for instance,
423 %|pauseslide=white| to have a pause on a white screen.
424 %\item\DescribeOptions{clock}\option{clock}\\
425 %This displays a small digital clock on slides which you can use to
426 %check the time left for your presentation.
427 %\end{description}
428 %
429 %Here is an example of a |\documentclass| command.
430 %\begin{example}
431 % \documentclass[
432 % size=12pt,
433 % paper=screen,
434 % mode=present,
435 % display=slidesnotes,
436 % style=tycja,
437 % nohandoutpagebreaks,
438 % pauseslide,
439 % fleqn
440 % ]{powerdot}
441 %\end{example}
442 %This example sets up a presentation in \pf{tycja} style, with a black
443 %slide, normal size 12 points and flushed left equations.
444 %\begin{example}
445 % \documentclass[
446 % size=12pt,
447 % paper=letterpaper,
448 % mode=handout,
449 % display=slidesnotes,
450 % style=tycja,
451 % nohandoutpagebreaks,
452 % pauseslide,
453 % fleqn
454 % ]{powerdot}
455 %\end{example}
456 %Changing the |paper| and |mode| options, now produces a handout with
457 %possibly more than two slides per page due to the |nohandoutpagebreaks|
458 %option.
459 %
460 %\subsection{Setup options}\label{sec:pdsetup}
461 %\DescribeMacro{\pdsetup}
462 %There are several extra options that can help customizing your
463 %presentation. These options are not available via the
464 %|\documentclass| command. This has a technical reason.\footnote{The
465 %interested reader is referred to the section about the \pf{xkvltxp}
466 %package in the \pf{xkeyval} package documentation \cite{xkeyval}.}
467 %We distinguish two types of options. Options that can only be set
468 %globally (acting for the entire presentation) using the |\pdsetup|
469 %command and options that can be accessed both globally (via
470 %|\pdsetup|) and locally (via slide environments, see section~\ref{sec:slides}).
471 %
472 %\subsubsection{Global options}\label{sec:gopts}
473 %This section describes options that can only be used globally in the
474 %preamble of your presentation via the |\pdsetup| command.
475 %\begin{description}
476 %\item\DescribeOption{palette}\option{palette}\\
477 %This specifies the palette to be used. A palette is a set of colors
478 %defined by a style. To find out which palettes are defined by each
479 %style, see section~\ref{sec:styles}.
480 %\item\DescribeOption{theslide}\option{theslide}\\
481 %This option controls how the slide number appears on the slide. This
482 %is preset to the value |\arabic{slide}~/~\pageref*{lastslide}|,
483 %which could appear like |5/22|. Notice that the |\arabic{slide}|
484 %typesets the number of the current slide and that
485 %|\pageref*{lastslide}| typesets the number of the last
486 %slide.\footnote{We use the starred version of \cs{pageref} which is
487 %defined by \pf{hyperref} and does not create a link to the page that
488 %it is referring to.}
489 %\item\DescribeOption{thenote}\option{thenote}\\
490 %This is similar to the |theslide| option, but typesets the slide
491 %numbers of notes. The preset value is
492 %|note~\arabic{note}~of~slide~\arabic{slide}| and |\arabic{note}|
493 %here typesets the number of the current note that goes with the
494 %current slide. This could appear like |note 2 of slide 7|.
495 %\item\DescribeOption{counters}\option{counters}\\
496 %The |counters| option lists counters that you might want to protect
497 %on overlays. As material on overlays (see
498 %section~\ref{sec:overlays}) is processed multiple times, also
499 %\LaTeX\ counters, like the |equation| counter, might be increased
500 %too often. To avoid that your equations get different numbers on
501 %every overlay, use this option. The |equation|, |table|, |figure|,
502 %|footnote| and |mpfootnote| counters are already protected for you.
503 %If you use extra counters, for instance for theorems, list them in
504 %this option. Example:
505 %\begin{example}
506 % counters={theorem,lemma}
507 %\end{example}
508 %\item\DescribeOption{list}\option{list}\\
509 %This option takes a list of options that will be passed on to the
510 %\pf{enumitem} package that controls the layout of lists created by
511 %the |enumerate| and |itemize| environments. Example:
512 %\begin{example}
513 % list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}
514 %\end{example}
515 %See for more information on controlling the layout of lists the
516 %\pf{enumitem} package \cite{enumitem}.
517 %\item\DescribeOptions{enumerate,itemize}\option{enumerate,itemize}\\
518 %As the |list| option, but only control |enumerate| and |itemize|
519 %environments respectively.
520 %\item\DescribeOption{clockformat}\option{clockformat}\\
521 %This option specifies the format of the clock. The format is set using
522 %Acrobat's |util.printd| function.\footnote{For a complete listing of
523 %allowable formats, consult the \textit{Acrobat JavaScript Scripting
524 %Reference}\cite{javascript}.} The default value is |HH:MM:ss|, which
525 %shows a 00-23 hour, 00-59 minute, 00-59 second clock. Example:
526 %\begin{example}
527 % clockformat=h:MM tt
528 %\end{example}
529 %The above setting will display a 1-12 hour, 00-59 minute, am/pm clock.
530 %That is, the clock might show |5:53 pm|.
531 %\item\DescribeOption{clockrefresh}\option{clockrefresh}\\
532 %This option should be a number which specifies how often
533 %the clock is refreshed in milliseconds. The default behavior is to refresh
534 %the clock every second. Thus, the default value is 1000. Notice, if the
535 %|clockformat| is such that seconds are not shown, then it makes no sense
536 %to update that clock every second. A corresponding example:
537 %\begin{example}
538 % clockrefresh=60000
539 %\end{example}
540 %The interpretation of this is that the clock will be updated every minute.
541 %\end{description}
542 %
543 %\subsubsection{Global and local options}\label{sec:glopts}
544 %This section describes options that can be used both globally via
545 %|\pdsetup| and locally via slide environments (see section~\ref{sec:slides}).
546 %\begin{description}
547 %\item\DescribeOptions{lf,cf,rf}\option{lf,cf,rf}\\
548 %This determines the content of the left, center and right footers.
549 %These are preset to empty.
550 %\item\DescribeOption{trans}\option{trans}\\
551 %This option sets the default transition effect to be used in the
552 %presentation. These transition effects only work after compiling the
553 %presentation to PDF format. See also section~\ref{sec:compiling}.
554 %The following transition effects are supported: |Split|, |Blinds|,
555 %|Box|, |Wipe|, |Dissolve|, |Glitter| and |Replace|. When you are using
556 %a viewer that understands PDF 1.5, you can also use |Fly|, |Push|,
557 %|Cover|, |Uncover| or |Fade|. It is important to notice that most
558 %viewers are case sensitive, so, for instance, |box| will not work.
559 %
560 %The preset effect is |Replace| which just replaces one slide with
561 %another when browsing the slides. Note that some PDF viewers (like
562 %Acrobat Reader 5 and higher) only produce the transition effect in
563 %full screen mode. If you want to use a custom transition effect that
564 %is not listed in the list above (for instance, a wipe effect with a
565 %custom wipe direction), then that is possible. However,
566 %\pf{powerdot} will put a warning in your log file that the effect
567 %that you have chosen, might not work in the PDF viewer. Here is an
568 %example that does work.
569 %\begin{example}
570 % trans=Wipe /Di 0
571 %\end{example}
572 %In Acrobat (Reader), this wipes from left to right instead of the
573 %default top to bottom. For more information, see a PDF Reference
574 %Manual.
575 %\item\DescribeOption{method}\option{method}\\
576 %This option can be used when a slide contains special material that
577 %does not get treated in the `usual' way by \LaTeX. Verbatim material
578 %is an example of this. Possible values are |normal| (the preset value),
579 %|direct| and |file|. We will come back to this option in detail in
580 %section~\ref{sec:verbatim}.
581 %\item\DescribeOptions{logohook,logopos,logocmd}\option{logohook,logopos,logocmd}\\
582 %If |logopos| is specified, a logo defined by the value of the
583 %|logocmd| option will be put on slides. The position can be
584 %specified relative to the width and height of the slide. |{0,0}| is
585 %the lower left corner of the paper and |{\slidewidth,\slideheight}|
586 %is the upper right corner. For positioning the logo, the |\rput|
587 %command of \pf{pstricks} \cite{PSTricksWeb,PSTricks} is used. This
588 %command also allows to specify the point of the logo that should be
589 %positioned there. This point can be entered via the |logohook|
590 %option and can take the values |tl|, |t|, |tr|, |r|, |Br|, |br|,
591 %|b|, |bl|, |Bl|, |l|, |B| and |c|. For more information about
592 %|\rput|, consult the \pf{pstricks} documentation. Here is an example
593 %that integrates the flower of the \pf{default} style into the
594 %\pf{husky} style.
595 %\begin{example}
596 % \documentclass[style=husky]{powerdot}
597 % \pdsetup{
598 % logohook=t,
599 % logopos={.088\slidewidth,.99\slideheight},
600 % logocmd={\includegraphics[height=.08\slideheight]{powerdot-default.ps}}
601 % }
602 % \begin{document}
603 % ...
604 % \end{document}
605 %\end{example}
606 %The preset value for |logohook| is |tl|.
607 %\end{description}
608 %
609 %A special feature of \pf{powerdot}, which can be used to make
610 %presentations come alive, is the use of random dots. These dots will
611 %be placed anywhere on your slides and use the colors defined by the
612 %palette that you use. Overlays will carry the same dots. This
613 %feature uses |random.tex| \cite{random}. Several options are
614 %available to control the appearance of the random dots.
615 %\begin{description}
616 %\item\DescribeOption{randomdots}\option{randomdots}\\
617 %By default, random dots are turned off. If this option is set to
618 %|true|, random dots will be generated. |false| will turn off the
619 %feature. When no value is submitted to the option, |true| will be
620 %used.
621 %\item\DescribeOptions{dmindots,dmaxdots}\option{dmindots,dmaxdots}\\
622 %The number of dots per slide is also random. These options set the
623 %minimum and maximum dots per slide. Preset values are |5| and |40|,
624 %respectively.
625 %\item\DescribeOptions{dminsize,dmaxsize}\option{dminsize,dmaxsize}\\
626 %The minimum and maximum radius of the dots. Preset values are |5pt|
627 %and |40pt|, respectively.
628 %\item\DescribeOptions{dminwidth,dmaxwidth,dminheight,dmaxheight}
629 %\option{dminwidth,dmaxwidth,dminheight,dmaxheight}\\
630 %These options determine the area on the slide that can be used for
631 %the random dots. These values are preset such that dots go anywhere
632 %on the slide, but you might want to adjust these such that, for
633 %instance, dots can only appear in the text area. The preset values
634 %are |0pt|, |\slidewidth|, |0pt|, |\slideheight|.
635 %
636 %Here is an example that allows dots in a smaller rectangle on the
637 %slide.
638 %\begin{example}
639 % \pdsetup{
640 % dminwidth=.1\slidewidth,dmaxwidth=.9\slidewidth,
641 % dminheight=.2\slideheight,dmaxheight=.8\slideheight
642 % }
643 %\end{example}
644 %\item\DescribeOption{dbright}\option{dbright}\\
645 %This option can be used to adjust the brightness of the dots. The
646 %number should be an integer between -100 and 100. If the number is
647 %negative, the color will be adjusted towards black, with -100 giving
648 %black. If the number is positive, the color will be adjusted towards
649 %white, with 100 giving white. With a light background, you may want
650 %to choose |bright| to be positive. With a dark background, you may
651 %want to set it negative. The preset value is |60|, meaning a mixture
652 %of 40\% of the original color and 60\% white.
653 %\item\DescribeOption{dprop}\option{dprop}\\
654 %This option is used for passing extra parameters to the |\psdot|
655 %command, which creates the random dots. You could, for instance,
656 %change the style of the dots or the line width. See for more
657 %information about |\psdot| the \pf{pstricks} documentation
658 %\cite{PSTricksWeb,PSTricks}. \pf{powerdot} defines two extra dot
659 %styles that can be used for the random dots. These styles are
660 %|ocircle| (open circle) and |osquare| (open square).
661 %\end{description}
662 %
663 %Here are two examples for the use of random dots.
664 %\begin{example}
665 % \pdsetup{
666 % randomdots,dminwidth=.2\slidewidth
667 % }
668 %\end{example}
669 %This turns on random dots and doesn't use the left 20\% of the slide
670 %for placing random dots.
671 %\begin{example}
672 % \pdsetup{
673 % randomdots,dprop={dotstyle=ocircle,linewidth=.5pt},
674 % dminsize=500pt,dmaxsize=600pt,dmindots=2,dmaxdots=5
675 % }
676 %\end{example}
677 %This example puts at most 5 big circles on slides. These circles do
678 %not fit on the slides and you will only see parts of them in the
679 %shape of curves.
680 %
681 %\subsubsection{\cs{pdsetup} example}
682 %Here is an example of a |\pdsetup| command that one could use to set up
683 %the presentation.
684 %\begin{example}
685 % \pdsetup{
686 % lf=My first presentation,
687 % rf=For some conference,
688 % trans=Wipe,
689 % theslide=\arabic{slide},
690 % randomdots,dmaxdots=80
691 % }
692 %\end{example}
693 %This sets the left and right footers and will initialize the
694 %transition effect to |Wipe|. Further, slide numbers will not include
695 %the number of the last slide, but only the number of the current
696 %slide. Finally, slides will be covered with at most 80 random dots.
697 %
698 %A small note is necessary with respect to the appearance of footers.
699 %The slide number (controlled by the |theslide| option) will be added
700 %to a footer. Most styles add it too the right footer. If both the
701 %footer and the slide number are non empty, |~--~| will be inserted
702 %in between them to separate them. Styles might modify this default
703 %behavior however.
704 %
705 %\section{Making slides}\label{sec:slides}
706 %\subsection{The title slide}\label{sec:titleslide}
707 %\DescribeMacro{\title}
708 %\DescribeMacro{\author}
709 %\DescribeMacro{\and}
710 %\DescribeMacro{\date}
711 %\DescribeMacro{\maketitle}
712 %The title slide is created by the |\maketitle| command.
713 %\begin{command}
714 % `\cs{maketitle}\oarg{options}'
715 %\end{command}
716 %Its use is the same as in the standard \LaTeX\ document classes. The
717 %optional argument \meta{options} can contain any option from
718 %section~\ref{sec:glopts}. Specifying such an option in the
719 %|\maketitle| command will only have an effect on the title slide and
720 %not on other slides. See an example below.
721 %\begin{example}
722 % \documentclass{powerdot}
723 % \title{Title}
724 % \author{You \and me}
725 % \date{August 21, 2005}
726 % \begin{document}
727 % \maketitle
728 % ...
729 % \end{document}
730 %\end{example}
731 %The |author|, |title| and |date| declarations provide the text to be
732 %used when making a title page. The design of the title page is
733 %specific to the style in use. Notice the use of |\and| for
734 %separating multiple authors. See a \LaTeX\ manual \cite{companion}
735 %for more information on commands such as |\title| and |\author|.
736 %
737 %\subsection{Other slides}\label{sec:otherslides}
738 %\DescribeEnv{slide} The centerpiece of every presentation is the
739 %slide. In \pf{powerdot}, the content of each slide is placed in a
740 %|slide| environment.
741 %\begin{command}
742 % `\cs{begin}\texttt{\{slide\}}\oarg{options}\marg{slide title}'
743 % `\meta{body}'
744 % `\cs{end}\texttt{\{slide\}}'
745 %\end{command}
746 %
747 %In section~\ref{sec:overlays} we'll see how to give some life to the
748 %slides, but for now, let's look at a simple example.
749 %\begin{example}
750 % \begin{slide}{First slide}
751 % Hello World.
752 % \end{slide}
753 %\end{example}
754 %The slide environment has one required argument, namely the slide
755 %title. When a slide is created, the slide title is used to create an
756 %entry in the table of contents and in the list of bookmarks. The
757 %table of contents is a listing of the slides and section titles in
758 %the presentation that appears on each slide.
759 %
760 %The table of contents is clickable (when the presentation is
761 %compiled into PDF) and serves as a nice way to jump from location to
762 %location within the presentation. The bookmark list is only present
763 %when compilation is taken all the way to the PDF file format. It
764 %also serves as a table of contents, but this list does not appear on
765 %\textit{any} of the slides, but in a separate window in a PDF
766 %viewer. In the example above, the entries in both table contents and
767 %the list of bookmarks would be titled |First slide|.
768 %
769 %The \meta{options} for the |slide| environment can contain any
770 %option listed in section~\ref{sec:glopts}. Additionally, the
771 %following options can be used.
772 %\begin{description}
773 %\item\DescribeOption{toc}\option{toc}\\
774 %When specified, the value is used for the entry in the table of
775 %contents; otherwise, the slide title is used. If |toc=| is
776 %specified, then no entry is created.
777 %\item\DescribeOption{bm}\option{bm}\\
778 %When specified, the value is used for the bookmark entry; otherwise,
779 %the slide title is used. If |bm=| is specified, then no entry is
780 %created.
781 %\end{description}
782 %
783 %These optional arguments are especially useful when the title of a
784 %slide is extremely long or when the title contains \LaTeX\ commands
785 %that do not render correctly in the bookmarks.\footnote{The
786 %bookmarking procedure uses \cs{pdfstringdef} from the \pf{hyperref}
787 %package, and it can process accented characters such as \cs{"i}.}
788 %When specifying entries, be sure to hide special characters `|,|'
789 %and `|=|' between curly brackets `|{|' and `|}|'. Let's look at an
790 %example that uses these optional arguments.
791 %\begin{example}
792 % \begin{slide}[toc=,bm={LaTeX, i*i=-1}]{\color{red}\LaTeX, $i^2=-1$}
793 % My slide contents.
794 % \end{slide}
795 %\end{example}
796 %
797 %In this example, the slide title will appear as {\color{red}\LaTeX,
798 %$i^2=-1$}. This text will not render correctly in a bookmark entry.
799 %An attempt is made to correct this, but often, the correction does
800 %not produce an equivalent text. This particular title would be
801 %rendered in the bookmark list as |redLaTeX, i2=-1|. On the other
802 %hand, the manually specified bookmark entry is rendered as:
803 %|LaTeX, i*i=-1|. Notice, no entry is created in the table of contents,
804 %because of the use of |toc=|.
805 %
806 %In addition to the |slide| environment, each individual style can
807 %define its own environments. Many styles have a |wideslide|
808 %environment. The idea is that one might have information that does
809 %not fit nicely on a slide with a table of contents listed, as this
810 %consumes some space. In such cases, it is preferable to use a slide
811 %that does not list the table of contents. The |wideslide|
812 %environment provides this functionality and has more space for the
813 %actual slide content. See section~\ref{sec:styles} for information
814 %on the various environments provided by the styles.
815 %
816 %\section{Overlays}\label{sec:overlays}
817 %It is often the case that you don't want all the information on the
818 %slide to appear at once. Rather, the information should appear one
819 %item at a time. In \pf{powerdot}, this is achieved with overlays.
820 %Each slide can be comprised of many overlays, and the overlays are
821 %displayed one at a time.
822 %
823 %\subsection{The \cs{pause} command}\label{sec:pause}
824 %\DescribeMacro{\pause} The easiest way to display information
825 %sequentially is to use the |\pause| command.
826 %\begin{command}
827 % `\cs{pause}\oarg{number}'
828 %\end{command}
829 %Below is a simple example:
830 %\begin{example}
831 % \begin{slide}{Simple overlay}
832 % power\pause dot
833 % \end{slide}
834 %\end{example}
835 %The slide's information is displayed and continues until the
836 %|\pause| command is encountered. No further output within the same
837 %slide is displayed until the click of the mouse or the touch of the
838 %keyboard. Then, the content will continue to display until all the
839 %information is displayed or until another |\pause| command is
840 %encountered. In this example, |power| is displayed on the first
841 %overlay, and |powerdot| is the displayed on the second overlay. The
842 %|\pause| command is often used within the |itemize| and |enumerate|
843 %environments. For example,
844 %\begin{example}
845 % \begin{slide}{Multiple pauses}
846 % power\pause dot \pause
847 % \begin{itemize}
848 % \item Let me pause\ldots \pause
849 % \item \ldots while I talk \pause and chew bubble gum. \pause
850 % \item Perhaps you'll be persuaded.
851 % \item Perhaps not.
852 % \end{itemize}
853 % \end{slide}
854 %\end{example}
855 %Since |\pause| was used before the |itemize| environment, no item
856 %will appear until the third overlay. Then, each item will be
857 %displayed one at a time, each on their own overlay. More information
858 %on using lists will follow in the next section.
859 %
860 %The optional argument of the |\pause| command specifies the number
861 %of overlays to pause. An example usage is:
862 %\begin{example}
863 % \begin{slide}{Pause longer}
864 % \begin{itemize}
865 % \item A \pause
866 % \item B \pause[2]
867 % \item C
868 % \end{itemize}
869 % \end{slide}
870 %\end{example}
871 %In the example above, item |C| will appear on the fourth overlay.
872 %The usefulness of this option will become more apparent in the next
873 %section; so we will revisit a similar example at that time.
874 %
875 %\subsection{List environments}\label{sec:lists}
876 %The list environments, |itemize| and |enumerate|, have special
877 %treatments in \pf{powerdot}. They have an optional argument that
878 %will be taken care off by the \pf{enumitem} package (see
879 %\cite{enumitem}). \pf{powerdot} supplies an extra key for this
880 %optional argument. In the examples that follow, features will be
881 %described using the |itemize| environment but they also apply to the
882 %|enumerate| environment.
883 %
884 %Here is the typical usage of the |itemize| environment:
885 %\begin{example}
886 % \begin{slide}{Basic itemize}
887 % \begin{itemize}
888 % \item A \pause
889 % \item B \pause
890 % \item C
891 % \end{itemize}
892 % \end{slide}
893 %\end{example}
894 %The display is simple, each item appears one at a time with each
895 %overlay.
896 %
897 %\DescribeOption{type}
898 %Suppose we wanted every item to show, but we only wanted one item to
899 %appear `active' at once. This can be accomplished via the |type|
900 %option for the |itemize| environment. The preset value is |0|.
901 %\begin{example}
902 % \begin{slide}{Type 1 itemize}
903 % \begin{itemize}[type=1]
904 % \item A \pause
905 % \item B \pause
906 % \item C
907 % \end{itemize}
908 % \end{slide}
909 %\end{example}
910 %Now, every item will be displayed in the \emph{inactive
911 %color}\index{inactive color|usage} (which is defined by the style
912 %that you use), and the item's font color will become the active one
913 %on the overlay that it would normally appear on. The default
914 %behavior is given by |type=0|. It is still possible
915 %to pass optional arguments to \pf{enumitem} via the second optional argument:
916 %\begin{example}
917 % \begin{slide}{Type 1 itemize}
918 % \begin{enumerate}[type=1][label=\roman*a)]
919 % \item A \pause
920 % \item B \pause
921 % \item C
922 % \end{enumerate}
923 % \end{slide}
924 %\end{example}
925 %Take care, that this must always be the second optional argument! It is
926 %possible to leave the first one empty, which is valid only for \pf{powerdot}.
927 %
928 %Lists can also be nested to create complicated structures. When a
929 %list is nested, it inherits the setting of the |type| option from
930 %the `parent' list, but that can be overruled by specifying the
931 %|type| option in the optional argument of the nested list. We
932 %present here one example, but many more can be created by nesting
933 %lists of different types in different ways.
934 %\begin{example}
935 % \begin{slide}{Nested lists}
936 % \begin{itemize}
937 % \item A\pause
938 % \begin{itemize}[type=1]
939 % \item B\pause
940 % \end{itemize}
941 % \item C
942 % \end{itemize}
943 % \end{slide}
944 %\end{example}
945 %This displays |A| and |B| on the first overlay, but |B| is inactive.
946 %On overlay 2, |B| will become active and on overlay 3, |C| will
947 %become visible.
948 %
949 %\subsection{The \cs{item} command}
950 %\DescribeMacro{\item}
951 %The |\item| command has an extra \emph{optional} argument in
952 %\pf{powerdot} which allows for creating overlays in a more flexible
953 %way then |\pause| provides.
954 %\begin{command}
955 % `\cs{item}\oarg{label}\larg{overlays}'
956 %\end{command}
957 %This optional argument should contain an overlay specification
958 %stating on which overlays you want the item to appear. This
959 %specification is a comma separated list where each item can used the
960 %notation as in table \ref{tab:item}.
961 %\begin{table}[htb]\centering
962 %\begin{tabular}{d}
963 %Syntax&Meaning\\\hline
964 %\texttt{x}&Only overlay \texttt{x}\\
965 %\texttt{-x}&All overlays up to and including \texttt{x}\\
966 %\texttt{x-}&All overlays from \texttt{x}, including \texttt{x}\\
967 %\texttt{x-y}&All overlays from \texttt{x} to \texttt{y},
968 %including \texttt{x} and \texttt{y}\\
969 %\end{tabular}
970 %\caption{\cs{item} and \cs{onslide} notation}\label{tab:item}
971 %\end{table}
972 %The \meta{label} argument is the standard optional argument for
973 %|\item| in \LaTeX. A \LaTeX\ manual \cite{companion} can tell you
974 %more about this argument.
975 %
976 %Here is an example.
977 %\begin{example}
978 % \begin{slide}{Active itemize}
979 % \begin{itemize}[type=1]
980 % \item<1> A
981 % \item<2> B
982 % \item<3> C
983 % \end{itemize}
984 % \end{slide}
985 %\end{example}
986 %Here we have said that |A| should only be active on overlay 1, |B|
987 %should only be active on overlay 2, and |C| should only be active on
988 %overlay 3. Again, when the item is not active, it appears in the
989 %inactive color because of |type=1|.
990 %
991 %If |type=0| is specified and if each item is given an overlay
992 %option, then each item will appear only when it is active. When the
993 %item is not active, then it will not show on the slide at all. More
994 %examples demonstrating the syntax for \meta{overlays} will be
995 %discussed in the next section.
996 %
997 %\subsection{The \cs{onslide} command}\label{sec:onslide}
998 %\DescribeMacro{\onslide} Overlays can also be achieved using the
999 %|\onslide| command.
1000 %\begin{command}
1001 % `\cs{onslide}\marg{overlays}\marg{text}'
1002 %\end{command}
1003 %This command takes an \meta{overlays} specification as first
1004 %argument and the \meta{text} to apply it to as second argument. The
1005 %\meta{overlays} on which the text will appear are specified as a
1006 %comma separated list with syntax as in table \ref{tab:item}. We
1007 %start off with a simple example.
1008 %\begin{example}
1009 % \begin{slide}{Simple onslide}
1010 % \onslide{1,2}{power}\onslide{2}{dot}
1011 % \end{slide}
1012 %\end{example}
1013 %We have instructed |power| to appear on overlays one and two, and
1014 %|dot| to appear only on overlay two. As you might guess, this
1015 %example has the same output as our first |\pause| example. Yet, it
1016 %is clearly the case that our syntax is more complicated. However,
1017 %this slight ``complication'' also allows for much more flexibility.
1018 %
1019 %\DescribeMacro{\onslide+}Consider the above example with the
1020 %following modifications:
1021 %\begin{example}
1022 % \begin{slide}{Simple onslide+}
1023 % \texttt{onslide }: \onslide{1}{power}\onslide{2}{dot}\\
1024 % \texttt{onslide+}: \onslide+{1}{power}\onslide+{2}{dot}
1025 % \end{slide}
1026 %\end{example}
1027 %The |\onslide+| command displays its content in a different manner
1028 %altogether. Now, |dot| appears on every overlay, but it is in
1029 %inactive color\index{inactive color|usage} and matches the normal
1030 %font color \textit{only} on overlay two. This is comparable to the
1031 %|type=1| behavior for lists (see section~\ref{sec:lists}).
1032 %
1033 %When executing this example, we will also notice that the |\onslide|
1034 %command does hide material, but still reserves the right amount of
1035 %space for it: on overlay 2, the |dot|s appear right above each
1036 %other. The next command does not reserve space.
1037 %
1038 %\DescribeMacro{\onslide*} Instead of hiding and reserving space
1039 %(|\onslide|) or putting \meta{text} in the inactive color
1040 %(|\onslide+|) when the overlay doesn't match \meta{overlays}, this
1041 %command just eats the material altogether. To understand the
1042 %differences, consider the following example:
1043 %\begin{example}
1044 % \begin{slide}{Simple onslide*}
1045 % \texttt{onslide }: \onslide{1}{power}\onslide{2}{dot}\\
1046 % \texttt{onslide+}: \onslide+{1}{power}\onslide+{2}{dot}\\
1047 % \texttt{onslide*}: \onslide*{1}{power}\onslide*{2}{dot}
1048 % \end{slide}
1049 %\end{example}
1050 %The output of the first two lines, we are already familiar with. The
1051 %third line displays |power| on overlay 1 and |dot| on overlay 2, but
1052 %no space for |power| is reserved on overlay 2. Hence |dot| will
1053 %start on the cursor position that |power| started on overlay 1 and
1054 %it is not aligned below the other two |dots|.
1055 %
1056 %We finish with an example of the syntax that is possible with
1057 %|\item| and |\onslide|. Remember that these commands take a comma
1058 %separated list for the \meta{overlays} specification and that each
1059 %element can used the syntax as explained in table \ref{tab:item}.
1060 %The various variations are demonstrated in the example below.
1061 %\begin{example}
1062 % \begin{slide}{Lists}
1063 % \onslide{10}{on overlay 10 only}\par
1064 % \onslide{-5}{on every overlay before and including overlay 5}\par
1065 % \onslide{5-}{on every overlay after and including overlay 5}\par
1066 % \onslide{2-5}{on overlays 2 through 5, inclusive}\par
1067 % \onslide{-3,5-7,9-}{on every overlay except overlays 4 and 8}
1068 % \end{slide}
1069 %\end{example}
1070 %
1071 %\subsection{Relative overlays}
1072 %Sometimes it is a pain to keep track of when an item should appear
1073 %or become active. You might, for example, just care that some text
1074 %appears on the overlay \textit{after} some other item. This
1075 %functionality is provided through the use of relative overlays which
1076 %should not be used outside list environments that use |\item|. Let's
1077 %consider a simple, illuminating example.
1078 %\begin{example}
1079 % \begin{slide}{Relative overlays}
1080 % \begin{itemize}
1081 % \item A \pause
1082 % \item B \onslide{+1}{(visible 1 overlay after B)}\pause
1083 % \item C \onslide{+2-}{(appears 2 overlays after C, visible until the end)}
1084 % \pause
1085 % \item D \onslide{+1-6}{(appears 1 overlay after D, visible until overlay 6)}
1086 % \pause
1087 % \item E \pause
1088 % \item F \pause
1089 % \item G \onslide{+1-+3}{(appears 1 overlay after G for 3 overlays)}\pause
1090 % \item H \pause
1091 % \item I \pause
1092 % \item J \pause
1093 % \item K
1094 % \End{itemize}
1095 % \end{slide}
1096 %\end{example}
1097 %As you can see, we still use |\onslide|. The only change is with the
1098 %syntax of the list of overlays. Now, we can specify a `|+|' symbol
1099 %in the list. In its simplest usage, |\onslide{+1}| will make text
1100 %display one overlay after the overlay it would \textit{normally}
1101 %appear on. You can still use the syntax in table \ref{tab:item}.
1102 %These are demonstrated in the above example. Notice,
1103 %|\onslide{+1-6}| means that the text will appear one overlay after
1104 %the overlay it would normally appear on and that the text should
1105 %remain shown until overlay seven. To make text appear for a range of
1106 %relative overlays, see the final demonstration in the above example.
1107 %
1108 %\section{Presentation structure}\label{sec:structure}
1109 %\subsection{Making sections}\label{sec:section}
1110 %\DescribeMacro{\section}
1111 %This section describes the |\section| command which provides a way
1112 %to structure a presentation.
1113 %\begin{command}
1114 % `\cs{section}\oarg{options}\marg{section title}'
1115 %\end{command}
1116 %This command will produce a slide with \meta{section title} on it
1117 %and will also use this text to create sections in the table of
1118 %contents and in the bookmarks list. There are several \meta{options}
1119 %to control its output.
1120 %
1121 %\DescribeOption{tocsection} This option controls the creation of a
1122 %section in the table of contents. The preset value is |true|.
1123 %\begin{description}
1124 %\item\option{tocsection=true}\\
1125 %This does create a section in the table of contents. This means that
1126 %all following slides, until the next section, will be nested under
1127 %this section.
1128 %\item\option{tocsection=false}\\
1129 %This does not create a section in the table of contents and hence
1130 %the section will be listed as an ordinary slide.
1131 %\item\option{tocsection=hidden}\\
1132 %This does create a section in the table of contents, but this is
1133 %only visible when you view a slide that is part of this section.
1134 %This could be used to append a section to the presentation which you
1135 %can discuss if there is some extra time.
1136 %\end{description}
1137 %
1138 %\DescribeOption{slide} This option controls whether the |\section|
1139 %command creates a slide. The preset value is |true|.
1140 %\begin{description}
1141 %\item\option{slide=true}\\
1142 %A slide is created.
1143 %\item\option{slide=false}\\
1144 %No slide will be created. If also |tocsection| is |false|, the
1145 %|\section| command doesn't do anything. If it does create a table of
1146 %contents section (|tocsection=| |true| or |hidden|), its link will
1147 %point to the first slide in the section as the section itself
1148 %doesn't have a slide.
1149 %\end{description}
1150 %
1151 %\DescribeOption{template} This option can be used to make the
1152 %section slide with another template. By default, a normal |slide|
1153 %environment is used to create the section slide, but if a style
1154 %offers other templates that could be used for this purpose (for
1155 %instance, the |wideslide| environment), then you can use this option
1156 %to select that template. See section~\ref{sec:styles} for an
1157 %overview of the available templates with every style.
1158 %
1159 %Finally, all options available to normal slides are available to
1160 %slides created by |\section| as well (see section~\ref{sec:slides}).
1161 %However, when the section does make a |tocsection|, |toc=| or |bm=|
1162 %won't remove the table of contents entry or the bookmark
1163 %respectively.
1164 %
1165 %\subsection{Making an overview}\label{sec:tableofcontents}
1166 %\DescribeMacro{\tableofcontents}
1167 %This command creates an overview of your presentation and can only
1168 %be used on a slide.
1169 %\begin{command}
1170 % `\cs{tableofcontents}\oarg{options}'
1171 %\end{command}
1172 %There are several \meta{options} to control the output of this
1173 %command.
1174 %
1175 %\DescribeOption{type}
1176 %This option controls whether certain material (depending on the
1177 %input in the |content| option below) will be hidden or displayed in
1178 %the inactive color\index{inactive color|usage}. The preset value is
1179 %|0|. Compare with the |type| option for list environments
1180 %(section~\ref{sec:lists}).
1181 %
1182 %\begin{description}
1183 %\item\option{type=0}\\
1184 %When material is not of the requested type as specified in the
1185 %|content| option, it will be hidden.
1186 %\item\option{type=1}\\
1187 %As |type=0|, but instead of hiding material, it will be typeset in
1188 %the inactive color.
1189 %\end{description}
1190 %
1191 %\DescribeOption{content}
1192 %The |content| option controls which elements will be included in the
1193 %overview. The preset value is |all|. The description below assumes
1194 %that |type=0| was chosen, but the alternative text for |type=1| can
1195 %easily be deduced.
1196 %
1197 %\begin{description}
1198 %\item\option{content=all}\\
1199 %This will display a full overview of your presentation including all
1200 %sections and slides, except the slides in hidden sections (see
1201 %section~\ref{sec:section}).
1202 %\item\option{content=sections}\\
1203 %This displays only the sections in the presentation.
1204 %\item\option{content=currentsection}\\
1205 %This displays the current section only.
1206 %\item\option{content=future}\\
1207 %This displays all content starting from the current slide.
1208 %\item\option{content=futuresections}\\
1209 %This displays all sections, starting from the current section.
1210 %\end{description}
1211 %
1212 %We finish this section with a small example that will demonstrate
1213 %how you can make a presentation that contains an overall overview of
1214 %sections in the presentation, giving a general idea of the content,
1215 %and per section a detailed overview of the slides in that section.
1216 %\begin{example}
1217 % \begin{slide}[toc=,bm=]{Overview}
1218 % \tableofcontents[content=sections]
1219 % \end{slide}
1220 % \section{First section}
1221 % \begin{slide}[toc=,bm=]{Overview of the first section}
1222 % \tableofcontents[content=currentsection,type=1]
1223 % \end{slide}
1224 % \begin{slide}{Some slide}
1225 % \end{slide}
1226 % \section{Second section}
1227 % ...
1228 %\end{example}
1229 %
1230 %\section{Miscellaneous}
1231 %\subsection{Notes}\label{sec:notes}
1232 %\DescribeEnv{note}
1233 %The |note| environment can be used to make personal notes that
1234 %accompany a slide. You can control displaying notes using the
1235 %|display| option (see section~\ref{sec:classopts}). Here is an
1236 %example.
1237 %\begin{example}
1238 % \begin{slide}{Chewing gum}
1239 % ...
1240 % \end{slide}
1241 % \begin{note}{Reminder for chewing gum}
1242 % Don't forget to mention that chewing gum is sticky.
1243 % \end{note}
1244 %\end{example}
1245 %
1246 %\subsection{Empty slides}\label{sec:emptyslides}
1247 %\DescribeEnv{emptyslide}
1248 %The |emptyslide| environment creates a totally empty slide. The text
1249 %box on the slide can be used for special things like displaying
1250 %photos. This allows for creating a dia show. Example:
1251 %\begin{example}
1252 % \begin{emptyslide}{}
1253 % \centering
1254 % \vspace{\stretch{1}}
1255 % \includegraphics[height=0.8\slideheight]{me_chewing_gum.eps}
1256 % \vspace{\stretch{1}}
1257 % \end{emptyslide}
1258 %\end{example}
1259 %The |\includegraphics| command is defined by the \pf{graphicx}
1260 %package \cite{graphics}. The |\stretch| command is used to
1261 %vertically center the picture. Both commands are described in your
1262 %favorite \LaTeX\ manual, for instance \cite{companion}. Note that
1263 %you can use the lengths |\slideheight| and |\slidewidth| to scale
1264 %pictures to fit nicely on the slide.
1265 %
1266 %\subsection{Bibliography slide}\label{sec:bib}
1267 %\DescribeEnv{thebibliography}
1268 %\pf{powerdot} redefines the standard \pf{article}
1269 %|thebibliography| environment to suppress the creation of a section
1270 %heading and running headers. All other properties are maintained.
1271 %You can do either of the next two (depending whether you are
1272 %using BiB\TeX\ or not):\\
1273 %\begin{minipage}[t]{.49\linewidth}
1274 %\begin{example}
1275 % \begin{slide}{Slide}
1276 % \cite{someone}
1277 % \end{slide}
1278 % \begin{slide}{References}
1279 % \begin{thebibliography}{1}
1280 % \bibitem{someone} Article of someone.
1281 % \end{thebibliography}
1282 % \end{slide}
1283 %\end{example}
1284 %\end{minipage}\hfill
1285 %\begin{minipage}[t]{.49\linewidth}
1286 %\begin{example}
1287 % \begin{slide}{Slide}
1288 % \cite{someone}
1289 % \end{slide}
1290 % \begin{slide}{References}
1291 % \bibliographystyle{plain}
1292 % \bibliography{YourBib}
1293 % \end{slide}
1294 %\end{example}
1295 %\end{minipage}
1296 %
1297 %In case you have a big reference list that you want to spread over
1298 %multiple slides, have a look at the packages \pf{natbib} and
1299 %\pf{bibentry} \cite{natbib}. Using both packages allows you to do:
1300 %\begin{example}
1301 % \begin{slide}{References (1)}
1302 % \bibliographystyle{plain}
1303 % \nobibliography{YourBib}
1304 % \bibentry{someone1}
1305 % \bibentry{someone2}
1306 % \end{slide}
1307 % \begin{slide}{References (2)}
1308 % \bibentry{someone3}
1309 % \end{slide}
1310 %\end{example}
1311 %Have a look at your favorite \LaTeX\ manual for more information
1312 %about citations and bibliographies.
1313 %
1314 %\subsection{Verbatim on slides}\label{sec:verbatim}\DescribeOption{verbatim}
1315 %\pf{powerdot} has three different methods of processing slides, from
1316 %which two have mainly been developed to make the inclusion of
1317 %verbatim content\footnote{And other content that needs catcode
1318 %changes when processing.} on slides easier. These methods can be
1319 %accessed by the |method| key which is available in slide
1320 %environments and the |\pdsetup| command (see
1321 %section~\ref{sec:glopts}).
1322 %\begin{description}
1323 %\item\option{method=normal}\\
1324 %This is the preset method for processing slides. It is fast and
1325 %allows for overlays, but it does not allow for
1326 %verbatim.\footnote{Except when it has been saved in a box outside
1327 %the slide.}
1328 %\item\option{method=direct}\\
1329 %This method is also fast, but does not allow for overlays. Overlays
1330 %will silently be disabled. However, it does allow for verbatim
1331 %content on slides.
1332 %\item\option{method=file}\\
1333 %This method uses a temporary file to export the slide body to and
1334 %read it back in. This method does allow for verbatim content and
1335 %overlays, but could be slow when many slides use this method because
1336 %the filesystem is used.
1337 %\end{description}
1338 %
1339 %Below is an example demonstrating the use of all three different
1340 %methods of slide processing.
1341 %\begin{example}
1342 % \documentclass{powerdot}
1343 % \usepackage{listings}
1344 % \lstnewenvironment{code}{%
1345 % \lstset{frame=single,escapeinside=`',
1346 % backgroundcolor=\color{yellow!20},
1347 % basicstyle=\footnotesize\ttfamily}
1348 % }{}
1349 % \begin{document}
1350 % \begin{slide}{Slide 1}
1351 % Normal \pause content.
1352 % \end{slide}
1353 % \begin{slide}[method=direct]{Slide 2}
1354 % Steps 1 and 2:
1355 % \begin{code}
1356 % compute a;`\pause'
1357 % compute b;
1358 % \end{code}
1359 % \end{slide}
1360 % \begin{slide}[method=file]{Slide 3}
1361 % Steps 1 and 2:
1362 % \begin{code}
1363 % compute a;`\pause'
1364 % compute b;
1365 % \end{code}
1366 % \end{slide}
1367 % \end{document}
1368 %\end{example}
1369 %The first slide shows the default behavior for normal content. It
1370 %produces two overlays. The second slide does not produce overlays,
1371 %despite the use of the |\pause| command. This command has been
1372 %disabled by choosing the |direct| method to process the verbatim
1373 %content. The third slide has the same body as the second slide, but
1374 %now does create two overlays, because the method using a temporary
1375 %file has been chosen. Notice that we used |\pause| inside the listing,
1376 %but that it can also be used outside the listing.
1377 %
1378 %\subsection{The \cs{twocolumn} command}\label{sec:twocolumn}
1379 %\DescribeMacro{\twocolumn}
1380 %The |\twocolumn| macro allows to split content into two columns.
1381 %\begin{command}
1382 % `\cs{twocolumn}\oarg{options}\marg{left}\marg{right}'
1383 %\end{command}
1384 %This typesets \meta{left} and \meta{right} in two columns. The
1385 %dimensions of those columns can be controlled by \meta{options}.
1386 %Below are the available options.
1387 %\begin{description}
1388 %\item\DescribeOption{lineheight}\option{lineheight}\\
1389 %If |lineheight| is specified, a line of the specified height will be
1390 %created using |\psline| in between the two columns. Example:
1391 %|lineheight=6cm|.
1392 %\item\DescribeOption{lineprop}\option{lineprop}\\
1393 %Any \pf{pstricks} declaration to specify the line properties. Example:
1394 %\begin{example}
1395 % lineprop={linestyle=dotted,linewidth=3pt}
1396 %\end{example}
1397 %\item\DescribeOptions{lfrheight,lfrprop}\option{lfrheight,lfrprop}\\
1398 %The first creates a frame of the specified height around the left
1399 %column. The second is as |lineprop|, but for the left frame.
1400 %\item\DescribeOptions{rfrheight,rfrprop}\option{rfrheight,rfrprop}\\
1401 %As |lfrheight| and |lfrprop|, but for the right frame.
1402 %\item\DescribeOptions{lcolwidth,rcolwidth}\option{lcolwidth,rcolwidth}\\
1403 %Width of the left and right columns. Both are preset to: |0.47\linewidth|.
1404 %\item\DescribeOption{frsep}\option{frsep}\\
1405 %Space between text and the frames. Preset: |1.5mm|.
1406 %\item\DescribeOption{colsep}\option{colsep}\\
1407 %Space between the two columns. Preset: |0.06\linewidth|.
1408 %\item\DescribeOption{topsep}\option{topsep}\\
1409 %The extra space (additional to |\baselineskip|) between text above
1410 %the columns and the text within the columns. Preset: |0cm|.
1411 %\item\DescribeOption{bottomsep}\option{bottomsep}\\
1412 %Idem for the bottom of the columns. Preset: |0cm|.
1413 %\item\DescribeOption{indent}\option{indent}\\
1414 %Horizontal indent left to the left column. Preset: |0cm|.
1415 %\end{description}
1416 %The dimensions described above are represented graphically in
1417 %figure \ref{fig:twocolumndim}.
1418 %\begin{figure}[htb]
1419 %\centering
1420 %\begin{pspicture}(0,.5)(13,10.5)
1421 %\psline(0,0.5)(0,10)
1422 %\rput[tl](.05,9.95){Top}
1423 %\psframe[dimen=middle](1,9)(7,2)
1424 %\psline{C-C}(8.5,9)(11,9)
1425 %\psline{C-C}(8.5,2)(8.5,9)
1426 %\psline{C-C}(8.5,2)(11,2)
1427 %\qdisk(1.7,8.3){.1cm}
1428 %\psset{linestyle=dashed}
1429 %\psline{C-C}(1.7,8.3)(6.3,8.3)
1430 %\psline{C-C}(1.7,8.3)(1.7,3)
1431 %\psline{C-C}(6.3,5)(6.3,8.3)
1432 %\psline{C-C}(11,9)(12,9)
1433 %\psline{C-C}(11,2)(12,2)
1434 %\psline{C-C}(11,7)(12,7)
1435 %\psline{C-C}(9.2,8.3)(12,8.3)
1436 %\psline{C-C}(9.2,8.3)(9.2,3)
1437 %\rput[tl](1.75,8.25){Left column text}
1438 %\rput[tl](9.25,8.25){Right column text}
1439 %\rput[tl](.05,1){Bottom}
1440 %\psset{linestyle=dotted,dotsep=2pt}
1441 %\psline(0,8.3)(1.7,8.3)
1442 %\psline(0,9.6)(1,9.6)
1443 %\psline(0,2)(1,2)
1444 %\psline(0,1.1)(1,1.1)
1445 %\psset{linestyle=solid}
1446 %\psline{<->}(.2,8.33)(.2,9.57)
1447 %\psline{<->}(4,8.33)(4,8.97)
1448 %\psline{<->}(1.73,7)(6.27,7)
1449 %\psline{<->}(1.03,6.5)(1.67,6.5)
1450 %\psline{<->}(0.03,5.5)(1.67,5.5)
1451 %\psline{<->}(6.33,7.4)(9.17,7.4)
1452 %\psline{<->}(8.53,6.5)(9.17,6.5)
1453 %\psline{<->}(6.33,6.5)(6.97,6.5)
1454 %\psline{<->}(10.7,8.33)(10.7,8.97)
1455 %\psline{<->}(7.3,8.97)(7.3,2.03)
1456 %\psline{<->}(.2,1.13)(.2,1.97)
1457 %\psline{->}(1.7,9.3)(1.7,8.45)
1458 %\psline{<-}(9.23,7)(11,7)
1459 %\cput(4,6.6){\small 1}
1460 %\cput(11.1,6.6){\small 2}
1461 %\cput(8,7){\small 3}
1462 %\cput(7.7,3){\small 4}
1463 %\cput(4.4,8.65){\small 5}
1464 %\cput(1.35,6.1){\small 5}
1465 %\cput(8.85,6.1){\small 5}
1466 %\cput(11.1,8.65){\small 5}
1467 %\cput(6.65,6.1){\small 5}
1468 %\cput(0.6,8.95){\small 6}
1469 %\cput(0.6,5.1){\small 7}
1470 %\cput(0.6,1.55){\small 8}
1471 %\cput(1.7,9.6){\small 9}
1472 %\end{pspicture}
1473 %\begin{tabular}{c p{4cm}cl}
1474 %\multicolumn{4}{c}{Meaning of the labels}\\\hline
1475 %1&|lcolwidth|&5&|frsep|\\
1476 %2&|rcolwidth|&6&|topsep|\\
1477 %3&|colsep|&7&|indent|\\
1478 %4&|lfrheight|, |rfrheight|,&8&|bottomsep|\\
1479 %&|lineheight|&9&Reference point
1480 %\end{tabular}
1481 %\caption{Two-column dimensions.}\label{fig:twocolumndim}
1482 %\end{figure}
1483 %Important to notice is that the |\twocolumn| macro uses the current
1484 %cursor position as the reference point to position the first line of
1485 %text of the left column (see also figure \ref{fig:twocolumndim}). This
1486 %means that optional frames can extend to the text on the previous
1487 %line. Use for instance |topsep=0.3cm| in that case to add extra
1488 %space between the two lines of text. The preset value of |topsep|
1489 %is based on the situation that there is no text on top of the two
1490 %columns. In that case, it is best to locate the first line of text
1491 %of the left column at the same spot as text that is not created by
1492 %|\twocolumn| on other slides. The setting |topsep=0cm| does exactly
1493 %this. However, with a combination of |topsep| and |indent| you can
1494 %change this behavior and position the first line of text of the left
1495 %column anywhere you want.
1496 %
1497 %The |\twocolumn| macro computes the height of the construction to
1498 %position text below the construction correctly. The computation is
1499 %done by taking the maximum height of |lfrheight|, |rfrheight|,
1500 %|lineheight| (if specified) and the left and right column content.
1501 %Hence when frames nor a line is requested, |bottomsep| is the
1502 %vertical space between the lowest line of text in the columns and
1503 %the text below the columns (additional to |\baselineskip|). Here is
1504 %an example.
1505 %\begin{example}
1506 % \begin{slide}{Two columns}
1507 % Here are two columns.
1508 % \twocolumn[
1509 % lfrprop={linestyle=dotted,linewidth=3pt},
1510 % lfrheight=4cm,rfrheight=5cm,lineheight=3cm,topsep=0.3cm
1511 % ]{left}{right}
1512 % Those were two columns.
1513 % \end{slide}
1514 %\end{example}
1515 %Note that the use of the \pf{xkeyval} commands |\savevalue| and
1516 %|\usevalue| \index{savevalue=\verb!*+\savevalue+|usage}
1517 %\index{usevalue=\verb!*+\usevalue+|usage} could be handy here, for
1518 %instance for copying the properties of the left frame to the right
1519 %frame. This avoids typing them twice and avoids making errors
1520 %resulting in different frames. See an example below.
1521 %\begin{example}
1522 % \twocolumn[
1523 % \savevalue{lfrheight}=3cm,
1524 % \savevalue{lfrprop}={
1525 % linestyle=dotted,framearc=.2,linewidth=3pt},
1526 % rfrheight=\usevalue{lfrheight},
1527 % rfrprop=\usevalue{lfrprop}
1528 % ]{left}{right}
1529 %\end{example}
1530 %See the \pf{xkeyval} documentation \cite{xkeyval} for more
1531 %information about |\savevalue| and |\usevalue|.
1532 %
1533 %\section{Available styles}\label{sec:styles}
1534 %\pf{powerdot} comes with a number of styles which are listed in the
1535 %overview below. The characteristics of each style are described
1536 %shortly and a sample of a title slide and a normal slide is provided
1537 %for each style. Styles support the |wideslide| environment, have a
1538 %table of contents on the left part of the paper in landscape
1539 %orientation and on the bottom part in portrait orientation and
1540 %support portrait orientation unless states otherwise.
1541 %\begin{description}
1542 %\item\pf{default}\\
1543 %This style provides six different palettes. A flower in the top left
1544 %corner decorates the slides for all palettes. The default palette is
1545 %\texttt{blue} which has as main colors light blue and white. You can
1546 %see an example of that palette below. Other available palettes are
1547 %\texttt{red}, \texttt{green}, \texttt{yellow}, \texttt{brown} and
1548 %\texttt{purple}.\\
1549 %\styleexample{default}
1550 %\item\pf{simple}\\
1551 %This is a simple style in black and white. This style could be
1552 %useful if you want to print your slides.\\
1553 %\styleexample{simple}
1554 %\item\pf{tycja}\\
1555 %This style is set in shades of yellow and dark blue. The table of
1556 %contents on slides is on the right side of the paper in landscape
1557 %orientation and on the bottom part in portrait.\\
1558 %\styleexample{tycja}
1559 %\item\pf{ikeda}\\
1560 %This style uses dark shades of red and blue and a light text color.
1561 %It has nice patterns on the slide for decoration.\\
1562 %\styleexample{ikeda}
1563 %\item\pf{fyma}\\
1564 %This style was originally created by Laurent Jacques for
1565 %\pf{prosper}. Based on that style, he created a version for
1566 %\pf{HA-prosper} with extended features. With his kind permission,
1567 %this style has been converted by Shun'ichi J. Amano for
1568 %\pf{powerdot}. The style has an elegant design with a light blue and
1569 %white gradient background in the default \texttt{blue} palette.
1570 %Other available palettes are \texttt{green}, \texttt{gray},
1571 %\texttt{brown} and \texttt{orange}. It has special templates for
1572 %sections on slides and sections on wide slides. Below is a sample of
1573 %the blue palette.\\
1574 %\styleexample{fyma}
1575 %\item\pf{ciment}\\
1576 %This style was originally created by Mathieu Goutelle for
1577 %\pf{prosper} and \pf{HA-prosper}. With his kind permission, this style
1578 %has been converted for \pf{powerdot}. The style has a background
1579 %that is hatched with light gray horizontal lines. Titles and table
1580 %of contents highlighting are done with dark red.\\
1581 %\styleexample{ciment}
1582 %\item\pf{elcolors}\\
1583 %This is a style using light shades of the elementary colors red,
1584 %blue and yellow.\\
1585 %\styleexample{elcolors}
1586 %\item\pf{aggie}\\
1587 %This style was created by Jack Stalnaker for \pf{HA-prosper} and he
1588 %has converted this style for \pf{powerdot}. The style uses dark red
1589 %and light brown colors.\\
1590 %\styleexample{aggie}
1591 %\item\pf{husky}\\
1592 %This style is created by Jack Stalnaker and has a background of
1593 %light gray sun beams combined with dark red highlights.\\
1594 %\styleexample{husky}
1595 %\item\pf{sailor}\\
1596 %This style is contributed by Mael Hill\'ereau and supplies five
1597 %different palettes: \texttt{Sea} (the default), \texttt{River},
1598 %\texttt{Wine}, \texttt{Chocolate} and \texttt{Cocktail}. Below is a
1599 %sample of the palette \texttt{Sea}.\\
1600 %\styleexample{sailor}
1601 %\item\pf{upen}\\
1602 %This style has a nice dark blue background and text in yellow. It is
1603 %contributed by Piskala Upendran.\\
1604 %\styleexample{upen}
1605 %\item\pf{bframe}\\
1606 %The \pf{bframe} style has blue frames on the slide in which text is
1607 %positioned. The style is contributed by Piskala Upendran.\\
1608 %\styleexample{bframe}
1609 %\item\pf{horatio}\\
1610 %The \pf{horatio} style has been contributed by Michael Lundholm and
1611 %is a more conservative blue style.\\
1612 %\styleexample{horatio}
1613 %\item\pf{paintings}\\
1614 %This is a simple style without a table of contents on slides. It has
1615 %been contributed by Thomas Koepsell and provides 10 different
1616 %palettes. The colors used in the palettes are drawn from famous
1617 %paintings.\footnote{The style defines a color \texttt{pdcolor7}
1618 %which is not used in the style but comes from the same painting and
1619 %complements the other colors. It can be used, for example, to
1620 %highlight text against the main background color.} If you are
1621 %interested, open the style file to read which paintings have been
1622 %used. The available palettes are: \texttt{Syndics} (the default),
1623 %\texttt{Skater}, \texttt{GoldenGate}, \texttt{Lamentation},
1624 %\texttt{HolyWood}, \texttt{Europa}, \texttt{Moitessier},
1625 %\texttt{MayThird}, \texttt{PearlEarring} and \texttt{Charon} (all
1626 %case sensitive). Below is a sample of the \texttt{Syndics}
1627 %palette.\\
1628 %\styleexample{paintings}
1629 %\item\pf{klope}\\
1630 %The \pf{klope} style implements a horizontal table of contents that
1631 %only lists the sections. The style is available in the following
1632 %palettes: \texttt{Spring}, \texttt{PastelFlower}, \texttt{BlueWater}
1633 %and \texttt{BlackWhite}. The \texttt{Spring} palette is the default
1634 %and you can see a sample of that below.\\
1635 %\styleexample{klope}
1636 %\item\pf{jefka}\\
1637 %The \pf{jefka} style comes with four palettes: \texttt{brown} (the
1638 %default), \texttt{seagreen}, \texttt{blue} and \texttt{white}. Below
1639 %you see a sample of the \texttt{brown} palette.\\
1640 %\styleexample{jefka}
1641 %\item\pf{pazik}\\
1642 %This style is available in two palettes: \texttt{red} and
1643 %\texttt{brown}. Below is a sample of the default \texttt{red}
1644 %palette.\\
1645 %\styleexample{pazik}
1646 %\end{description}
1647 %
1648 %\section{Compiling your presentation}\label{sec:compiling}
1649 %\subsection{Dependencies}\label{sec:dependencies}
1650 %In table \ref{tab:dependencies} is a list of packages that
1651 %\pf{powerdot} uses to perform specific tasks. Dependencies of
1652 %packages in this table are not listed. In the table, `required'
1653 %means that you should have a version \emph{at least} as new as
1654 %listed and `tested' means that \pf{powerdot} was tested with this
1655 %version, but that it could equally well work with an older or newer
1656 %version than the one listed in the table. So, when trying to solve
1657 %an error, first concentrate on solving version issues for the
1658 %`required' packages. To find out which version of a package you are
1659 %currently using, put |\listfiles| on the first line of your
1660 %document, run it with \LaTeX, open the |.log| file and read the file
1661 %list (see a \LaTeX\ manual for more information). If you need to
1662 %update a package, you can get it from CTAN \cite{CTAN}.
1663 %\begin{table}[htb]
1664 %\centering
1665 %\begin{tabular}{e}
1666 %Package/file & Version & Date & Required/tested\\\hline
1667 %\pf{xkeyval} \cite{xkeyval} & 2.5c & 2005/07/10 & required\\
1668 %\texttt{pstricks.sty} \cite{PSTricksWeb,PSTricks} & 0.60 & 2013/12/12 & required\\
1669 %\pf{xcolor} \cite{xcolor} & 1.11 & 2004/05/09 & required\\
1670 %\pf{enumitem} \cite{enumitem} & 3.5.2 & 2011/09/28 & required\\
1671 %\pf{article} class & 1.4f & 2004/02/16 & tested\\
1672 %\pf{geometry} \cite{geometry} & 3.2 & 2002/07/08 & tested\\
1673 %\pf{hyperref} \cite{hyperref} & 6.74m & 2003/11/30 & tested\\
1674 %\pf{graphicx} \cite{graphics} & 1.1a & 2017/06/01 & required\\
1675 %\pf{verbatim} & 1.5q & 2003/08/22 & tested
1676 %\end{tabular}
1677 %\caption{Dependencies}\label{tab:dependencies}
1678 %\end{table}
1679 %
1680 %\subsection{Creating and viewing output}\label{sec:creation}
1681 %To compile your presentation, run it with \LaTeX. The DVI that is
1682 %produced this way can be viewed with MiK\TeX's DVI viewer
1683 %YAP.\footnote{Unless you are using \pf{pstricks-add} which distorts
1684 %the coordinate system in DVI.} Unfortunately, xdvi and kdvi (kile)
1685 %do not support all PostScript specials and hence these will display
1686 %the presentation incorrectly. If your DVI viewer does support
1687 %this, make sure that your DVI display settings match that of the
1688 %presentation. In case you are using the |screen| paper, you should
1689 %set the DVI display setting to using the letter paper format. If
1690 %your DVI viewer allows for custom paper formats, use 8.25 inch by 11
1691 %inch.
1692 %
1693 %Note that certain things that are produced with PostScript or PDF
1694 %techniques will not work in a DVI viewer. Examples are hiding of
1695 %material via postscript layers (as is done, for instance, by
1696 %|\pause|, see section~\ref{sec:overlays}) and hyperlinks, for
1697 %instance in the table of contents.
1698 %
1699 %If you want to produce a postscript document, run dvips over the DVI
1700 %\emph{without any particular command line options related to
1701 %orientation or paper size}. \pf{powerdot} will write information to
1702 %the DVI file that helps dvips and ps2pdf (ghostscript) to create a
1703 %proper document. If you have some reason that this does not work for
1704 %you and you want to specify the paper and orientation yourself, you
1705 %should use the |nopsheader| option that is described in
1706 %section~\ref{sec:setup}. The PostScript document could, for
1707 %instance, be used to put multiple slides on a page using the |psnup|
1708 %utility.
1709 %
1710 %To create a PDF document for your presentation, run ps2pdf over the
1711 %PS file created with dvips. Also here, you can \emph{leave out any
1712 %command line arguments related to paper size or orientation}. If
1713 %this is problematic for you somehow, use the |nopsheader| option as
1714 %before and specify the paper and orientation at each intermediate
1715 %step yourself.
1716 %
1717 %\section{Creating your own style}\label{sec:writestyle}
1718 %\subsection{General information}
1719 %Writing or customizing \pf{powerdot} styles is simple. If you want
1720 %to modify a style or build a new one, locate the style that you want
1721 %to use as basis in your \TeX\ tree (styles are named as
1722 %|powerdot-<style_name>.sty|), copy that and rename it as to avoid
1723 %license\footnote{The \LaTeX\ Public Project License requires
1724 %renaming files when modifying them, see
1725 %\url{http://www.latex-project.org/lppl}.} or naming conflicts. You
1726 %might want to install the new style in your local \TeX\ tree to be
1727 %able to access it from any place on your hard drive. See your
1728 %\LaTeX\ distribution for more information.
1729 %
1730 %Once that has been taken care of, we can start creating the style.
1731 %We strongly recommend to study a style file (for example,
1732 %|powerdot-default.sty|) while reading the remainder of this section
1733 %as it provides good examples for the content of this section.
1734 %
1735 %A style has several components. We describe these components below.
1736 %\begin{description}
1737 %\item\textbf{Identification and packages}\\
1738 %This identifies the package in the log of a presentation and loads
1739 %all required packages. The \pf{default} style contains something like:
1740 %\begin{example}
1741 % \NeedsTeXFormat{LaTeX2e}[1995/12/01]
1742 % \ProvidesPackage{powerdot-default}[2005/10/09 v1.2 default style (HA)]
1743 % \RequirePackage{pifont}
1744 %\end{example}
1745 %See for more information about these commands a \LaTeX\ manual, for
1746 %instance \cite{companion}.
1747 %\item\textbf{Palette or color definitions}\\
1748 %This section contains the definitions of palettes or colors that you
1749 %want to use in the style. \pf{powerdot} uses \pf{xcolor} (via
1750 %\pf{pstricks}). Hence, for more information about colors, see the
1751 %\pf{xcolor} documentation. We will discuss palettes in more detail
1752 %in section~\ref{sec:defpals}.
1753 %\item\textbf{Template definitions}\\
1754 %We will come back to this in sections~\ref{sec:deftemps}
1755 %to~\ref{sec:defbg}.
1756 %\item\textbf{Custom declarations}\\
1757 %These can include anything that you want to be part of the style.
1758 %The \pf{default} style, for instance, includes definitions for the labels
1759 %in list environments like |itemize| and some initializations for
1760 %lists in general (done with |\pdsetup|, see
1761 %section~\ref{sec:pdsetup}). This part could also include some
1762 %customizations as described in section~\ref{sec:specialtemps}.
1763 %\item\textbf{Font initializations}\\
1764 %This initializes font definitions (which can be done by
1765 %loading a package like \pf{helvet}).
1766 %\end{description}
1767 %
1768 %\subsection{Defining palettes}\label{sec:defpals}
1769 %We will be defining templates formally in
1770 %section~\ref{sec:deftemps}. For now, it's enough to have the general
1771 %idea that a template controls the design of a slide. Palettes are
1772 %sets of colors that color a template or design. A palette does not
1773 %change the overall design of a template.
1774 %
1775 %\DescribeMacro{\pddefinepalettes}
1776 %The following command can be used to define palettes for your style.
1777 %\begin{command}
1778 % `\cs{pddefinepalettes}\marg{name1}\marg{cmds1}\dots'
1779 %\end{command}
1780 %This macro takes \emph{any} even number of mandatory arguments with
1781 %a minimum of two. For every \meta{name}, a set of \meta{commands}
1782 %can be given which define the palette with name \meta{name}. These
1783 %commands can define colors with names |pdcolor1|, |pdcolor2|,
1784 %etcetera. These colors can be used when designing the template (see
1785 %section~\ref{sec:deftemps}). |pdcolor1| will always be used as text
1786 %color.
1787 %
1788 %The user can access these palettes via the |palette| key for the
1789 %|\pdsetup| command (see section~\ref{sec:pdsetup}). If the user does
1790 %not specify a palette, the first palette defined when compiling the
1791 %presentation, will be used. Here is an example for defining 2
1792 %palettes.
1793 %\begin{example}
1794 % \pddefinepalettes{reds}{
1795 % \definecolor{pdcolor1}{rgb}{1,0,0}
1796 % \definecolor{pdcolor2}{rgb}{1,.1,0}
1797 % \definecolor{pdcolor3}{rgb}{1,.2,0}
1798 % }{greens}{
1799 % \definecolor{pdcolor1}{rgb}{0,1,0}
1800 % \definecolor{pdcolor2}{rgb}{.1,1,0}
1801 % \definecolor{pdcolor3}{rgb}{.2,1,0}
1802 % }
1803 %\end{example}
1804 %In this example, the |reds| palette is the default one. For more
1805 %information about |\definecolor|, see the documentation of the
1806 %\pf{xcolor} package \cite{xcolor}.
1807 %
1808 %Notice that it is not necessary to use the names |pdcolor2|,
1809 %|pdcolor3| etcetera as color names. But if these colors are defined,
1810 %\pf{powerdot} will use them, for instance, in the random dots
1811 %feature (see section~\ref{sec:glopts}). The flexibility adds extra
1812 %possibilities in setting up templates and palettes. See for an
1813 %example of its use, the \pf{klope} style.
1814 %
1815 %\subsection{Defining templates}\label{sec:deftemps}
1816 %We start off with a definition of what a template is. A template is
1817 %a collection of settings for slide components together with custom
1818 %definitions, which controls the visual appearance of a slide. A
1819 %style can contain multiple templates.
1820 %
1821 %\begin{command}
1822 % `\cs{pddefinetemplate}\oarg{basis}\marg{name}\marg{options}\marg{commands}'
1823 %\end{command}
1824 %\DescribeMacro{\pddefinetemplate}
1825 %This defines the environment \meta{name} to produce a slide with
1826 %characteristics determined by \meta{basis}, \meta{options} and
1827 %\meta{commands}. We will discuss these elements in more detail
1828 %in the coming sections.
1829 %
1830 %If you want to create several templates that differ only slightly
1831 %from each other, define a \meta{basis} template, and then use it to
1832 %define other templates. All \meta{options} and \meta{commands} for
1833 %the new template \meta{name} will be appended to the existing list
1834 %of \meta{options} and \meta{commands} from the \meta{basis}
1835 %template.
1836 %
1837 %Make sure you choose a \emph{proper} name for the template, and
1838 %avoid redefining existing templates or environments. \pf{powerdot}
1839 %defines |pauseslide|, |note| and |emptyslide| internally, so you
1840 %shouldn't use these names unless you know what you're doing.
1841 %Furthermore, each style needs to define at least the templates
1842 %|slide| and |titleslide|. The |titleslide| environment will be used
1843 %to create the title slide and |slide| will (by default) also be used
1844 %to create section slides. Titles and sections are a bit special in
1845 %the way they use the \meta{options} and will be discussed in more
1846 %detail in section~\ref{sec:specialtemps}.
1847 %
1848 %\subsection{Controlling setup}
1849 %\DescribeOption{ifsetup}
1850 %The \meta{options} (keys) are described in the following sections.
1851 %You can control how these options apply to the various setups by
1852 %using the |ifsetup| key. Any key appearing before the first
1853 %|ifsetup| declaration in \meta{options} will apply to every possible
1854 %setup. Once the |ifsetup| key is used, then all subsequent key
1855 %declarations will apply \textit{only} to the setups declared in the
1856 %|ifsetup| key. The |ifsetup| key can be used multiple times.
1857 %
1858 %By possible setups, we mean the allowed values of the |mode|,
1859 %|paper|, |orient|, and |display| keys that are described in
1860 %section~\ref{sec:classopts}. If a value (or values!) for any of
1861 %these four keys is not specified in a |ifsetup| declaration, then
1862 %all subsequent key declarations will apply to any layout of that
1863 %type. Consider the following as an example.
1864 %\begin{example}[numbers=left,numberstyle=\tiny\ttfamily,%
1865 % escapeinside=`',numbersep=1em,xleftmargin=1em]
1866 % ...
1867 % textpos={.2\slidewidth,.3\slideheight},%
1868 % ifsetup={portrait,screen},%
1869 % textpos={.3\slidewidth,.2\slideheight}%
1870 % ...
1871 % ifsetup=landscape,%
1872 % ...
1873 % ifsetup,
1874 % ...
1875 %\end{example}
1876 %Assuming there was no |ifsetup| declaration before the first
1877 %|textpos| declaration, this first |textpos| will apply to every
1878 %possible setup. However, for the screen format in portrait
1879 %orientation, the next |textpos| declaration will be used. In fact,
1880 %all declarations that appear until we switch to the next |ifsetup|
1881 %(which specifies all paper sorts and only landscape orientation)
1882 %will be used in the portrait screen layout. All keys after the next
1883 %|ifsetup| declaration will be used in landscape orientation,
1884 %\emph{with any paper, mode and display}. If, after declaring some
1885 %specializations, you want to switch back to settings that apply to
1886 %all possible setups, set |ifsetup| to empty as is done in the
1887 %example. All subsequent declarations will then again be applied
1888 %under any setup.
1889 %
1890 %The following command is a stand-alone implementation of the
1891 %mechanism described above. It allows you to control the setup
1892 %outside the \meta{options} argument of the |\pddefinetemplate|
1893 %command.
1894 %\begin{command}
1895 % `\cs{pdifsetup}\marg{desired}\marg{true}\marg{false}'
1896 %\end{command}
1897 %\DescribeMacro{\pdifsetup}
1898 %This macro executes \meta{true} when the setup that the user chose
1899 %matches with the \meta{desired} setup, \meta{false} in all other cases.
1900 %For instance, if the user has chosen landscape, then
1901 %\begin{example}
1902 % \pdifsetup{landscape}{yes}{no}
1903 %\end{example}
1904 %will typeset |yes|. If the user would have chosen portrait instead,
1905 %then |no| would have been typeset.
1906 %
1907 %This macro can be used to check setup requests from the user and,
1908 %for instance, generate an error if a certain setup is not supported
1909 %by your style. \pf{powerdot} provides one predefined error message
1910 %which can be used in one of the first lines of your style.
1911 %\begin{command}
1912 % `\cs{pd@noportrait}'
1913 %\end{command}
1914 %\DescribeMacro{\pd@noportrait}
1915 %This macro generates an error when the user requests portrait
1916 %orientation. Notice that the handout mode only works in portrait
1917 %orientation. This macro takes that into account and doesn't generate
1918 %an error in the case that the user requested a handout.
1919 %
1920 %\subsection{Main components}\label{sec:maincomps}
1921 %The \meta{options} control several key components of a slide. Every
1922 %component has several properties. A key that can be used in the
1923 %\meta{options} argument is the name of the component postfixed by
1924 %its property that you want to control.
1925 %
1926 %The components |title|, |text|, |toc|, |stoc| and |ntoc| have
1927 %properties |hook|, |pos|, |width| and |font|. Additionally, the
1928 %|text| component has a |height| property. The components |lf|, |cf| and
1929 %|rf| have properties |hook|, |pos|, |temp| and |font|. Hence,
1930 %examples of valid keys are |titlefont|, |tocpos| and |lftemp|. All
1931 %components and properties will be discussed below.
1932 %
1933 %Here is an overview of the components that can be controlled from
1934 %the \meta{options} argument in |\pddefinetemplate|.
1935 %\begin{description}
1936 %\item\DescribeOption{title-}\option{title-}\\
1937 %The slide title.
1938 %\item\DescribeOption{text-}\option{text-}\\
1939 %The main text box on the slide.
1940 %\item\DescribeOption{toc-}\option{toc-}\\
1941 %The (full) table of contents on a slide containing sections and
1942 %slides.
1943 %\item\DescribeOption{stoc-}\option{stoc-}\\
1944 %This is a table of contents containing only the sections. See also
1945 %|ntoc| below.
1946 %\item\DescribeOption{ntoc-}\option{ntoc-}\\
1947 %This is a table of contents containing only the entries for the
1948 %active section. Together with |stoc|, this can be used to create a
1949 %split table of contents. In a particular template, one would usually
1950 %have a |toc|, a combination of |stoc| and |ntoc| or no table of
1951 %contents at all.
1952 %\item\DescribeOptions{lf-,cf-,rf-}\option{lf-,cf-,rf-}\\
1953 %The left, center and right footers.
1954 %\end{description}
1955 %
1956 %Notice that all positioning of components described above will be
1957 %done with |\rput| from \pf{pstricks} \cite{PSTricksWeb,PSTricks}
1958 %internally. See the \pf{pstricks} documentation for more information
1959 %about this command. It should also be noted that all components
1960 %(except |lf|, |cf| and |rf|) put their content in a |minipage|
1961 %environment.
1962 %
1963 %Now we list all properties of the components listed above and
1964 %describe what they mean. Remember that keys are formed by combining
1965 %a component name and a property.
1966 %
1967 %\begin{description}
1968 %\item\DescribeOption{-hook}\option{-hook}\\
1969 %This option defines the |\rput| hook that will be used when
1970 %positioning the item. This can be |tl|, |t|, |tr|, |r|, |Br|, |br|,
1971 %|b|, |bl|, |Bl|, |l|, |B| and |c|. See the \pf{pstricks}
1972 %documentation for more information.
1973 %\item\DescribeOption{-pos}\option{-pos}\\
1974 %This defines the position of the |hook| on the paper. The lower left
1975 %corner of the paper is given by the point |{0,0}| and the upper right
1976 %corner by the point |{\slidewidth,\slideheight}|. So if you want to
1977 %position the main text box at 20\% from the left edge and 30\% from
1978 %the top edge of the paper, you have to do the following.
1979 %\begin{example}
1980 % textpos={.2\slidewidth,.7\slideheight}
1981 %\end{example}
1982 %If the position of any component has not been specified, this
1983 %component will not be placed on the slide. This gives an opportunity
1984 %to design slides without footers or table of contents, for instance.
1985 %\item\DescribeOption{-width}\option{-width}\\
1986 %The width of the component. All component positioned by
1987 %\pf{powerdot} will be put in a surrounding |minipage| environment.
1988 %The |width| property determines the width of the |minipage|. Example:
1989 %\begin{example}
1990 % textwidth=.7\slidewidth
1991 %\end{example}
1992 %This property does not exist for the |lf|, |cf| and |rf| components.
1993 %\item\DescribeOption{-height}\option{-height}\\
1994 %This option is only available for the |text| component. In other
1995 %words, for this property, there is only one key, namely
1996 %|textheight|. This can be used to specify the height of the
1997 %|minipage| used for the main text. This does not imply that users
1998 %are restricted to this length or that \pf{powerdot} does automatic
1999 %slide breaking. This height is only used for vertical alignments of
2000 %material, for instance by footnotes. The preset value is
2001 %|\slideheight|.
2002 %\item\DescribeOption{-font}\option{-font}\\
2003 %This will be inserted just before the text that is about to be
2004 %typeset. This can be used to declare deviations from the main text
2005 %font and color. It can be a font declaration, like
2006 %|\large\bfseries|, but can also contain other things like
2007 %|\color{red}| or |\raggedright|.
2008 %\item\DescribeOption{-temp}\option{-temp}\\
2009 %This property is only available for the footers (|lf|, |cf| and |rf|) and
2010 %can be used to change the template of the footers. This means that
2011 %you can, for instance, add content to the footer, besides the
2012 %content specified by the user. The default declaration by
2013 %\pf{powerdot} is the following.
2014 %\begin{example}
2015 % rftemp=\pd@@rf\ifx\pd@@rf\@empty
2016 % \else\ifx\theslide\@empty\else\ -- \fi\fi\theslide
2017 %\end{example}
2018 %Here |\pd@@rf| will contain the content of the right footer defined
2019 %by the user via the |\pdsetup| command. Similarly, |\pd@@lf|
2020 %contains the content of the left footer. The above declaration
2021 %checks whether the footer and |\theslide| are both non-empty and if
2022 %so, it inserts | -- | to separate both.
2023 %\item\DescribeOption{-orient}\option{-orient}\\
2024 %This property is only available for the |toc|, |stoc| and |ntoc|
2025 %components. This property can be |h| or |v| and determines the
2026 %orientation of the table of contents. The preset is |v|. See
2027 %also section~\ref{sec:slidetoc} for more information about the
2028 %construction of the table of contents.
2029 %\end{description}
2030 %
2031 %\subsection{Slide toc}\label{sec:slidetoc}
2032 %The small table of contents that is placed on slides can be
2033 %controlled by four macros and several options.
2034 %
2035 %\DescribeMacro{\pd@tocslide}
2036 %\DescribeMacro{\pd@tocsection}
2037 %These macros take one argument. When building the table of contents,
2038 %\pf{powerdot} first passes the content through |\pd@tocslide| or
2039 %|\pd@tocsection|, depending on the type of entry that it is building
2040 %at that moment. You could, for instance, do
2041 %\begin{example}
2042 % \def\pd@tocslide#1{$\bullet$\ #1}
2043 % \def\pd@tocsection#1{#1}
2044 %\end{example}
2045 %which will prefix all normal entries (not the sections) with a
2046 %bullet. By default, these two macros are defined to just pass on
2047 %their argument.
2048 %
2049 %\DescribeMacro{\pd@tocdisplay}
2050 %\DescribeMacro{\pd@tochighlight}
2051 %These two macros also take one argument. After processing an entry
2052 %with the command |\pd@tocslide| or |\pd@tocsection|, \pf{powerdot}
2053 %continues building the entry by passing it through |\pd@tocdisplay|,
2054 %when the entry needs to be displayed only, or |\pd@tochighlight|,
2055 %when the entry needs to be highlighted. These macros are a little
2056 %more involved and take care of putting the content in the proper
2057 %font and color in a |minipage|. Further, |\pd@tochighlight| also
2058 %puts a box around the item.
2059 %
2060 %Notice, that by default, both the separate table of contents entries
2061 %as well as the table of contents as a whole are typeset in
2062 %|minipage| environments by these macros, in case the table of
2063 %contents is vertical. The |-width| properties then determines the
2064 %width of the table of contents and, together with |tocsecindent| and
2065 %|tocslideindent| (see below) the width of the individual entries. If
2066 %it is horizontal, only the separate entries will be in |minipage|s
2067 %and the table of contents itself not and the |-width| properties
2068 %determine only the width of the individual entries (together with
2069 %|tocsecindent| and |tocslideindent|).
2070 %
2071 %Several aspects of the process of generating the table of contents
2072 %can be controlled via the keys that are available in the
2073 %|\pddefinetemplate| command that will be described below. If these
2074 %keys do not provide enough handles to do what you want, you might
2075 %need to have a look at the two macros in the source and decide to
2076 %rewrite them in your style as to fit your needs. An example can be
2077 %found in the \pf{fyma} style.
2078 %
2079 %\begin{description}
2080 %\item\DescribeOption{tocfrsep}\option{tocfrsep}\\
2081 %This length is the distance between the box around the content
2082 %created by the |minipage| and the highlight frame box created by
2083 %|\pd@tochighlight|. Preset: |0.5mm|.
2084 %\item\DescribeOption{tocsecsep}\option{tocsecsep}\\
2085 %The distance inserted before a section (unless it is the
2086 %first element in the table of contents). Preset: |2ex|.
2087 %Notice that if the orientation of the table of contents is set to
2088 %vertical, this length creates a vertical skip, otherwise, it creates
2089 %a horizontal skip.
2090 %\item\DescribeOption{tocslidesep}\option{tocslidesep}\\
2091 %The distance inserted before other entries (unless it is the
2092 %first element in the table of contents). Preset: |0ex|. Like
2093 %|tocsecsep|, the effect of this length depends on the orientation of
2094 %the table of contents.
2095 %\item\DescribeOption{tocsecindent}\option{tocsecindent}\\
2096 %The horizontal space left to a section entry. Preset: |0pt|.
2097 %\item\DescribeOption{tocslideindent}\option{tocslideindent}\\
2098 %The horizontal space left to a slide entry. The horizontal skip will
2099 %not be inserted left to slide entries that appear before the first
2100 %section. Preset: |0pt|.
2101 %\item\DescribeOption{tocsecm}\option{tocsecm}\\
2102 %This is inserted just before typesetting a section. This can be used
2103 %to mark a section, for instance with a line as in the \pf{default}
2104 %style. Preset: empty.
2105 %\item\DescribeOption{toctcolor}\option{toctcolor}\\
2106 %This is the text color used for non-highlighted elements in the
2107 %table of contents. Preset: |black|.
2108 %\item\DescribeOption{tochltcolor}\option{tochltcolor}\\
2109 %This is the text color used for highlighted elements in the table of
2110 %contents. Preset: |white|.
2111 %\item\DescribeOption{tochlcolor}\option{tochlcolor}\\
2112 %This is the color used for the frame behind highlighted elements.
2113 %Preset: |black|.
2114 %\end{description}
2115 %
2116 %\subsection{Miscellaneous options}\label{sec:miscoptions}
2117 %There are some options that fall outside of the scope of the previous
2118 %sections. These will be discussed here.
2119 %
2120 %\begin{description}
2121 %\item\DescribeOption{iacolor}\option{iacolor}\\
2122 %The |iacolor| option can be used to specify the color that is used
2123 %for inactive things, produced for instance by |\onslide|, |\pause|
2124 %(see section~\ref{sec:overlays}) and |\tableofcontents| (see
2125 %section~\ref{sec:tableofcontents}). As \pf{xcolor} is used by
2126 %\pf{powerdot}, one can use special notation here, like
2127 %\begin{example}
2128 % iacolor=black!20
2129 %\end{example}
2130 %The preset value for this key is |lightgray|.
2131 %\end{description}
2132 %
2133 %The following options control the digital clock (see
2134 %section~\ref{sec:classopts}). The clock is a form text field with
2135 %dynamic content, driven by a javascript via \pf{hyperref} text
2136 %fields. Some options for the clock work similarly as for, for
2137 %instance, the title component, but there are also special options.
2138 %\begin{description}
2139 %\item\DescribeOptions{clockhook,clockpos}\option{clockhook,clockpos}\\
2140 %These work in the same way as the |-hook| and |-pos| properties
2141 %discussed in section~\ref{sec:maincomps}. The preset value of
2142 %|clockhook| is |tr|.
2143 %\item\DescribeOptions{clockwidth,clockheight}\option{clockwidth,clockheight}\\
2144 %These control the width and height of the text field containing the
2145 %clock. Preset values come from \pf{hyperref} and are |3cm| and
2146 %|\baselineskip|, respectively.
2147 %\item\DescribeOption{clockcharsize}\option{clockcharsize}\\
2148 %The size of characters of the clock. Preset: |14pt|.
2149 %\item\DescribeOption{clockalign}\option{clockalign}\\
2150 %The alignment of the clock in the text field. |0| is left-aligned,
2151 %|1| is centered and |2| is right aligned. Preset is |2|.
2152 %\item\DescribeOption{clockcolor}\option{clockcolor}\\
2153 %This determines the text color of the clock. The value should be a
2154 %named color. The preset value is |black|.
2155 %\end{description}
2156 %
2157 %\subsection{Template presets}
2158 %Below, we have copied the preset setting for the keys described
2159 %above. These will be used if you didn't supply other input for these
2160 %keys in a particular template. If the preset value meets your
2161 %needs, you don't have to specify it again in your style.
2162 %\begin{example}
2163 % titlehook=Bl,titlepos=,titlewidth=\slidewidth,
2164 % titlefont=\raggedright,texthook=tl,textpos=,
2165 % textwidth=\slidewidth,textfont=\raggedright,
2166 % textheight=\slideheight,
2167 % tochook=tl,tocpos=,tocwidth=.2\slidewidth,
2168 % tocfont=\tiny\raggedright,
2169 % stochook=tl,stocpos=,stocwidth=.2\slidewidth,
2170 % stocfont=\tiny\raggedright,
2171 % ntochook=tl,ntocpos=,ntocwidth=.2\slidewidth,
2172 % ntocfont=\tiny\raggedright,
2173 % tocorient=v,stocorient=v,ntocorient=v,
2174 % tocfrsep=.5mm,tocsecsep=2ex,tocslidesep=0ex,
2175 % tocsecm=,toctcolor=black,tochlcolor=black,tochltcolor=white,
2176 % tocsecindent=0pt,tocslideindent=0pt,
2177 % lfhook=Bl,lfpos=,lffont=\scriptsize,lftemp=\pd@@lf,
2178 % cfhook=B,cfpos=,cffont=\scriptsize,cftemp=\pd@@cf,
2179 % rfhook=Br,rfpos=,rffont=\scriptsize,rftemp=\pd@@rf\ifx\pd@@rf
2180 % \@empty\else\ifx\theslide\@empty\else\ -- \fi\fi\theslide,
2181 % iacolor=lightgray,
2182 % clockhook=tr,clockpos=,clockwidth=3cm,clockheight=\baselineskip,
2183 % clockcharsize=14pt,clockalign=2,clockcolor=black
2184 %\end{example}
2185 %
2186 %\subsection{The background}\label{sec:defbg}
2187 %This leaves only one argument of the |\pddefinetemplate| macro
2188 %undiscussed. This is the \meta{commands} argument. This argument can
2189 %contain any code that you want to execute \textit{after} setting the
2190 %options and \textit{before} building the slide components like the
2191 %slide title, main text, and footers. This argument is designed to
2192 %contain declarations that will build the background of a template
2193 %using, for instance, \pf{pstricks}, but it can also hold other
2194 %commands you might need for building your template.
2195 %
2196 %Important to notice is that these commands may not create \TeX\
2197 %material as that might destroy the construction of the slide. So, if
2198 %you want to place the word `Hello' in the bottom left corner of the
2199 %slide, don't type `Hello', but make its width, height and depth
2200 %equal to zero, for instance by using \pf{pstricks}' |\rput|.
2201 %\begin{example}
2202 % \rput[bl](0,0){Hello}
2203 %\end{example}
2204 %
2205 %\subsection{Title slide, titles and sections}\label{sec:specialtemps}
2206 %As mentioned before, the style that you write needs to define at
2207 %least the templates |slide| and |titleslide|. The latter treats some
2208 %of the keys in a special way. Besides, a section slide is also done
2209 %in a special way.
2210 %
2211 %The title slide (made with |\maketitle|) puts the title with
2212 %author(s) and date in the main text box. This means that you have to
2213 %supply a position for the main text box (|textpos|). It will use the
2214 %main text font for the text (together with declarations in the
2215 %|textfont| key) for the author(s) and the date. But it will use the
2216 %declarations in |titlefont| for the title of the presentation. This
2217 %is done so that title and author(s) form a coherent block and to
2218 %make sure that long titles can push down the author(s) instead of
2219 %overwriting it.
2220 %
2221 %\DescribeMacro{\pd@slidetitle}
2222 %The |\pd@slidetitle| macro is used to typeset the slide title on
2223 %slides. This macro is comparable to for instance |\pd@tocslide|. The
2224 %macro takes one argument which is the slide title in the right font
2225 %and formatting. By default, this macro just passes on the content
2226 %for typesetting, but you could redefine this macro so do something
2227 %with its input prior to typesetting it. An example is in the
2228 %\pf{fyma} style which underlines the title after putting it in a
2229 %|minipage| to support multi line titles.
2230 %
2231 %\DescribeMacros{\pd@title,\pd@sectiontitle}
2232 %These macros are similar to |\pd@slidetitle| and typeset the title
2233 %on the title slide and the title on section slides respectively. By
2234 %default, these also pass there argument (which is the presentation
2235 %title or section title), but these can be redefined to do something
2236 %with the input prior to typesetting it, just as |\pd@slidetitle|.
2237 %
2238 %\DescribeOptions{sectemp,widesectemp}
2239 %The |\section| command uses (by default) the |slide| environment and
2240 %puts the section title in the title box with font |titlefont|. If
2241 %you want to change the default use of the |slide| environment for
2242 %sections to, for instance, the |sectionslide| environment or any
2243 %other especially designed section template, change the section
2244 %template preset in your style, using
2245 %\begin{example}
2246 % \setkeys[pd]{section}{sectemp=sectionslide}
2247 %\end{example}
2248 %This means that if the user asks for |template=slide| in the
2249 %|\section| command, the |sectionslide| environment will be used
2250 %silently. To avoid surprises, |sectionslide| should preferably be
2251 %based on the |slide| environment.
2252 %
2253 %A similar option is available in case the user asks for
2254 %|template=wideslide|. One could for instance do the following.
2255 %\begin{example}
2256 % \setkeys[pd]{section}{widesectemp=sectionwideslide}
2257 %\end{example}
2258 %Whenever the user requests a |wideslide| to be used for a
2259 %|\section|, instead, the |sectionwideslide| environment will be
2260 %used. Other input to the |template| key by the user does not get a
2261 %special treatment.
2262 %
2263 %Notice that these keys are available in the |section| family of keys
2264 %and that you cannot use them in the |\pddefinetemplate| command.
2265 %
2266 %\subsection{Testing the style}\label{sec:styletest}
2267 %\pf{powerdot} has a test file that should test most of the style.
2268 %This test file can be produced by running \LaTeX\ over
2269 %|powerdot.dtx|. This generates |powerdot-styletest.tex| which will
2270 %help you with the testing job. Feel free to contact us when you
2271 %would like to contribute your style to \pf{powerdot}. See also
2272 %section~\ref{sec:questions}.
2273 %
2274 %\section{Using \LyX\ for presentations}\label{sec:lyx}
2275 %\LyX\ \cite{LyXWeb} is a WYSIWYM (What You See Is What You Mean)
2276 %document processor based on \LaTeX. It supports standard \LaTeX\
2277 %classes but needs special files, called layout files, in order to
2278 %support non-standard classes such as \pf{powerdot}.
2279 %
2280 %To start using \LyX\ for \pf{powerdot} presentations, copy the
2281 %layout file |powerdot.layout| to the \LyX\ layout directory. You can
2282 %find this file in the doc tree of your \LaTeX\ installation:
2283 %\url{texmf/doc/latex/powerdot}. If you can't find it there, download
2284 %it from \url{CTAN:/macros/latex/contrib/powerdot}. Once that is
2285 %done, reconfigure \LyX\ (\texttt{Edit\LyXarrow Reconfigure} and
2286 %restart \LyX\ afterwards). Now you can use the \pf{powerdot}
2287 %document class as any other supported class. Go to
2288 %\texttt{Layout\LyXarrow Document} and select \texttt{powerdot
2289 %presentation} as document class. For more information, see the \LyX\
2290 %documentation, which is accessible from the |Help| menu.
2291 %
2292 %\subsection{How to use the layout}
2293 %The \pf{powerdot} \LyX\ layout provides some environments\footnote{Don't
2294 %confuse these with \LaTeX\ environments.} which can be used in \LyX.
2295 %Some of these environments (for instance |Title| or |Itemize|) are
2296 %natural to use since they exist also in the standard document
2297 %classes such as \pf{article}. For more information on these standard
2298 %environments, see the \LyX\ documentation.
2299 %
2300 %This section will explain how to use the \pf{powerdot} specific
2301 %environments |Slide|, |WideSlide|, |EmptySlide| and |Note|. These
2302 %environments correspond to the \pf{powerdot} environments |slide|,
2303 %|emptyslide|, |wideslide| and |note|.
2304 %
2305 %We start with a simple example. The following \LaTeX\ code
2306 %\begin{example}
2307 % \begin{slide}{Slide title}
2308 % Slide content.
2309 % \end{slide}
2310 %\end{example}
2311 %can be obtained using the following \LyX\ environments. The right
2312 %column represents the text typed into the \LyX\ window and the left
2313 %column represents the environment applied to this text).
2314 %\begin{example}
2315 % Slide Slide title
2316 % Standard Slide content.
2317 % EndSlide
2318 %\end{example}
2319 %Some remarks concerning this example.
2320 %\begin{itemize}[leftmargin=0pt,itemsep=0pt,parsep=0pt]
2321 %\item You can use the environment menu (under the menu bar, top-left
2322 %corner) to change the environment applied to text.
2323 %\item The slide title should be typed on the line of the |Slide|
2324 %environment.
2325 %\item |EndSlide| finishes the slide and its line is left blank.
2326 %\end{itemize}
2327 %
2328 %In the \LyX\ window, the |Slide| environment (that is, the slide
2329 %title) is displayed in magenta, the |WideSlide| style in green, the
2330 %|EmptySlide| style in cyan and the |Note| style in red and hence
2331 %these are easily identifiable.
2332 %
2333 %Here is another example.
2334 %\begin{example}
2335 % \begin{slide}{First slide title}
2336 % The first slide.
2337 % \end{slide}
2338 % \begin{note}{First note title}
2339 % The first note, concerning slide 1.
2340 % \end{note}
2341 % \begin{slide}{Second slide title}
2342 % The second slide.
2343 % \end{slide}
2344 %\end{example}
2345 %This can be done in \LyX\ in the following way.
2346 %\begin{example}
2347 % Slide First slide title
2348 % Standard The first slide.
2349 % Note First note title
2350 % Standard The first note, concerning slide 1.
2351 % Slide Second slide title
2352 % Standard The second slide.
2353 % EndSlide
2354 %\end{example}
2355 %This example demonstrates that it is often sufficient to insert the
2356 %|EndSlide| style after the last slide or note only. Only when you
2357 %want certain material not to be part of a slide, you need to finish
2358 %the preceding slide manually using the |EndSlide| style. Example:
2359 %\begin{example}
2360 % Slide First slide title
2361 % Standard The first slide.
2362 % EndSlide
2363 % [ERT box with some material]
2364 % Slide Second slide title
2365 % ...
2366 %\end{example}
2367 %
2368 %Options can be passed to slide environments by using
2369 %\texttt{Insert\LyXarrow Short title} in front of the slide title.
2370 %The following example uses the |direct| method (see
2371 %section~\ref{sec:verbatim}) in the short title argument (delimited by
2372 %square brackets) to allow for a |lstlisting| environment (defined by
2373 %the \pf{listings} package) within the slide content.
2374 %\begin{example}
2375 % Slide [method=direct]Example of LaTeX source code
2376 % Standard Here's the \HelloWorld command:
2377 % [ERT box:
2378 % \lstset{language=[LaTeX]TeX}
2379 % \begin{lstlisting}
2380 % \newcommand{\HelloWorld}{Hello World!}
2381 % \end{lstlisting}
2382 % ]
2383 % EndSlide
2384 %\end{example}
2385 %Note that you are not obliged to use a |verbatim| environment to
2386 %type the |\HelloWord| text into the \LyX\ window because \LyX\
2387 %directly supports standard verbatim.\footnote{\LyX\ translates
2388 %special characters into their corresponding \LaTeX\ command. For
2389 %instance, the backslash character is translated into
2390 %\cs{textbackslash{}}. Resulting, the font is not the same as in true
2391 %verbatim and you might want to change that via the
2392 %\texttt{Layout\LyXarrow Character} dialog.} Consequently, the use of
2393 %the slide processing methods |direct| and |file| is not necessary
2394 %when you need standard verbatim, but it is necessary when doing more
2395 %advanced things, like in the example above.
2396 %
2397 %\subsection{Support of syntax}
2398 %This section lists options, commands and environments that are
2399 %supported through the \LyX\ interface directly, without using an ERT
2400 %box (\TeX-mode).
2401 %
2402 %All class options (see section~\ref{sec:classopts}) are supported
2403 %via the \texttt{Layout\LyXarrow Document} dialog (|Layout| pane).
2404 %Options for the |\pdsetup| command (see section~\ref{sec:setup})
2405 %should be specified in the |Preamble| pane of the
2406 %\texttt{Layout\LyXarrow Document} dialog.
2407 %
2408 %Table \ref{tab:lyxcommands} lists the \pf{powerdot} commands that
2409 %are supported in \LyX.
2410 %\begin{table}[htb]
2411 %\centering
2412 %\begin{tabular}{f}
2413 %Command & Method in \LyX\\\hline
2414 %\cs{title} & Use \texttt{Title} environment.\\
2415 %\cs{author} & Use \texttt{Author} environment.\\
2416 %\cs{date} & Use \texttt{Date} environment.\\
2417 %\cs{maketitle} & Managed directly by \LyX.\\
2418 %\cs{section} & Use the \texttt{Section} environment. Options to this
2419 %command (see section~\ref{sec:section}) can be specified using
2420 %\texttt{Insert\LyXarrow Short title} in front of the section title.\\
2421 %\cs{tableofcontents} & Use \texttt{Insert\LyXarrow Lists \&
2422 %TOC\LyXarrow Table of contents}. You will need an ERT box if you
2423 %want to use the optional argument, see below.
2424 %\end{tabular}
2425 %\caption{Supported \pf{powerdot} commands in \LyX}\label{tab:lyxcommands}
2426 %\end{table}
2427 %Table \ref{tab:lyxenvs} lists the \pf{powerdot} environments that,
2428 %besides the earlier discussed |slide|, |wideslide|, |note| and
2429 %|emptyslide| environments, are supported in \LyX.
2430 %\begin{table}[htb]
2431 %\centering
2432 %\begin{tabular}{f}
2433 %Environment & Method in \LyX\\\hline
2434 %\texttt{itemize} & Use \texttt{Itemize} and \texttt{ItemizeType1}
2435 %environments. The latter will create a list with |type=1| (see
2436 %section~\ref{sec:lists}).\\
2437 %\texttt{enumerate} & Use \texttt{Enumerate} and
2438 %\texttt{EnumerateType1} environments.\\
2439 %\texttt{thebibliography} & Use \texttt{Bibliography} environment.
2440 %\end{tabular}
2441 %\caption{Supported \pf{powerdot} environments in \LyX}\label{tab:lyxenvs}
2442 %\end{table}
2443 %Table \ref{tab:lyxERT} lists commands that can only be done by using
2444 %an ERT box (via \texttt{Insert\LyXarrow TeX}).
2445 %\begin{table}[ht]
2446 %\centering
2447 %\begin{tabular}{f}
2448 %Command & Method in \LyX\\\hline
2449 %\cs{and} & Within \texttt{Author} environment.\\
2450 %\cs{pause} & \\
2451 %\cs{item} & An ERT box is only required for the optional argument,
2452 %not mandatory for overlays specifications.\\
2453 %\cs{onslide} & And the versions \cs{onslide+} and \cs{onslide*}.\\
2454 %\cs{twocolumn} & \\
2455 %\cs{tableofcontents} & Only when using the optional argument.
2456 %\end{tabular}
2457 %\caption{\pf{powerdot} commands needing an ERT box in \LyX}\label{tab:lyxERT}
2458 %\end{table}
2459 %Note that you may use the clipboard in order to repeat often used
2460 %commands like |\pause|. Finally, table \ref{tab:lyxadd} lists
2461 %additional commands and environments that are supported by the layout.
2462 %\begin{table}[htb]
2463 %\centering
2464 %\begin{tabular}{f}
2465 %Env./Command & Method in \LyX\\\hline
2466 %\texttt{quote} & Use \texttt{Quote} environment.\\
2467 %\texttt{quotation} & Use \texttt{Quotation} environment.\\
2468 %\texttt{verse} & Use \texttt{Verse} environment.\\
2469 %\cs{caption} & Use \texttt{Caption} environment within standard
2470 %float environments.
2471 %\end{tabular}
2472 %\caption{Additional environments for \LyX}\label{tab:lyxadd}
2473 %\end{table}
2474 %
2475 %\subsection{Compiling with \LyX}
2476 %First of all, make sure that you have also read
2477 %section~\ref{sec:compiling}. Then, in order to get a proper
2478 %PostScript or PDF file, you have to set your \LyX\ document
2479 %properties depending on which paper and orientation you want. When
2480 %your \LyX\ document is open, go to the \texttt{Layout\LyXarrow
2481 %Document} dialog. In the \texttt{Layout} pane, put the |nopsheader|,
2482 %|orient| and |paper| keys as class options (see
2483 %section~\ref{sec:classopts} for a description). Then, go to the
2484 %|Paper| pane and select corresponding paper size and orientation
2485 %(you may choose |letter| paper in the case you set |paper=screen| in
2486 %the class options). Finally, go to the |View| (or
2487 %\texttt{File\LyXarrow Export}) menu and select your output
2488 %(PostScript or PDF).
2489 %
2490 %\subsection{Extending the layout}
2491 %If you have created a custom style (see section~\ref{sec:writestyle})
2492 %which defines custom templates, you may want to extend the layout
2493 %file\footnote{The LPPL dictates to rename a file if you modify it as
2494 %to avoid confusion.} so that these templates are also supported in
2495 %\LyX. The explanation below assumes that you have defined a template
2496 %called |sunnyslide|.
2497 %
2498 %To support this new template in \LyX, you have to use the following
2499 %command.
2500 %\begin{command}
2501 % `\cs{pddefinelyxtemplate}\meta{cs}\marg{template}'
2502 %\end{command}
2503 %\DescribeMacro{\pddefinelyxtemplate}
2504 %This will define the control sequence \meta{cs} such that it will
2505 %create a slide with template \meta{template} (which has been defined
2506 %using |\pddefinetemplate|. This new control sequence can be used in
2507 %the layout file as follows.
2508 %\begin{example}
2509 % # SunnySlide environment definition
2510 % Style SunnySlide
2511 % CopyStyle Slide
2512 % LatexName lyxend\lyxsunnyslide
2513 % Font
2514 % Color Yellow
2515 % EndFont
2516 % Preamble
2517 % \pddefinelyxtemplate\lyxsunnyslide{sunnyslide}
2518 % EndPreamble
2519 % End
2520 %\end{example}
2521 %Note that you must begin the |LatexName| field with |lyxend|. The
2522 %definition of the \LyX\ template has been inserted in between
2523 %|Preamble| and |EndPreamble| which assures that the new \LyX\
2524 %environment will work in every presentation. After modifying the
2525 %layout file, don't forget to restart \LyX. See for more information
2526 %about creating \LyX\ environments, the documentation of \LyX\ in the
2527 %|Help| menu.
2528 %
2529 %\section{Questions}\label{sec:questions}
2530 %\subsection{Frequently Asked Questions}\label{sec:FAQ}
2531 %This section is devoted to Frequently Asked Questions. Please read
2532 %it carefully; your problem might be solved by this section.
2533 %\begin{itemize}[leftmargin=0pt]
2534 %\question
2535 %Does \pf{powerdot} have example files? Where can I find them?
2536 %\answer
2537 %\pf{powerdot} comes with several examples that should be in the doc
2538 %tree of your \LaTeX\ installation. More precisely:
2539 %\url{texmf/doc/latex/powerdot}. If you can't find them there,
2540 %download them from \url{CTAN:/macros/latex/contrib/powerdot}
2541 %\cite{CTAN}.
2542 %\question I'm getting errors or unexpected output when compiling
2543 %the simplest example!
2544 %\answer Did you read section~\ref{sec:compiling}?
2545 %\question I made a typo in the slide code, ran the file, got an
2546 %error, corrected the typo and reran, but now get an error that
2547 %doesn't go away.
2548 %\answer Remove the |.bm| and |.toc| files and try again.
2549 %\question |\pause| does not work in the |align|\footnote{There are
2550 %several environments doing similar things as \texttt{align}. Another
2551 %example is the \texttt{split} environment, but more (often from the
2552 %\pf{amsmath} package) can cause similar trouble for \cs{pause}.}
2553 %environment.
2554 %\answer |align| does several tricky things, which make it impossible
2555 %to use |\pause|. Use |\onslide| instead. See
2556 %section~\ref{sec:onslide}.
2557 %\question My \pf{pstricks} nodes appear on all overlays. Also: color
2558 %doesn't seem to work with |\onslide|.
2559 %\answer Some PostScript tricks like nodes and color do not work with
2560 %|\onslide|. Use |\onslide*| instead. See an example below.
2561 %\begin{example}
2562 % \documentclass{powerdot}
2563 % \usepackage{pst-node}
2564 % \begin{document}
2565 % \begin{slide}{Color}
2566 % \onslide*{2}{\cnode(0,-5pt){2pt}{A}}
2567 % This is {\onslide*{2-}{\color{red}} red} text.
2568 % \onslide*{2}{\cnode(0,-5pt){2pt}{B}}
2569 % \onslide{2}{\ncline{A}{B}}
2570 % \end{slide}
2571 % \end{document}
2572 %\end{example}
2573 %\question Do I need to edit style files to change a style a bit?
2574 %\answer No, you do not need to edit any style file. You can change
2575 %any part of a certain style using the |\pddefinetemplate| and
2576 %|\pddefinepalettes| commands. Here is an example that removes the
2577 %left and right footers from the \pf{default} style, places the slide
2578 %number in the center footer and adds another palette.
2579 %\begin{example}
2580 % \documentclass{powerdot}
2581 % \pddefinetemplate[slide]{slide}{
2582 % lfpos=,rfpos=,cftemp=\theslide
2583 % }{}
2584 % \pddefinepalettes{mypalette}{
2585 % \definecolor{pdcolor1}{rgb}{.27,.31,.44}
2586 % \definecolor{pdcolor2}{rgb}{.85,.85,.92}
2587 % \definecolor{pdcolor3}{rgb}{.8,.75,.98}
2588 % }
2589 % \pdsetup{palette=mypalette}
2590 % \begin{document}
2591 % \begin{slide}{Title}
2592 % \end{slide}
2593 % \end{document}
2594 %\end{example}
2595 %See section~\ref{sec:writestyle} for more information about these
2596 %two commands.
2597 %\question Can I contribute to this project?
2598 %\answer
2599 %Certainly. If you find bugs\footnote{Make sure that you confirm that
2600 %the bug is really caused by \pf{powerdot} and not by another package
2601 %that you use.} or typos, please send a message to the mailinglist
2602 %(see section~\ref{sec:mailinglist}). If you have developed your own
2603 %style that is distinct from existing styles and would like to see it
2604 %included in \pf{powerdot}, please inform us by private e-mail and we
2605 %will consider your contribution. Notice that included contributions
2606 %will fall under the overall \pf{powerdot} license and copyright
2607 %notice, but that your name will be included in the documentation
2608 %when you make a contribution. This is done to guarantee that we can
2609 %adapt files if maintenance is needed.
2610 %\question Hyperlinks in the presentation seem off by 1 page.
2611 %\answer This might happen in particular PDF viewers when using
2612 %|paper=smartboard| in combination with continuous view. Use page
2613 %by page view instead.
2614 %\end{itemize}
2615 %
2616 %If your question has not been answered at this point, advance to the
2617 %next section to read where to find more answers.
2618 %
2619 %\subsection{Mailinglist}\label{sec:mailinglist}
2620 %\pf{powerdot} has a mailinglist from \url{freelists.org} and has its
2621 %website here:
2622 %\begin{center}
2623 %\url{http://www.freelists.org/list/powerdot}
2624 %\end{center}
2625 %There is a link to `List Archive'. Please search this archive before
2626 %posting a question. Your problem might already have been solved in
2627 %the past.
2628 %
2629 %If that is not the case, use the box on the page to type your e-mail
2630 %address, choose the action `Subscribe' and click `Go!'. Then follow
2631 %the instructions that arrive to you by e-mail. At a certain moment,
2632 %you can login for the first time using an authorization code sent to
2633 %you by e-mail. After logging in, you can create a password for
2634 %future sessions using the `Main Menu' button. The other buttons
2635 %provide you some info and options for your account.
2636 %
2637 %When you are all set, you can write to the list by sending an e-mail
2638 %to
2639 %\begin{center}
2640 %\url{powerdot [at] freelists [dot] org}
2641 %\end{center}
2642 %
2643 %When writing to the list, please keep in mind the following very
2644 %important issues.
2645 %\begin{enumerate}[leftmargin=0pt,itemsep=0pt,parsep=0pt]
2646 %\item We are volunteers!
2647 %\item Keep your questions related to \pf{powerdot}.
2648 %\item Always supply a \emph{minimal} example demonstrating your
2649 %problem.
2650 %\item Don't send big files over the list.
2651 %\end{enumerate}
2652 %
2653 %We hope you will enjoy this service.
2654 %
2655 %\section{Source code documentation}\label{sec:source}
2656 %In case you want regenerate the package files from the source or
2657 %want to have a look at the source code description, locate
2658 %|powerdot.dtx|, search in the file for |\OnlyDescription| and remove
2659 %that and do
2660 %\begin{example}
2661 % latex powerdot.dtx
2662 % latex powerdot.dtx
2663 % bibtex powerdot
2664 % makeindex -s gglo.ist -o powerdot.gls powerdot.glo
2665 % makeindex -s gind.ist -o powerdot.ind powerdot.idx
2666 % latex powerdot.dtx
2667 % latex powerdot.dtx
2668 %\end{example}
2669 %
2670 %\StopEventually{}
2671 %
2672 %\section{Implementation}\label{sec:imple}
2673 %\subsection{General construction}
2674 %This section explains the general idea of the class, how paper
2675 %dimensions are chosen and how slides are created. We start with the
2676 %paper.
2677 %
2678 %This class uses the same idea as \pf{prosper} and \pf{HA-prosper},
2679 %namely that we create a background with \pf{pstricks} and position
2680 %text on it using |\rput| and some |minipage| environments. This is
2681 %easier than writing a dedicated output routine that can handle all
2682 %the material, but doesn't break pages when we don't want that. So,
2683 %when starting to write the class, we first investigated how to deal
2684 %with landscape slides and paper dimensions.
2685 %
2686 %The job of making landscape slides can be done using \pf{geometry}.
2687 %The paper dimension was more of a problem. As \LaTeX\ doesn't have
2688 %the huge fonts that we need for presentations, we need to scale the
2689 %usual fonts somehow. This could be done by using unusual paper
2690 %dimensions (as \pf{beamer} does) and hence relying on ps2pdf to cut
2691 %off all the redundant material. But this doesn't produce a usable
2692 %DVI or PS file. Instead, it was chosen to use DVI magnification. The
2693 %entire slide is magnified by a factor of 2 and only the top left
2694 %quarter of the paper is used (but you will never notice that due to
2695 %the magnification). As we already decided to place all material in
2696 %|minipage|s using |\rput|, we didn't need the page anymore and it
2697 %was easiest to use \pf{geometry} to just remove the page margins
2698 %altogether so that the bottom left corner would be |(0,0)| and the
2699 %top right corner |(\slidewidth,\slideheight)|.
2700 %
2701 %One extra remark on the paper type is necessary. We found that most
2702 %common configurations of dvips use the |A4size| code when A4
2703 %dimensions are found. This code doesn't write an explicit PostScript
2704 %paper command in the PS document and hence programs using this PS
2705 %(like ps2pdf) don't know what paper to use and revert to the
2706 %default, which is letter paper in most cases. This, of course, is
2707 %something that we don't want and hence, \pf{powerdot} will write
2708 %these commands to the PS itself as to guarantee proper post
2709 %processing of the PS.
2710 %
2711 %Now that we made the decisions on how to create proper DVI, PS and
2712 %PDF output, the next task was to create an easy interface to
2713 %overlays. To avoid counting the overlays as is necessary with
2714 %\pf{prosper}, we implemented a system that first collects the entire
2715 %body of an environment in a macro which can be reused multiple
2716 %times. During execution of the body, the overlay commands like
2717 %|\onslide| will keep a record of the biggest number that they find
2718 %and that is the number of overlays to produce. Getting the body of
2719 %the environment is done by collecting all material up to the next
2720 %|\end| occurrence. If that control sequence has the proper argument
2721 %(namely the slide that we started with), then we stop scanning and
2722 %start processing the slide. With normal use, you will not notice
2723 %this, but when doing special tricks like hiding |\end{slide}| in a
2724 %macro, the process will fail as it relies on finding |\end{slide}|
2725 %in the input stream without doing expansions. Often a work around
2726 %can be found though. Have a look for instance at how |\section|
2727 %creates a slide.
2728 %
2729 %The next task was to provide a simple way to create templates. As
2730 %the class is based on the idea of having a background with some
2731 %material spread out over it, the template system follows this idea.
2732 %One argument can be used to create the background, the other
2733 %argument controls, via keys and options, several properties of the
2734 %material that should be placed. By adding an |ifsetup| key, full
2735 %control could be gained over the design of the template in every
2736 %possible setup chosen by the user.
2737 %
2738 %The final task for the class was to fill in all the `details'. All
2739 %the mechanisms were present, but sometimes they should not be
2740 %active. For instance, overlays should not be created in handout
2741 %mode. Other things to add to the class were counter protection on
2742 %overlays, handles to the layout of the slide number, footnotes, a
2743 %bibliography environment, empty slides, etcetera.
2744 %
2745 %We hope that this section has made clear a little bit what you will
2746 %be seeing when reading the next section with coding and why we chose
2747 %to do it this way.
2748 %
2749 % \subsection{The code}
2750 % \begin{macrocode}
2751 %<*powerdot>
2752 % \end{macrocode}
2753 % Identification.
2754 % \begin{macrocode}
2755 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
2756 \ProvidesClass{powerdot}
2757 [2021/05/19 v1.7 powerdot presentation class (HA)]
2758 % \end{macrocode}
2759 % Initializations.
2760 % \begin{macrocode}
2761 \newif\ifpd@overlay
2762 \newif\ifpd@section
2763 \newif\ifpd@ifsetup
2764 \newif\ifpd@display
2765 \newif\ifpd@pauseslide
2766 \newcounter{note}
2767 \newcounter{slide}
2768 \newcounter{pd@pause}
2769 \newcounter{pd@section}
2770 \newcounter{pd@overlay}
2771 \newcounter{pd@trivlist}
2772 \newcounter{pd@onslidedepth}
2773 \newbox\pd@tba
2774 \newbox\pd@tbb
2775 \newtoks\pd@body
2776 \newwrite\pd@bmout
2777 \newwrite\pd@tocout
2778 \newwrite\pd@vrbout
2779 \newlength\pd@frsep
2780 \newlength\pd@colsep
2781 \newlength\slidewidth
2782 \newlength\slideheight
2783 \let\pd@cursetup\@empty
2784 % \end{macrocode}
2785 % Setup options section.
2786 % \begin{macrocode}
2787 \RequirePackage{xkeyval}[2005/07/10]
2788 % \end{macrocode}
2789 % Orientation.
2790 % \begin{macrocode}
2791 \define@choicekey*[pd]{class}{orient}[\pd@tempa\pd@orient]{%
2792 landscape,portrait}{\XKV@addtolist@x\pd@cursetup\pd@tempa}
2793 % \end{macrocode}
2794 % Paper type.
2795 % \begin{macrocode}
2796 \define@choicekey*[pd]{class}{paper}[\pd@tempa\pd@paper]{%
2797 screen,a4paper,letterpaper,smartboard,169}{\XKV@addtolist@x\pd@cursetup\pd@tempa}
2798 % \end{macrocode}
2799 % Display type.
2800 % \begin{macrocode}
2801 \define@choicekey*[pd]{class}{display}[\pd@tempa\pd@display]{%
2802 slides,notes,slidesnotes}{\XKV@addtolist@x\pd@cursetup\pd@tempa}
2803 % \end{macrocode}
2804 % Mode.
2805 % \begin{macrocode}
2806 \define@choicekey*[pd]{class}{mode}[\pd@tempa\pd@mode]{%
2807 present,print,handout}{\XKV@addtolist@x\pd@cursetup\pd@tempa}
2808 % \end{macrocode}
2809 % Pause slide.
2810 % \begin{macrocode}
2811 \define@key[pd]{class}{pauseslide}[black]{%
2812 \pd@pauseslidetrue
2813 \def\pd@pauseslidecolor{#1}%
2814 }
2815 % \end{macrocode}
2816 % Some boolean keys.
2817 % \begin{macrocode}
2818 \define@boolkeys[pd]{class}[pd@@]{%
2819 nopsheader,hlentries,hlsections,nohandoutpagebreaks,nohandoutframes%
2820 }[true]
2821 % \end{macrocode}
2822 % Clock definitions. Contributed by Alexander Grahn.
2823 % \begin{macrocode}
2824 \define@boolkey[pd]{class}[pd@@]{clock}[true]{%
2825 \ifpd@@clock
2826 \newcount\pd@clockcnt
2827 \def\pd@startclock##1##2{%
2828 function pdshowtime(){%
2829 var pdtime=new Date();%
2830 this.getField("pdclock.\the\pd@clockcnt").value=util.printd("##1",pdtime);%
2831 this.dirty=false;%
2832 }%
2833 pdshowtime();%
2834 var pdclock_\the\pd@clockcnt=app.setInterval("pdshowtime()",##2);%
2835 }%
2836 \fi
2837 }
2838 % \end{macrocode}
2839 % The size and style to be used.
2840 % \begin{macrocode}
2841 \define@cmdkey[pd]{class}[pd@@]{size}{%
2842 \def\pd@tempa##1pt{##1}%
2843 \edef\pd@@size{\expandafter\pd@tempa\pd@@size}%
2844 }
2845 \define@cmdkey[pd]{class}[pd@@]{style}{}
2846 % \end{macrocode}
2847 % Some usual article options.
2848 % \begin{macrocode}
2849 \define@key[pd]{class}{fleqn}[]{\input{fleqn.clo}}
2850 \define@key[pd]{class}{leqno}[]{\input{leqno.clo}}
2851 % \end{macrocode}
2852 % Some presets, used in case the user doesn't supply enough input.
2853 % \begin{macrocode}
2854 \presetkeys[pd]{class}{%
2855 size=11pt,style=default,orient=landscape,paper=screen,%
2856 display=slides,hlentries=true,mode=present}{}
2857 % \end{macrocode}
2858 % Process all options.
2859 % \begin{macrocode}
2860 \ProcessOptionsX[pd]<class>\relax
2861 % \end{macrocode}
2862 % \begin{macro}{\pd@warn}
2863 % \begin{macro}{\pd@error}
2864 % \marg{msg}\\
2865 % Warnings and errors.
2866 % \begin{macrocode}
2867 \def\pd@warn{\ClassWarning{powerdot}}
2868 \def\pd@error#1{\ClassError{powerdot}{#1}\@ehd}
2869 % \end{macrocode}
2870 % \end{macro}
2871 % \end{macro}
2872 % \begin{macro}{\pd@noportrait}
2873 % The standard error for styles that do not support portrait orientation.
2874 % \begin{macrocode}
2875 \def\pd@noportrait{%
2876 \ifnum\pd@orient=\@ne\ifnum\pd@mode=2\else\pd@error{%
2877 `\pd@@style' style does not support portrait orientation
2878 }\fi\fi
2879 }
2880 % \end{macrocode}
2881 % \end{macro}
2882 % Check paper for print and handout mode. No |screen| allowed.
2883 % \begin{macrocode}
2884 \ifnum\pd@mode>0
2885 \ifnum\pd@paper=\z@
2886 % \end{macrocode}
2887 % Remove erroneous input.
2888 % \begin{macrocode}
2889 \@expandtwoargs\@removeelement{screen}\pd@cursetup\pd@cursetup
2890 % \end{macrocode}
2891 % Switch to a4paper.
2892 % \begin{macrocode}
2893 \XKV@addtolist@x\pd@cursetup{a4paper}
2894 \def\pd@paper{1}
2895 \pd@warn{you can't use `screen' format for this mode;
2896 \MessageBreak I've switched to a4paper
2897 }
2898 \fi
2899 \fi
2900 % \end{macrocode}
2901 % Check orientation for handout mode. No |landscape| allowed.
2902 % \begin{macrocode}
2903 \ifnum\pd@mode=2
2904 \newbox\pd@textbox
2905 \ifnum\pd@orient=\z@
2906 % \end{macrocode}
2907 % Remove erroneous input.
2908 % \begin{macrocode}
2909 \@expandtwoargs\@removeelement{landscape}\pd@cursetup\pd@cursetup
2910 % \end{macrocode}
2911 % Switch to portrait.
2912 % \begin{macrocode}
2913 \XKV@addtolist@x\pd@cursetup{portrait}
2914 \def\pd@orient{1}
2915 \pd@warn{you can't use `landscape' for handout mode;
2916 \MessageBreak I've switched to portrait
2917 }
2918 \fi
2919 \fi
2920 % \end{macrocode}
2921 % Pass paper size and orientation to \pf{geometry} package.
2922 % \begin{macrocode}
2923 \ifcase\pd@paper
2924 \def\pd@tempa{papersize={8.25in,11in}}
2925 \or
2926 \def\pd@tempa{papersize={210mm,297mm}}
2927 \or
2928 \def\pd@tempa{papersize={8.5in,11in}}
2929 \or
2930 \def\pd@tempa{papersize={900pt,1440pt}}
2931 \or
2932 \def\pd@tempa{papersize={594pt,1056pt}}
2933 \fi
2934 \ifnum\pd@orient=\z@
2935 \edef\pd@tempa{\pd@tempa,landscape}
2936 \else
2937 \edef\pd@tempa{\pd@tempa,portrait}
2938 \fi
2939 \PassOptionsToPackage\pd@tempa{geometry}
2940 % \end{macrocode}
2941 % Load class and packages.
2942 % \begin{macrocode}
2943 \LoadClass{article}
2944 % \end{macrocode}
2945 % Load font size definitions. Take into account that article has
2946 % loaded some already. This trick actually also allows bigger sizes like
2947 % 14pt or 20pt.
2948 % \begin{macrocode}
2949 \let\pd@tempa\newcommand
2950 \let\newcommand\def
2951 \input{size\pd@@size.clo}
2952 \let\newcommand\pd@tempa
2953 % \end{macrocode}
2954 % Remaining packages.
2955 % \begin{macrocode}
2956 \ifnum\pd@mode=2
2957 % \end{macrocode}
2958 % Handout mode.
2959 % \begin{macrocode}
2960 \RequirePackage[margin=2cm,includefoot]{geometry}
2961 \else
2962 % \end{macrocode}
2963 % Magnify DVI by factor 2, no margins at all.
2964 % The offset is to neutralize the |\vskip| inserted by TeX to
2965 % go from the top of the letters to the baseline and position chars
2966 % there. Here we don't want any offset and start at the bottom left
2967 % corner of the paper.
2968 % \begin{macrocode}
2969 \RequirePackage[mag=2000,margin=0pt,voffset=-\pd@@size pt]{geometry}
2970 \geometry{top=.5\paperheight}
2971 \fi
2972 % \end{macrocode}
2973 % Xe\TeX\ support. \pf{hyperref} should not set ps paper size as it doesn't do
2974 % landscape format we don't want it to redefine internals either.
2975 % \begin{macrocode}
2976 \RequirePackage{ifxetex}
2977 \ifxetex
2978 \RequirePackage[setpagesize=false,pdfstartview=Fit,
2979 pageanchor=false,bookmarks=false]{hyperref}[2009/12/14]
2980 \def\pd@pdftrans{%
2981 \@expandtwoargs\in@{,\pd@@trans,}{%
2982 ,Split,Blinds,Box,Wipe,Dissolve,Glitter,%
2983 Replace,Fly,Push,Cover,Uncover,Fade,}%
2984 \ifin@\else
2985 \pd@warn{Transition `\pd@@trans' might not be understood by
2986 your ps to pdf converter}%
2987 \fi
2988 \special{pdf:put @thispage %
2989 <</Trans<</S/\pd@@trans>>>>%
2990 }%
2991 }
2992 \def\pd@pdbookmark#1#2#3#4{%
2993 \pdfstringdef\pd@tempa{#4}%
2994 \special{pdf:outline
2995 \pd@pdb@@kmark{#1}%
2996 <<%
2997 /Title(\pd@tempa)%
2998 /A<<%
2999 /S/GoTo
3000 /D(slide.#3)%
3001 >>%
3002 >>%
3003 }%
3004 }
3005 \else
3006 \RequirePackage[setpagesize=false,dvips,pdfstartview=Fit,%
3007 pageanchor=false,bookmarks=false]{hyperref}
3008 \fi
3009 % \end{macrocode}
3010 % For some strange reason, it doesn't work to put the below in the above.
3011 % So we do it here as we don't want colored borders.
3012 % \begin{macrocode}
3013 \AtBeginDocument{\def\@pdfborder{0 0 0}}
3014 % \end{macrocode}
3015 % Necessary for inserting and creating graphics. Notice: \pf{pstricks}
3016 % needs to be loaded after \pf{graphicx} for proper |\scalebox| definition.
3017 % We make sure that \pf{xcolor} is loaded.
3018 % \begin{macrocode}
3019 \RequirePackage[nosetpagesize]{graphicx}[2017/06/01]
3020 \RequirePackage{pstricks}[2013/12/12]
3021 \RequirePackage{pst-ovl}
3022 \RequirePackage{xcolor}[2004/05/09]
3023 % \end{macrocode}
3024 % For lists and verbatim reading of slide content.
3025 % \changes{v1.5}{2014/01/01}{Fix for latest enumitem (20110915 hv)}
3026 % \begin{macrocode}
3027 \RequirePackage{enumitem}[2007/03/12]
3028 \let\orig@enumerate\enumerate
3029 \def\enumerate{\@ifnextchar[\enumerate@i{\enumerate@i[]}}
3030 \def\enumerate@i[#1]{\@ifnextchar[{\enumerate@ii[#1]}{\enumerate@ii[#1][]}}
3031 \def\enumerate@ii[#1][#2]{%
3032 \ifx\relax#1\relax\else\setkeys{enumitem}{#1}\fi
3033 \orig@enumerate[#2]%
3034 }
3035 \let\orig@itemize\itemize
3036 \def\itemize{\@ifnextchar[\itemize@i{\itemize@i[]}}
3037 \def\itemize@i[#1]{\@ifnextchar[{\itemize@ii[#1]}{\itemize@ii[#1][]}}
3038 \def\itemize@ii[#1][#2]{%
3039 \ifx\relax#1\relax\else\setkeys{enumitem}{#1}\fi
3040 \orig@itemize[#2]%
3041 }
3042 \let\orig@description\description
3043 \def\description{\@ifnextchar[\description@i{\description@i[]}}
3044 \def\description@i[#1]{\@ifnextchar[{\description@ii[#1]}{\description@ii[#1][]}}
3045 \def\description@ii[#1][#2]{%
3046 \ifx\relax#1\relax\else\setkeys{enumitem}{#1}\fi
3047 \orig@description[#2]%
3048 }
3049 \RequirePackage{verbatim}
3050 % \end{macrocode}
3051 % This is needed for the implementation of the clock.
3052 % \begin{macrocode}
3053 \ifpd@@clock
3054 \RequirePackage{pdfbase}
3055 \ExplSyntaxOn
3056 \let\pd@PdfAnnot\pbs_pdfannot:nnnn
3057 \let\pd@PdfLastAnn\pbs_pdflastann:
3058 \let\pd@AppendToFields\pbs_appendtofields:n
3059 \ExplSyntaxOff
3060 \fi
3061 % \end{macrocode}
3062 % Here are some basic properties of the slides.
3063 % \begin{macrocode}
3064 \ifnum\pd@mode<2
3065 \pagestyle{empty}
3066 \fi
3067 % \end{macrocode}
3068 % \changes{v1.1}{2005/09/19}{Avoid making black slide in print mode}
3069 % No black slide in handout or print mode.
3070 % \begin{macrocode}
3071 \ifnum\pd@mode>0
3072 \pd@pauseslidefalse
3073 \fi
3074 \setlength\parindent{0pt}
3075 % \end{macrocode}
3076 % Slide dimensions.
3077 % \begin{macrocode}
3078 \setlength\slidewidth{.5\paperwidth}
3079 \setlength\slideheight{.5\paperheight}
3080 % \end{macrocode}
3081 % Write landscape correction to the ps to avoid ps to be rotated by
3082 % 180 degrees.
3083 % \begin{macrocode}
3084 \ifnum\pd@orient=\z@
3085 \special{!/landplus90 true store}
3086 \fi
3087 % \end{macrocode}
3088 % Write paper dimensions.
3089 % The specials solve a config problem with ghostscript not picking up info from
3090 % ps, due to the fact that some paper formats defined in config.ps do
3091 % not write explicit ps commands. For instance, when dvips finds a4 paper dimensions,
3092 % it writes |%%Papersize: A4|, but no ps command. So ghostscript doesn't
3093 % find a paper size and takes it's default which could be |letter|
3094 % in fact.
3095 % Notice further that screen size is based on letter, but will be cropped in pdf.
3096 % \begin{macrocode}
3097 \ifpd@@nopsheader\else
3098 \special{papersize=\the\paperwidth,\the\paperheight}
3099 \ifcase\pd@paper
3100 \special{!%
3101 \@percentchar\@percentchar BeginPaperSize: letter
3102 ^^Jletter^^J\@percentchar\@percentchar EndPaperSize
3103 }
3104 \or
3105 \special{!%
3106 \@percentchar\@percentchar BeginPaperSize: a4
3107 ^^Ja4^^J\@percentchar\@percentchar EndPaperSize
3108 }
3109 \or
3110 \special{!%
3111 \@percentchar\@percentchar BeginPaperSize: letter
3112 ^^Jletter^^J\@percentchar\@percentchar EndPaperSize
3113 }
3114 \fi
3115 \fi
3116 % \end{macrocode}
3117 % Crop pdf for optimal screen ratio. This does not work in DVI or PS.
3118 % Note, the ps rotation takes care of orientation irrespective of
3119 % crop dimensions.
3120 % \begin{macrocode}
3121 \ifcase\pd@paper\def\@pdfpagescrop{0 0 594 842}\fi
3122 % \end{macrocode}
3123 % \pf{hyperref} writes this to the pdf.
3124 % \begin{macrocode}
3125 \def\@pdfcreator{LaTeX with powerdot class}
3126 % \end{macrocode}
3127 % Save the number of the last slide at the end of the document.
3128 % \begin{macrocode}
3129 \AtEndDocument{%
3130 \immediate\write\@auxout{\string\newlabel{lastslide}%
3131 {{}{\the\c@slide}{\relax}{}{}}}%
3132 }
3133 % \end{macrocode}
3134 % Set up options. |global| is for global only keys (so to be used only
3135 % in the preamble. |slide| is only for slides. |glslide| keys can be
3136 % used in both locations.
3137 % Create an interface to change the typesetting of the page numbers.
3138 % This follows the usual \LaTeX\ idea to change typesetting of numbers
3139 % via |\thepage| etcetera.
3140 % \begin{macrocode}
3141 \define@key[pd]{global}{theslide}{\def\theslide{#1}}
3142 \define@key[pd]{global}{thenote}{\def\thenote{#1}}
3143 % \end{macrocode}
3144 % Options to be used by \pf{enumitem}. These store input incrementally
3145 % in macros used by \pf{enumitem} to store options. By allowing options
3146 % to be added, both the style and the user can insert options.
3147 % \begin{macrocode}
3148 \define@key[pd]{global}{enumerate}{%
3149 \ifx\enit@@enum\@undefined
3150 \def\enit@@enum{#1}%
3151 \else
3152 \XKV@addtolist@n\enit@@enum{#1}%
3153 \fi
3154 }
3155 \define@key[pd]{global}{itemize}{%
3156 \ifx\enit@@item\@undefined
3157 \def\enit@@item{#1}%
3158 \else
3159 \XKV@addtolist@n\enit@@item{#1}%
3160 \fi
3161 }
3162 \define@key[pd]{global}{list}{%
3163 \ifx\enit@@list\@undefined
3164 \def\enit@@list{#1}%
3165 \else
3166 \XKV@addtolist@n\enit@@list{#1}%
3167 \fi
3168 }
3169 % \end{macrocode}
3170 % Counters that need overlay protection.
3171 % \begin{macrocode}
3172 \define@key[pd]{global}{counters}{%
3173 \XKV@addtolist@n\pd@@counters{#1}%
3174 }
3175 % \end{macrocode}
3176 % Initialize the counters list.
3177 % \begin{macrocode}
3178 \def\pd@@counters{table,figure,equation,footnote,mpfootnote}
3179 % \end{macrocode}
3180 % Clock format and refresh rate.
3181 % \begin{macrocode}
3182 \define@cmdkeys[pd]{global}[pd@@]{clockformat,clockrefresh}
3183 % \end{macrocode}
3184 % Footers and transition effect.
3185 % \begin{macrocode}
3186 \define@cmdkeys[pd]{glslide}[pd@@]{lf,cf,rf,trans}
3187 % \end{macrocode}
3188 % Palettes.
3189 % \begin{macrocode}
3190 \define@cmdkey[pd]{glslide}[pd@@]{palette}{%
3191 % \end{macrocode}
3192 % Check whether the chosen palette exists. If yes, execute it, set
3193 % |\default@color| (for equation numbers etcetera) and copy the
3194 % current color for |\twocolumn|.
3195 % \begin{macrocode}
3196 \ifnum\pd@mode<2
3197 \XKV@ifundefined{pd@pe@\pd@@palette @colors}{%
3198 \pd@error{palette `\pd@@palette' not defined}%
3199 }{%
3200 \@nameuse{pd@pe@\pd@@palette @colors}%
3201 \color{pdcolor1}%
3202 \let\default@color\current@color
3203 \let\pd@color\XC@current@color
3204 }%
3205 \pd@countcolors
3206 \fi
3207 }
3208 % \end{macrocode}
3209 % Slide processing method.
3210 % \begin{macrocode}
3211 \define@choicekey*[pd]{glslide}{method}[\pd@tempa\pd@method]{%
3212 normal,file,direct}{%
3213 \ifnum\pd@method=2
3214 \ifx\pd@textbox\@undefined\newbox\pd@textbox\fi
3215 \fi
3216 }
3217 % \end{macrocode}
3218 % Random dots. Load |random.tex| if necessary.
3219 % \begin{macrocode}
3220 \define@boolkey[pd]{glslide}[pd@@]{randomdots}[true]{%
3221 \ifx\randomi\@undefined
3222 \InputIfFileExists{random}{\newcount\pd@tempcnta}{%
3223 \global\pd@@randomdotsfalse
3224 \pd@warn{random.tex not found, random dots canceled}%
3225 }%
3226 \fi
3227 \ifnum\pd@mode=\tw@\global\pd@@randomdotsfalse\fi
3228 }
3229 % \end{macrocode}
3230 % Keys for random dots and the logo.
3231 % \begin{macrocode}
3232 \define@cmdkeys[pd]{glslide}[pd@@]{%
3233 dminsize,dmaxsize,dbright,dmindots,dmaxdots,dminwidth,dmaxwidth,%
3234 dminheight,dmaxheight,dprop,logohook,logopos%
3235 }
3236 \define@key[pd]{glslide}{logocmd}{%
3237 \ifx\pd@logobox\@undefined\newbox\pd@logobox\fi
3238 \sbox\pd@logobox{#1}%
3239 }
3240 % \end{macrocode}
3241 % Initialize some of the keys that we just defined.
3242 % \begin{macrocode}
3243 \setkeys[pd]{glslide,global}{%
3244 lf=,cf=,rf=,theslide=\arabic{slide} / \pageref*{lastslide},%
3245 thenote=note \arabic{note} of slide \arabic{slide},%
3246 trans=Replace,dminsize=5pt,dmaxsize=40pt,dminwidth=0pt,%
3247 dmaxwidth=\slidewidth,dminheight=0pt,dbright=60,%
3248 dmaxheight=\slideheight,dmindots=5,dmaxdots=40,dprop=,%
3249 logohook=tl,logopos=,logocmd=,method=normal,%
3250 clockformat=HH:MM:ss,clockrefresh=1000%
3251 %
3252 }
3253 % \end{macrocode}
3254 % \begin{macro}{\pdsetup}
3255 % The interface for users. Disable global keys |\AtBeginDocument|.
3256 % \begin{macrocode}
3257 \def\pdsetup{\setkeys[pd]{global,glslide}}
3258 \AtBeginDocument{%
3259 \disable@keys[pd]{global}{%
3260 theslide,thenote,enumerate,itemize,list,counters%
3261 }%
3262 }
3263 % \end{macrocode}
3264 % \end{macro}
3265 % Local keys: |toc| and |bm|.
3266 % \begin{macrocode}
3267 \define@cmdkeys[pd]{slide}[pd@@]{toc,bm}
3268 % \end{macrocode}
3269 % \begin{macro}{\pdifsetup}
3270 % \marg{desired}\marg{yes}\marg{no}\\
3271 % Execute \meta{yes} if the \meta{desired} setup matches with the
3272 % current (user) setup. Execute \meta{no} else. We first check whether
3273 % information in \meta{desired} is complete. If not, we amend it.
3274 % \begin{macrocode}
3275 \def\pdifsetup#1{%
3276 \edef\pd@tempb{#1}%
3277 \pd@pdifsetup\pd@tempb{landscape,portrait}%
3278 \pd@pdifsetup\pd@tempb{screen,a4paper,letterpaper,smartboard,169}%
3279 \pd@pdifsetup\pd@tempb{slides,notes,slidesnotes}%
3280 \pd@pdifsetup\pd@tempb{present,print,handout}%
3281 \pd@pdifs@tup\pd@tempb
3282 }
3283 % \end{macrocode}
3284 % \end{macro}
3285 % \begin{macro}{\pd@pdifsetup}
3286 % \meta{desired}\marg{check}\\
3287 % This macro checks whether at least one element of \meta{check}
3288 % occurs in the list in \meta{desired}. If not, the entire list in
3289 % \meta{check} is added to \meta{desired}, meaning that later on, any
3290 % setup for this type will satisfy the check.
3291 % \begin{macrocode}
3292 \def\pd@pdifsetup#1#2{%
3293 \in@true
3294 \@tempcnta\z@
3295 \XKV@for@n{#2}\pd@tempa{%
3296 \@expandtwoargs\in@{,\pd@tempa,}{,#1,}%
3297 \ifin@\advance\@tempcnta\@ne\fi
3298 }%
3299 \ifnum\@tempcnta=\z@\XKV@addtolist@x#1{#2}\fi
3300 }
3301 % \end{macrocode}
3302 % \end{macro}
3303 % \begin{macro}{\pd@pdifs@tup}
3304 % \marg{desired}\marg{yes}\marg{no}\\
3305 % Checks whether the \meta{desired} setup matches the current setup.
3306 % This macro is used internally when setting template keys. The idea
3307 % is to first correct the input in the |ifsetup| key by amending
3308 % specifications if they where not there. Then, when setting a
3309 % template key, we just check whether all elements of the current
3310 % setup appear in the \meta{desired} setup.
3311 % \begin{macrocode}
3312 \def\pd@pdifs@tup#1{%
3313 \in@true
3314 \XKV@whilist\pd@cursetup\pd@tempa\ifin@\fi{%
3315 \@expandtwoargs\in@{,\pd@tempa,}{,#1,}%
3316 }%
3317 \ifin@\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi
3318 }
3319 % \end{macrocode}
3320 % \end{macro}
3321 % Set up the template system.
3322 % First define all the options and presets available to create
3323 % templates. All options save their argument to be used later.
3324 % The |ifsetup| option controls for which the following options should
3325 % be used. This:
3326 % |textfont=\raggedright,| |ifsetup={a4paper,portrait},textfont=\small|
3327 % makes the text font |\small|, but only for a4 portrait slides.
3328 % \begin{macrocode}
3329 \def\pd@tempa#1{%
3330 \define@key[pd]{template}{#1}[]{%
3331 \ifpd@ifsetup\@namedef{pd@@#1}{##1}\fi
3332 }%
3333 }
3334 % \end{macrocode}
3335 % Define all keys.
3336 % \begin{macrocode}
3337 \XKV@for@n{%
3338 titlehook,titlepos,titlewidth,titlefont,%
3339 texthook,textpos,textwidth,textfont,textheight,%
3340 tochook,tocpos,tocwidth,tocfont,%
3341 stochook,stocpos,stocwidth,stocfont,%
3342 ntochook,ntocpos,ntocwidth,ntocfont,%
3343 tocfrsep,tocsecsep,tocslidesep,%
3344 tocsecm,toctcolor,tochlcolor,tochltcolor,%
3345 tocsecindent,tocslideindent,%
3346 lfhook,lfpos,lffont,lftemp,%
3347 cfhook,cfpos,cffont,cftemp,%
3348 rfhook,rfpos,rffont,rftemp,%
3349 iacolor,%
3350 clockhook,clockpos,clockwidth,clockheight,%
3351 clockcharsize,clockalign,clockcolor%
3352 }\pd@tempb{\expandafter\pd@tempa\expandafter{\pd@tempb}}
3353 % \end{macrocode}
3354 % The |ifsetup| key first amends missing input using |\pd@pdifsetup|.
3355 % \begin{macrocode}
3356 \define@cmdkey[pd]{template}[pd@@]{ifsetup}[]{%
3357 \pd@pdifsetup\pd@@ifsetup{landscape,portrait}%
3358 \pd@pdifsetup\pd@@ifsetup{screen,a4paper,letterpaper,smartboard,169}%
3359 \pd@pdifsetup\pd@@ifsetup{slides,notes,slidesnotes}%
3360 \pd@pdifsetup\pd@@ifsetup{present,print,handout}%
3361 \pd@pdifs@tup\pd@@ifsetup\pd@ifsetuptrue\pd@ifsetupfalse
3362 }
3363 % \end{macrocode}
3364 % Choice keys for orientation of toc.
3365 % \begin{macrocode}
3366 \define@choicekey*[pd]{template}{tocorient}[\pd@tempa\pd@tocorient]{%
3367 v,h}{}
3368 \define@choicekey*[pd]{template}{stocorient}[\pd@tempa\pd@stocorient]{%
3369 v,h}{}
3370 \define@choicekey*[pd]{template}{ntocorient}[\pd@tempa\pd@ntocorient]{%
3371 v,h}{}
3372 % \end{macrocode}
3373 % \changes{v1.4}{2005/12/10}{Replaced \texttt{\~} by \cs{space} to avoid
3374 % problems with Spanish babel}
3375 % Presets so that templates do not need to specify every key.
3376 % This also initializes some keys as to avoid errors in constructing
3377 % the slide.
3378 % \begin{macrocode}
3379 \setkeys[pd]{template}{%
3380 ifsetup,%
3381 titlehook=Bl,titlepos=,titlewidth=\slidewidth,%
3382 titlefont=\raggedright,texthook=tl,textpos=,%
3383 textwidth=\slidewidth,textfont=\raggedright,%
3384 textheight=\slideheight,%
3385 tochook=tl,tocpos=,tocwidth=.2\slidewidth,%
3386 tocfont=\tiny\raggedright,%
3387 stochook=tl,stocpos=,stocwidth=.2\slidewidth,%
3388 stocfont=\tiny\raggedright,%
3389 ntochook=tl,ntocpos=,ntocwidth=.2\slidewidth,%
3390 ntocfont=\tiny\raggedright,%
3391 tocorient=v,stocorient=v,ntocorient=v,%
3392 tocfrsep=.5mm,tocsecsep=2ex,tocslidesep=0ex,%
3393 tocsecm=,toctcolor=black,tochlcolor=black,tochltcolor=white,%
3394 tocsecindent=0pt,tocslideindent=0pt,%
3395 lfhook=Bl,lfpos=,lffont=\scriptsize,lftemp=\pd@@lf,%
3396 cfhook=B,cfpos=,cffont=\scriptsize,cftemp=\pd@@cf,%
3397 rfhook=Br,rfpos=,rffont=\scriptsize,rftemp=\pd@@rf\ifx\pd@@rf
3398 \@empty\else\ifx\theslide\@empty\else\ -- \fi\fi\theslide,%
3399 iacolor=lightgray,%
3400 clockhook=tr,clockpos=,clockwidth=3cm,clockheight=\baselineskip,%
3401 clockcharsize=14pt,clockalign=2,clockcolor=black%
3402 }
3403 % \end{macrocode}
3404 % \begin{macro}{\pddefinepalettes}
3405 % \marg{name}\marg{commands}\\
3406 % Save the text color number and start scanning for palettes. |\pd@nopalettes|
3407 % contains the number of palettes that we have seen in total in the
3408 % style or preamble.
3409 % \begin{macrocode}
3410 \def\pddefinepalettes#1#2{%
3411 \ifx\pd@nopalettes\@undefined\@tempcnta\z@\else
3412 \@tempcnta\pd@nopalettes
3413 \fi
3414 \pd@pddefinepalettes{#1}{#2}%
3415 }
3416 % \end{macrocode}
3417 % \end{macro}
3418 % \begin{macro}{\pd@pddefinepalettes}
3419 % \marg{name}\marg{commands}\\
3420 % Save the current \meta{name} and \meta{commands} to numbered macros
3421 % to be used later again. If we find another brace |{| after these
3422 % arguments, repeat the process.
3423 % \begin{macrocode}
3424 \def\pd@pddefinepalettes#1#2{%
3425 \advance\@tempcnta\@ne
3426 \@namedef{pd@pe@\the\@tempcnta @name}{#1}%
3427 \@namedef{pd@pe@#1@colors}{#2}%
3428 \@ifnextchar\bgroup\pd@pddefinepalettes{%
3429 \edef\pd@nopalettes{\the\@tempcnta}%
3430 }%
3431 }
3432 % \end{macrocode}
3433 % \end{macro}
3434 % \begin{macro}{\pd@countcolors}
3435 % Count the number of colors in the palette. We do this only once.
3436 % \begin{macrocode}
3437 \def\pd@countcolors{%
3438 \@tempcnta\@ne
3439 \@whilesw\ifx\pd@nocolors\@undefined\fi{%
3440 \XKV@ifundefined{\string\color@pdcolor\the\@tempcnta}{%
3441 \advance\@tempcnta\m@ne
3442 \edef\pd@nocolors{\the\@tempcnta}%
3443 }{\advance\@tempcnta\@ne}%
3444 }%
3445 }
3446 % \end{macrocode}
3447 % \end{macro}
3448 % Define the startpage to be 2 when using a pauseslide.
3449 % \begin{macrocode}
3450 \ifpd@pauseslide\def\@pdfstartpage{2}\fi
3451 % \end{macrocode}
3452 % If the style or preamble does not define palettes, do nothing. If
3453 % there are palettes, but the user didn't specify one, use the first.
3454 % \begin{macrocode}
3455 \AtBeginDocument{%
3456 \ifx\pd@nopalettes\@undefined\else\ifx\pd@@palette\@undefined
3457 \@nameuse{pd@pe@\@nameuse{pd@pe@1@name}@colors}%
3458 \color{pdcolor1}%
3459 \let\default@color\current@color
3460 \let\pd@color\XC@current@color
3461 \fi\fi
3462 % \end{macrocode}
3463 % Text color is black in handout mode.
3464 % \begin{macrocode}
3465 \ifnum\pd@mode=2
3466 \color{black}%
3467 \def\pd@@iacolor{black}%
3468 \let\default@color\current@color
3469 \let\pd@color\XC@current@color
3470 \else\pd@countcolors\fi
3471 % \end{macrocode}
3472 % Insert the pause slide.
3473 % \begin{macrocode}
3474 \ifpd@pauseslide
3475 \begin{pauseslide}[toc=,bm=,trans=Replace,randomdots=false]{}%
3476 \end{pauseslide}%
3477 \fi
3478 }
3479 % \end{macrocode}
3480 % \begin{macro}{\pddefinetemplate}
3481 % Define a template. This stores options and the background to macros.
3482 % \begin{macrocode}
3483 \def\pddefinetemplate{\@testopt\pd@pddefinetemplate{}}
3484 % \end{macrocode}
3485 % \end{macro}
3486 % \begin{macro}{\pd@pddefinetemplate}
3487 % \changes{v1.2}{2005/10/09}{Changed to \cs{pd@namelet} for changed \pf{xcolor}}
3488 % \changes{v1.3}{2005/12/06}{Made it possible to redefine basis templates and
3489 % convey the changes to templates based on this basis}
3490 % \oarg{basis}{name}{options}{background}\\
3491 % Store options and background and define the environment \meta{name}.
3492 % \begin{macrocode}
3493 \def\pd@pddefinetemplate[#1]#2#3#4{%
3494 % \end{macrocode}
3495 % The beginning of the environment just gets and sets its arguments
3496 % and gets the body of the environment.
3497 % \begin{macrocode}
3498 \@namedef{#2}{\pd@getargsandbody{#2}}%
3499 % \end{macrocode}
3500 % The end of the environment. We process the body at least once, maybe
3501 % more times, but that we will find out along the way. In case the
3502 % body is not eaten in advance, this macro starts an |lrbox|.
3503 % \begin{macrocode}
3504 \@namedef{end#2}{\ifpd@display\pd@slide\fi}%
3505 % \end{macrocode}
3506 % If there is no basis, we just store the options and the background.
3507 % \begin{macrocode}
3508 \ifx\@empty#1\@empty
3509 \@namedef{pd@template@#2@options}{\setkeys[pd]{template}{#3}}%
3510 \@namedef{pd@template@#2@bg}{#4}%
3511 \else
3512 % \end{macrocode}
3513 % Otherwise, add options and background to existing macros.
3514 % \begin{macrocode}
3515 \XKV@ifundefined{pd@template@#1@options}{%
3516 \pd@error{template `#1' undefined}}{%
3517 \def\pd@tempa{#1}\def\pd@tempb{#2}%
3518 % \end{macrocode}
3519 % If \meta{basis} and \meta{name} are the same, expand options and
3520 % background to avoid infinite loops.
3521 % \begin{macrocode}
3522 \ifx\pd@tempa\pd@tempb
3523 \pd@namelet{pd@template@#2@options}{pd@template@#1@options}%
3524 \expandafter
3525 \XKV@addtomacro@n\csname pd@template@#2@options\endcsname
3526 % \end{macrocode}
3527 % Make sure to reset the |ifsetup| key so that options are for all
3528 % possible setups again.
3529 % \begin{macrocode}
3530 {\setkeys[pd]{template}{ifsetup,#3}}%
3531 \pd@namelet{pd@template@#2@bg}{pd@template@#1@bg}\expandafter
3532 \XKV@addtomacro@n\csname pd@template@#2@bg\endcsname{#4}%
3533 \else
3534 % \end{macrocode}
3535 % Else, use existing macros options and background macros and add the
3536 % current settings.
3537 % \begin{macrocode}
3538 \@namedef{pd@template@#2@bg}{\@nameuse{pd@template@#1@bg}#4}%
3539 \@namedef{pd@template@#2@options}{%
3540 \@nameuse{pd@template@#1@options}%
3541 \setkeys[pd]{template}{ifsetup,#3}%
3542 }%
3543 \fi
3544 }%
3545 \fi
3546 }
3547 % \end{macrocode}
3548 % \end{macro}
3549 % \begin{macro}{\pd@getargsandbody}
3550 % \marg{name}\\
3551 % First eat the optional argument and the slide title. Then
3552 % collect the body of the slide: we
3553 % read every time up to |\end|, we check whether we find the |\end| that
3554 % has the name of the current slide environment. If not, we add all
3555 % content and continue the search. If |method| is 1, we use \pf{verbatim}
3556 % to read the body and write it to a temporary file. If |method| is 2, we do not
3557 % eat the body at all, but redefine the end of the current environment
3558 % to finish the |lrbox| that we will start later on.
3559 % \begin{macrocode}
3560 \def\pd@getargsandbody#1{\@testopt{\pd@get@rgsandbody{#1}}{}}
3561 % \end{macrocode}
3562 % \end{macro}
3563 % \begin{macro}{\pd@get@rgsandbody}
3564 % \marg{name}\oarg{options}\marg{title}
3565 % \begin{macrocode}
3566 \def\pd@get@rgsandbody#1[#2]#3{%
3567 \pd@get@rgs@ndbody{#2}{#3}%
3568 % \end{macrocode}
3569 % Here are three possible methods to process slides. The first will
3570 % eat the entire body while scanning for |\end{slide}|. This fixes
3571 % catcodes. The second writes the body to file. This allows for
3572 % verbatim and overlays, but may be slow. The third uses an |lrbox| to
3573 % typeset material directly. That allows for verbatim, but no
3574 % overlays. Notice that we always use the first method when the slide
3575 % should not be displayed.
3576 % \begin{macrocode}
3577 \ifcase\ifnum\pd@method>\z@\ifpd@display\@ne\fi\fi\z@
3578 % \end{macrocode}
3579 % Start eating the body.
3580 % \begin{macrocode}
3581 \pd@body{}%
3582 \def\pd@tempa{\pd@get@rgs@ndb@dy{#1}}%
3583 \else
3584 \ifnum\pd@method=\@ne
3585 % \end{macrocode}
3586 % Start verbatim reading and writing to file.
3587 % \begin{macrocode}
3588 \def\pd@tempa{%
3589 \immediate\openout\pd@vrbout\jobname.vrb\relax
3590 \def\verbatim@processline{%
3591 \immediate\write\pd@vrbout{\the\verbatim@line}%
3592 }%
3593 \begingroup\let\do\@makeother\dospecials\catcode`\^^M\active
3594 \verbatim@start
3595 }%
3596 % \end{macrocode}
3597 % Redefine the end macro to stop verbatim reading and closing the file.
3598 % Afterwards, execute the slide producing macro.
3599 % \begin{macrocode}
3600 \@namedef{end#1}{%
3601 \endgroup\immediate\closeout\pd@vrbout
3602 \let\verbatim@processline\pd@orig@verbatim@processline
3603 \pd@slide
3604 }%
3605 \else
3606 % \end{macrocode}
3607 % No overlays allowed with this method.
3608 % \begin{macrocode}
3609 \pd@deloverlays
3610 % \end{macrocode}
3611 % Create the slide.
3612 % \begin{macrocode}
3613 \let\pd@tempa\pd@sl@de
3614 % \end{macrocode}
3615 % Typeset content directly and store it in a box using |lrbox|. We
3616 % redefine the end to finish this box and position it on the page.
3617 % \begin{macrocode}
3618 \@namedef{end#1}{%
3619 \end{pd@minipage}\end{lrbox}%
3620 \ifx\pd@@textpos\@empty\else
3621 \rput[\pd@@texthook](\pd@@textpos){\usebox\pd@textbox}%
3622 \fi
3623 }%
3624 \fi
3625 \fi
3626 \pd@tempa
3627 }
3628 % \end{macrocode}
3629 % \end{macro}
3630 % \begin{macro}{\pd@get@rgs@ndbody}
3631 % \marg{options}\marg{title}\\
3632 % A common component in processing slides in \LaTeX\ or \LyX.
3633 % \begin{macrocode}
3634 \def\pd@get@rgs@ndbody#1#2{%
3635 % \end{macrocode}
3636 % Set user keys.
3637 % \begin{macrocode}
3638 \setkeys[pd]{glslide,slide}{#1}%
3639 % \end{macrocode}
3640 % Save title.
3641 % \begin{macrocode}
3642 \def\pd@t@tle{#2}%
3643 % \end{macrocode}
3644 % Perform some initial checks to see whether we actually need to process
3645 % this slide or not.
3646 % \begin{macrocode}
3647 \pd@displaytrue
3648 \def\pd@tempa{note}%
3649 \ifcase\pd@display
3650 \ifx\@currenvir\pd@tempa\relax\pd@displayfalse\fi
3651 \or
3652 \ifx\@currenvir\pd@tempa\else
3653 \def\pd@tempa{titleslide}%
3654 \ifx\@currenvir\pd@tempa\else
3655 \pd@displayfalse
3656 \stepcounter{slide}%
3657 \fi
3658 \fi
3659 \fi
3660 }
3661 % \end{macrocode}
3662 % \end{macro}
3663 % \begin{macro}{\pd@get@rgs@ndb@dy}
3664 % \marg{name}\meta{text}|\end|\marg{envir}\\
3665 % If \meta{envir} is equal to \meta{name}, we found the end of the
3666 % environment and stop parsing. Otherwise, we add material to the token
3667 % and continue.
3668 % \begin{macrocode}
3669 \long\def\pd@get@rgs@ndb@dy#1#2\end#3{%
3670 \def\pd@tempa{#1}%
3671 \def\pd@tempb{#3}%
3672 \ifx\pd@tempa\pd@tempb
3673 \pd@body\expandafter{\the\pd@body#2}%
3674 \def\pd@tempa{\end{#1}}%
3675 \else
3676 \pd@body\expandafter{\the\pd@body#2\end{#3}}%
3677 \def\pd@tempa{\pd@get@rgs@ndb@dy{#1}}%
3678 \fi
3679 \pd@tempa
3680 }
3681 % \end{macrocode}
3682 % \end{macro}
3683 % \begin{macro}{\pd@slide}
3684 % This macro processes the slide, possibly many times, depending on
3685 % what we encounter on the first run.
3686 % \begin{macrocode}
3687 \def\pd@slide{%
3688 \pd@overlayfalse
3689 \def\pd@nooverlays{1}%
3690 \setcounter{pd@overlay}\@ne
3691 \let\pd@labels\@empty
3692 % \end{macrocode}
3693 % Save counter values so that these can be restored on overlays.
3694 % \begin{macrocode}
3695 \XKV@for@o\pd@@counters\pd@tempa{%
3696 \expandafter\xdef\csname pd@counter@\pd@tempa\endcsname{%
3697 \expandafter\the\csname c@\pd@tempa\endcsname
3698 }%
3699 }%
3700 \pd@sl@de
3701 \@whilenum\c@pd@overlay<\pd@nooverlays\do{%
3702 \pd@overlaytrue
3703 % \end{macrocode}
3704 % Restore counters.
3705 % \begin{macrocode}
3706 \XKV@for@o\pd@@counters\pd@tempa{%
3707 \setcounter\pd@tempa{\csname pd@counter@\pd@tempa\endcsname}%
3708 }%
3709 \stepcounter{pd@overlay}%
3710 % \end{macrocode}
3711 % Re-initialize the info for random dots.
3712 % \begin{macrocode}
3713 \ifpd@@randomdots
3714 \let\pd@trandim\pd@randim
3715 \let\pd@tranpos\pd@ranpos
3716 \let\pd@trancol\pd@rancol
3717 \fi
3718 \pd@sl@de
3719 }%
3720 }
3721 % \end{macrocode}
3722 % \end{macro}
3723 % \begin{macro}{\pd@sl@de}
3724 % \changes{v1.1}{2005/09/19}{Added missing \cs{pd@currenttype} initialization}
3725 % \changes{v1.2}{2005/10/09}{Added \cs{@currentlabel} definition}
3726 % \changes{v1.3}{2005/12/06}{Template specific \texttt{textfont} properly sets \cs{default@color}}
3727 % \changes{v1.4}{2005/12/10}{Added exceptions to inhibit logo/randomdots on blackslide/emptyslide}
3728 % This is the main slide producing macro.
3729 % \begin{macrocode}
3730 \def\pd@sl@de{%
3731 \stepcounter{slide}\newpage
3732 \ifpd@overlay\addtocounter{slide}\m@ne\fi
3733 \edef\@currentlabel{\the\c@slide}%
3734 % \end{macrocode}
3735 % Initialize the overlays and switch to overlay 0. The material on this
3736 % overlay will be visible.
3737 % \begin{macrocode}
3738 \pst@Verb{tx@ovlDict begin InitOL /TheOL (0) def end}%
3739 \pst@Verb{tx@ovlDict begin (0) BOL end}%
3740 % \end{macrocode}
3741 % Load all template settings.
3742 % \begin{macrocode}
3743 \@nameuse{pd@template@\@currenvir @options}%
3744 % \end{macrocode}
3745 % Insert background. Execute in a group to avoid local settings getting out.
3746 % \begin{macrocode}
3747 \@nameuse{pd@template@\@currenvir @bg}%
3748 \ifpd@@randomdots
3749 \ifpd@overlay\else
3750 \ifnum\pd@nocolors>\z@
3751 \let\pd@randim\@empty
3752 \let\pd@ranpos\@empty
3753 \let\pd@rancol\@empty
3754 \setrannum\pd@tempcnta\pd@@dmindots\pd@@dmaxdots
3755 \edef\pd@nodots{\the\pd@tempcnta}%
3756 \pd@tempcnta\z@
3757 \@whilesw\ifnum\pd@tempcnta<\pd@nodots\fi{%
3758 \advance\pd@tempcnta\@ne
3759 \setrandim\@tempdima\pd@@dminsize\pd@@dmaxsize
3760 \XKV@addtolist@x\pd@randim{\the\@tempdima}%
3761 \setrandim\@tempdima\pd@@dminwidth\pd@@dmaxwidth
3762 \setrandim\@tempdimb\pd@@dminheight\pd@@dmaxheight
3763 \XKV@addtolist@x\pd@ranpos{\the\@tempdima,\the\@tempdimb}%
3764 \setrannum\@tempcntb1\pd@nocolors
3765 \XKV@addtolist@x\pd@rancol{\the\@tempcntb}%
3766 }%
3767 \let\pd@trandim\pd@randim
3768 \let\pd@tranpos\pd@ranpos
3769 \let\pd@trancol\pd@rancol
3770 \else
3771 \let\pd@nodots\z@
3772 \fi
3773 \fi
3774 \@tempcnta\z@
3775 \@whilesw\ifnum\@tempcnta<\pd@nodots\fi{%
3776 \advance\@tempcnta\@ne
3777 \pd@pop\pd@trandim\pd@tempa\pd@pop\pd@tranpos\pd@tempb
3778 \pd@pop\pd@tranpos\pd@tempc\pd@pop\pd@trancol\pd@tempd
3779 \ifnum\pd@@dbright<\z@
3780 \@tempcntb\pd@@dbright
3781 \advance\@tempcntb100
3782 \edef\pd@tempd{\pd@tempd!\the\@tempcntb!black}%
3783 \else
3784 \@tempcntb-\pd@@dbright
3785 \advance\@tempcntb100
3786 \edef\pd@tempd{\pd@tempd!\the\@tempcntb}%
3787 \fi
3788 {\ifx\pd@@dprop\@empty\else
3789 \expandafter\psset\expandafter{\pd@@dprop}%
3790 \fi
3791 \psdot[dotsize=\pd@tempa,linecolor=pdcolor\pd@tempd]%
3792 (\pd@tempb,\pd@tempc)}%
3793 }%
3794 \fi
3795 % \end{macrocode}
3796 % Insert the logo.
3797 % \begin{macrocode}
3798 \def\pd@tempa{pauseslide}%
3799 \def\pd@tempb{emptyslide}%
3800 \ifx\pd@@logopos\@empty\else
3801 \ifx\pd@logobox\@undefined\else
3802 \ifx\@currenvir\pd@tempa\else
3803 \ifx\@currenvir\pd@tempb\else
3804 \rput[\pd@@logohook](\pd@@logopos){\usebox\pd@logobox}%
3805 \fi
3806 \fi
3807 \fi
3808 \fi
3809 % \end{macrocode}
3810 % Clock coding. Contributed by Alexander Grahn.
3811 % \begin{macrocode}
3812 \ifpd@@clock
3813 % \end{macrocode}
3814 % Extract the color specification, convert it to |rgb| and store it
3815 % to be used for the clock. This uses some \pf{xcolor} macros.
3816 % \begin{macrocode}
3817 \def\pd@tempa##1,##2,##3\@nil{##1 ##2 ##3}%
3818 \extractcolorspec\pd@@clockcolor\pd@tempb
3819 \expandafter\convertcolorspec\pd@tempb{rgb}\pd@tempb
3820 \edef\pd@tempa{\expandafter\pd@tempa\pd@tempb\@nil}%
3821 % \end{macrocode}
3822 % Insert the clock.
3823 % \changes{v1.4}{2005/12/10}{Added arguments for \texttt{clockformat} and \texttt{clockrefresh} values}
3824 % \changes{v1.6}{2021/03/25}{Fixed rotation of the clock for smartboard paper}
3825 % \begin{macrocode}
3826 \ifx\pd@@clockpos\@empty\else
3827 \@tempdima\pd@@clockcharsize
3828 \rput[\pd@@clockhook](\pd@@clockpos){%
3829 \makebox[\pd@@clockwidth][l]{\rule{0pt}{\pd@@clockheight}%
3830 \pd@PdfAnnot{\pd@@clockwidth}{\pd@@clockheight}{0pt}{%
3831 /Subtype/Widget/FT/Tx/T (pdclock.\the\pd@clockcnt) /Ff 1
3832 /DA (/Helv \strip@pt\@tempdima\space Tf \pd@tempa\space rg)
3833 /MK<</R \ifnum\pd@orient=\z@\ifnum\pd@paper=\thr@@ 0\else 90\fi\else 0\fi /BG []/BC []>>
3834 /Q \pd@@clockalign\space
3835 /AA <<
3836 /PO << /S/JavaScript/JS(\pd@startclock\pd@@clockformat\pd@@clockrefresh) >>
3837 /PC << /S/JavaScript/JS(app.clearInterval(pdclock_\the\pd@clockcnt);) >>
3838 >>
3839 }%
3840 }%
3841 \pd@AppendToFields{\pd@PdfLastAnn}%
3842 \global\advance\pd@clockcnt\@ne
3843 }%
3844 \fi
3845 \fi
3846 % \end{macrocode}
3847 % Write transition effect to PDF.
3848 % \begin{macrocode}
3849 \pd@pdftrans
3850 \ifpd@overlay\else
3851 % \end{macrocode}
3852 % When not an overlay or note, make a bookmark and toc entry.
3853 % \begin{macrocode}
3854 \def\pd@tempa{note}%
3855 \ifx\@currenvir\pd@tempa\else
3856 \pd@maketocbm0%
3857 % \end{macrocode}
3858 % Make a target on this page so that we can make links to this page.
3859 % We don't use pdf page links as that won't give good link in handout
3860 % mode with 2 slides per page.
3861 % \begin{macrocode}
3862 \hyper@anchorstart{slide.\the\c@slide}\hyper@anchorend
3863 \fi
3864 \fi
3865 % \end{macrocode}
3866 % Initialize numbers and macros for relative stepping and pausing.
3867 % |\pd@currentstate| remembers the state when doing overlays.
3868 % \begin{macrocode}
3869 \def\pd@reloverlay{1}%
3870 \let\pd@closeitem\relax
3871 \def\pd@currentstate{0}%
3872 \let\pd@currenttype\relax
3873 \setcounter{pd@pause}\@ne
3874 \let\pd@revert\@firstofone
3875 \setcounter{pd@onslidedepth}\z@
3876 % \end{macrocode}
3877 % Position the title.
3878 % \begin{macrocode}
3879 \ifx\pd@@titlepos\@empty\else
3880 \def\pd@tempa{%
3881 \begin{minipage}\pd@@titlewidth
3882 \pd@@titlefont\strut
3883 \ifpd@section
3884 \expandafter\pd@sectiontitle\expandafter{\pd@t@tle}%
3885 \else
3886 \expandafter\pd@slidetitle\expandafter{\pd@t@tle}%
3887 \fi
3888 \end{minipage}%
3889 }%
3890 \rput[\pd@@titlehook](\pd@@titlepos){%
3891 \ifpd@pauseslide
3892 \hyperlink{pauseslide}{\pd@tempa}%
3893 \else
3894 \pd@tempa
3895 \fi
3896 }%
3897 \fi
3898 % \end{macrocode}
3899 % Position the table of contents, possibly split. No |minipage| when
3900 % making a horizontal toc.
3901 % \begin{macrocode}
3902 \ifx\pd@@tocpos\@empty\else
3903 \rput[\pd@@tochook](\pd@@tocpos){%
3904 \ifnum\pd@tocorient=\z@\begin{minipage}\pd@@tocwidth\fi
3905 \let\pd@usedtocfont\pd@@tocfont
3906 \let\pd@usedtocorient\pd@tocorient
3907 \pd@puttoc0%
3908 \ifnum\pd@usedtocorient=\z@\end{minipage}\fi
3909 }%
3910 \fi
3911 \ifx\pd@@stocpos\@empty\else
3912 \rput[\pd@@stochook](\pd@@stocpos){%
3913 \ifnum\pd@stocorient=\z@\begin{minipage}\pd@@tocwidth\fi
3914 \let\pd@usedtocfont\pd@@stocfont
3915 \let\pd@usedtocorient\pd@stocorient
3916 \pd@puttoc1%
3917 \ifnum\pd@usedtocorient=\z@\end{minipage}\fi
3918 }%
3919 \fi
3920 \ifx\pd@@ntocpos\@empty\else
3921 \rput[\pd@@ntochook](\pd@@ntocpos){%
3922 \ifnum\pd@ntocorient=\z@\begin{minipage}\pd@@tocwidth\fi
3923 \let\pd@usedtocfont\pd@@ntocfont
3924 \let\pd@usedtocorient\pd@ntocorient
3925 \pd@puttoc2%
3926 \ifnum\pd@usedtocorient=\z@\end{minipage}\fi
3927 }%
3928 \fi
3929 % \end{macrocode}
3930 % Position footers.
3931 % \begin{macrocode}
3932 \ifx\pd@@lfpos\@empty\else
3933 \rput[\pd@@lfhook](\pd@@lfpos){\pd@@lffont\pd@@lftemp}%
3934 \fi
3935 \ifx\pd@@cfpos\@empty\else
3936 \rput[\pd@@cfhook](\pd@@cfpos){\pd@@cffont\pd@@cftemp}%
3937 \fi
3938 \ifx\pd@@rfpos\@empty\else
3939 \rput[\pd@@rfhook](\pd@@rfpos){\pd@@rffont\pd@@rftemp}%
3940 \fi
3941 \ifnum\pd@method<2
3942 \ifx\pd@@textpos\@empty\else
3943 % \end{macrocode}
3944 % Position the main text box and put the material in, maybe coming
3945 % from eating the body into |\pd@body| or reading it from a file.
3946 % \begin{macrocode}
3947 \rput[\pd@@texthook](\pd@@textpos){%
3948 \pd@sl@d@
3949 \ifnum\pd@method=\z@\the\pd@body\else
3950 \input\jobname.vrb
3951 \fi
3952 \end{pd@minipage}%
3953 }%
3954 \fi
3955 \let\pd@tempa\relax
3956 \else
3957 % \end{macrocode}
3958 % For direct processing, start the |lrbox| to typeset and capture
3959 % content.
3960 % \begin{macrocode}
3961 \def\pd@tempa{\begin{lrbox}\pd@textbox\pd@sl@d@}%
3962 \fi
3963 \pd@tempa
3964 }
3965 % \end{macrocode}
3966 % \end{macro}
3967 % \begin{macro}{\pd@sl@d@}
3968 % A common component in |\pd@sl@de|.
3969 % \begin{macrocode}
3970 \def\pd@sl@d@{%
3971 \begin{pd@minipage}%
3972 \let\pd@tempa\color
3973 \def\color##1{\pd@tempa{##1}\let\default@color\current@color}%
3974 \pd@@textfont
3975 \let\color\pd@tempa
3976 }
3977 % \end{macrocode}
3978 % \end{macro}
3979 % \changes{v1.2}{2005/10/09}{Redefine \cs{pd@slidetitle} in note template}
3980 % The implementation of notes.
3981 % The first macro is a temporary counter to find whether the new note
3982 % still belongs to the current slide or that it belongs to a new slide.
3983 % \begin{macrocode}
3984 \def\pd@notet{0}
3985 % \end{macrocode}
3986 % Define the template using our mechanism.
3987 % \begin{macrocode}
3988 \pddefinetemplate{note}{%
3989 titlepos={.04\slidewidth,.92\slideheight},%
3990 titlefont=\let\pd@slidetitle\@firstofone\color{black}\Large,%
3991 textpos={.07\slidewidth,.82\slideheight},%
3992 textfont=\color{black},textwidth=.86\slidewidth,%
3993 lfpos={.04\slidewidth,.035\slideheight},%
3994 lffont=\color{black}\scriptsize,%
3995 cfpos={.5\slidewidth,.035\slideheight},%
3996 cffont=\color{black}\scriptsize,%
3997 rfpos={.96\slidewidth,.035\slideheight},%
3998 rffont=\color{black}\scriptsize,%
3999 rftemp=\pd@@rf\ifx\pd@@rf\@empty\else
4000 \ifx\thenote\@empty\else\space--\space\fi\fi\thenote,%
4001 }{%
4002 \addtocounter{slide}\m@ne
4003 % \end{macrocode}
4004 % If this is another note with the same slide, count it.
4005 % \begin{macrocode}
4006 \ifnum\c@slide=\pd@notet
4007 \stepcounter{note}%
4008 \else
4009 \setcounter{note}{1}%
4010 \fi
4011 \xdef\pd@notet{\the\c@slide}%
4012 % \end{macrocode}
4013 % The background.
4014 % \begin{macrocode}
4015 \psline[linewidth=.5pt](0,.87\slideheight)%
4016 (\slidewidth,.87\slideheight)%
4017 \psline[linewidth=.5pt](0,.08\slideheight)%
4018 (\slidewidth,.08\slideheight)%
4019 }
4020 % \end{macrocode}
4021 % Implement pauseslide.
4022 % This is an empty slide with just a very big button on it to go back
4023 % to the original page where we came from.
4024 % \begin{macrocode}
4025 \pddefinetemplate{pauseslide}{}{%
4026 \addtocounter{slide}\m@ne
4027 \hyper@anchorstart{pauseslide}\hyper@anchorend
4028 \psframe*[linecolor=\pd@pauseslidecolor](0,0)(\slidewidth,\slideheight)%
4029 {\color{\pd@pauseslidecolor}%
4030 \rput[cm](.5\slidewidth,.5\slideheight){%
4031 \Acrobatmenu{GoBack}{\setlength\fboxsep{10cm}\fbox{GoBack}}}}%
4032 }
4033 % \end{macrocode}
4034 % Empty slides. For special uses like displaying big tables or photos.
4035 % \begin{macrocode}
4036 \pddefinetemplate{emptyslide}{textpos={0,\slideheight}}{}
4037 % \end{macrocode}
4038 % \begin{macro}{\maketitle}
4039 % This implementation
4040 % is more or less similar as what is in \pf{article}. First we make a
4041 % backup of the original |\maketitle| to be used maybe in handout mode,
4042 % see below.
4043 % \begin{macrocode}
4044 \let\pd@orig@maketitle\maketitle
4045 \def\maketitle{\@testopt\pd@maketitle{}}
4046 \def\pd@maketitle[#1]{%
4047 \begin{titleslide}[#1,toc=,bm=,trans=Replace,method=normal]{}%
4048 \let\footnote\thanks
4049 \def\thefootnote{\@fnsymbol\c@footnote}%
4050 {\pd@title{\pd@@titlefont\@title}\par}{%
4051 \vskip2em\pd@@textfont
4052 \begin{tabular}[t]{@{} c @{}}%
4053 \@author
4054 \end{tabular}\par
4055 \vskip1.5em\small\@date
4056 }\par
4057 \small\@thanks
4058 \vfil\null
4059 \end{titleslide}%
4060 \c@footnote\z@
4061 }
4062 % \end{macrocode}
4063 % \end{macro}
4064 % \begin{macro}{\pd@maketocbm}
4065 % \marg{type}\\
4066 % \meta{type} indicates the kind of entry that we need to write to toc and
4067 % or bookmark file. 0 is a normal slide, 1 is a section, 2 is a hidden
4068 % section. The title of the entry is assumed to be in |\pd@slidetitle|.
4069 % \begin{macrocode}
4070 \def\pd@maketocbm#1{%
4071 % \end{macrocode}
4072 % Make the bookmark entry so that it allows for easy counting of entries
4073 % in sections.
4074 % \begin{macrocode}
4075 \def\pd@tempa{\immediate\write\pd@bmout{%
4076 \string\pdbookmark{sec.\the\c@pd@section\ifnum#1=\[email protected]\fi}{%
4077 \ifnum#1=\z@ sec.\the\c@pd@section\fi}{\the\c@slide}%
4078 {\the\@temptokena}%
4079 }}%
4080 % \end{macrocode}
4081 % Notice that |\pd@@bm| can be undefined at every slide, even after
4082 % use on one slide, as the definition is done locally in the slide
4083 % environment. So no resetting is necessary on the start of a slide.
4084 % \begin{macrocode}
4085 \ifx\pd@@bm\@undefined
4086 \@temptokena\expandafter{\pd@t@tle}%
4087 \else
4088 \ifx\pd@@bm\@empty
4089 \let\pd@tempa\relax
4090 \else
4091 \@temptokena\expandafter{\pd@@bm}%
4092 \fi
4093 \fi
4094 \pd@tempa
4095 % \end{macrocode}
4096 % Write the toc entry.
4097 % \begin{macrocode}
4098 \def\pd@tempa{\immediate\write\pd@tocout{%
4099 \string\pdcontentsline{#1}{\the\c@slide}{\the\@temptokena}%
4100 }}%
4101 \ifx\pd@@toc\@undefined
4102 \@temptokena\expandafter{\pd@t@tle}%
4103 \else
4104 \ifx\pd@@toc\@empty
4105 \let\pd@tempa\relax
4106 \else
4107 \@temptokena\expandafter{\pd@@toc}%
4108 \fi
4109 \fi
4110 \pd@tempa
4111 }
4112 % \end{macrocode}
4113 % \end{macro}
4114 % \begin{macro}{\pdbookmark}
4115 % \marg{sec1}\marg{sec2}\marg{target}\marg{title}\\
4116 % First we defined |\pdbookmark| to count the number of bookmarks
4117 % that needs to be nested below every section bookmark. We need to
4118 % know that for the pdf bookmark specification.
4119 % \begin{macrocode}
4120 \def\pdbookmark#1#2#3#4{%
4121 \@tempcnta\pd@pdb@@kmark{#2}%
4122 \advance\@tempcnta\@ne
4123 \@nameedef{pd@be@#2}{\the\@tempcnta}%
4124 }
4125 % \end{macrocode}
4126 % \end{macro}
4127 % \begin{macro}{\pd@pdb@@kmark}
4128 % \changes{v1.1}{2005/09/19}{Solved bug with unexpandable \cs{XKV@ifundefined}
4129 % when not running the $\varepsilon$-\TeX\ engine (e.g. te\TeX\ 2)}
4130 % \marg{section}\\
4131 % Returns the number of slides that we already counter for the
4132 % current section. Don't use |\XKV@ifundefined| here as that is not
4133 % expandable when not running $\varepsilon$-\TeX\ engine.
4134 % \begin{macrocode}
4135 \def\pd@pdb@@kmark#1{%
4136 \@ifundefined{pd@be@#1}0{\csname pd@be@#1\endcsname}%
4137 }
4138 % \end{macrocode}
4139 % \end{macro}
4140 % \begin{macro}{\pd@pdbookmark}
4141 % \changes{v1.2}{2005/10/09}{Solved bug with Acrobat Distiller}
4142 % \marg{sec1}\marg{sec2}\marg{target}\marg{title}\\
4143 % Redefine the macro to make the actual bookmark.
4144 % \begin{macrocode}
4145 \ifxetex\else
4146 \def\pd@pdbookmark#1#2#3#4{%
4147 % \end{macrocode}
4148 % Use |\pdfstringdef| to clean the title. Not everything can enter as
4149 % a bookmark in pdf.
4150 % \begin{macrocode}
4151 \pdfstringdef\pd@tempa{#4}%
4152 \pdfmark{pdfmark=/OUT,%
4153 Count={\pd@pdb@@kmark{#1}},Dest={slide.#3},%
4154 View={/XYZ null null null},Title={\pd@tempa}%
4155 }%
4156 }
4157 \fi
4158 % \end{macrocode}
4159 % \end{macro}
4160 % \begin{macro}{\pdcontentsline}
4161 % \marg{type}\marg{target}\marg{title}\\
4162 % Saves all input arguments to macros with names like |\pd@te@i|.
4163 % Further, it computes with a lag the starting and stopping targets
4164 % for every entry, |\pd@te@i@start| and |\pd@te@i@stop|.
4165 % \begin{macrocode}
4166 \def\pdcontentsline#1#2#3{%
4167 \ifnum\@tempcnta>\z@
4168 \@nameedef{pd@te@\the\@tempcnta @start}{\pd@tempa}%
4169 \@namedef{pd@te@\the\@tempcnta @stop}{#2}%
4170 \fi
4171 \def\pd@tempa{#2}%
4172 \advance\@tempcnta\@ne
4173 \@namedef{pd@te@\the\@tempcnta}{%
4174 \pdcontentsline{#1}{#2}{#3}%
4175 }%
4176 }
4177 % \end{macrocode}
4178 % \end{macro}
4179 % \changes{v1.1}{2005/09/19}{Reading \texttt{.bm} and \texttt{.toc}
4180 % file \cs{AtBeginDocument} to allow for using \pf{inputenc} for toc
4181 % and bm entries}
4182 % \changes{v1.4}{2005/12/10}{Solved bug in computing stopping slide for last toc entry}
4183 % Read the bm and toc files into memory to speed up compilation.
4184 % Along the way, we compute the starting and stopping target numbers
4185 % for highlighting toc entries and the number of slides to be nested
4186 % under a section bookmark entry. At begin document for allowing
4187 % loading of \pf{inputenc} also for bm and toc entries.
4188 % \begin{macrocode}
4189 \AtBeginDocument{%
4190 \InputIfFileExists{\jobname.bm}{}{}%
4191 \let\pdbookmark\pd@pdbookmark
4192 \InputIfFileExists{\jobname.bm}{}{}%
4193 % \end{macrocode}
4194 % Rewrite the bookmarks file.
4195 % \begin{macrocode}
4196 \immediate\openout\pd@bmout\jobname.bm\relax
4197 \@tempcnta\z@
4198 \def\pd@tempa{0}%
4199 \InputIfFileExists{\jobname.toc}{}{}%
4200 % \end{macrocode}
4201 % Save the number of toc entries.
4202 % \begin{macrocode}
4203 \edef\pd@notocentries{\the\@tempcnta}%
4204 % \end{macrocode}
4205 % Compute the starting and stopping number for the last entry.
4206 % \begin{macrocode}
4207 \ifx\r@lastslide\@undefined\@tempcntb\pd@tempa\else
4208 \edef\pd@tempb{\expandafter\@secondoffive\r@lastslide}%
4209 \@tempcntb\pd@tempb
4210 \fi
4211 \advance\@tempcntb\@ne
4212 \@nameedef{pd@te@\the\@tempcnta @start}{\pd@tempa}%
4213 \@nameedef{pd@te@\the\@tempcnta @stop}{\the\@tempcntb}%
4214 % \end{macrocode}
4215 % Rewrite the toc file.
4216 % \begin{macrocode}
4217 \immediate\openout\pd@tocout\jobname.toc\relax
4218 % \end{macrocode}
4219 % Initialize the |\pdcontentsline| macro for making toc entries.
4220 % \begin{macrocode}
4221 \let\pdcontentsline\pd@pdcontentsline
4222 }
4223 % \end{macrocode}
4224 % \begin{macro}{\pd@puttoc}
4225 % \marg{type}\\
4226 % Typeset the table of contents of type \meta{type} from memory.
4227 % \begin{macrocode}
4228 \def\pd@puttoc#1{%
4229 % \end{macrocode}
4230 % Initialize some numbers that we will use.
4231 % \begin{macrocode}
4232 \@tempcnta\z@
4233 \@tempcntb\z@
4234 \@tempswatrue
4235 \def\pd@toctype{#1}%
4236 % \end{macrocode}
4237 % Parse all available toc entries.
4238 % \begin{macrocode}
4239 \@whilenum\@tempcnta<\pd@notocentries\do{%
4240 \advance\@tempcnta\@ne
4241 \@nameuse{pd@te@\the\@tempcnta}%
4242 }%
4243 }
4244 % \end{macrocode}
4245 % \end{macro}
4246 % \begin{macro}{\pd@pdcontentsline}
4247 % \changes{v1.1}{2005/09/19}{Solved bug using different toc widths}
4248 % \marg{type}\marg{target}\marg{title}\\
4249 % Typesets a toc entry.
4250 % \begin{macrocode}
4251 \def\pd@pdcontentsline#1#2#3{%
4252 \let\pd@tempa\relax
4253 % \end{macrocode}
4254 % Full table of contents (sections and slides).
4255 % \begin{macrocode}
4256 \ifcase\pd@toctype
4257 % \end{macrocode}
4258 % A normal slide.
4259 % \begin{macrocode}
4260 \ifcase#1\relax
4261 % \end{macrocode}
4262 % Slides before section 1.
4263 % \begin{macrocode}
4264 \ifnum\@tempcntb=\z@
4265 \let\pd@tempa\pd@tocdisplay
4266 \else
4267 % \end{macrocode}
4268 % A slide in the current section.
4269 % \begin{macrocode}
4270 \ifnum\@tempcntb=\c@pd@section
4271 \let\pd@tempa\pd@tocdisplay
4272 \fi
4273 \fi
4274 \or
4275 % \end{macrocode}
4276 % A normal section.
4277 % \begin{macrocode}
4278 \global\advance\@tempcntb\@ne
4279 \let\pd@tempa\pd@tocdisplay
4280 \or
4281 % \end{macrocode}
4282 % A hidden section.
4283 % \begin{macrocode}
4284 \global\advance\@tempcntb\@ne
4285 \ifnum\@tempcntb=\c@pd@section
4286 \let\pd@tempa\pd@tocdisplay
4287 \fi
4288 \fi
4289 \or
4290 % \end{macrocode}
4291 % Typeset only sections.
4292 % \begin{macrocode}
4293 \ifcase#1\relax\or
4294 % \end{macrocode}
4295 % A normal section.
4296 % \begin{macrocode}
4297 \global\advance\@tempcntb\@ne
4298 \let\pd@tempa\pd@tocdisplay
4299 \or
4300 % \end{macrocode}
4301 % A hidden section.
4302 % \begin{macrocode}
4303 \global\advance\@tempcntb\@ne
4304 \ifnum\@tempcntb=\c@pd@section
4305 \let\pd@tempa\pd@tocdisplay
4306 \fi
4307 \fi
4308 \or
4309 % \end{macrocode}
4310 % Only slides in current section or before the first section.
4311 % \begin{macrocode}
4312 \ifnum#1=\z@
4313 % \end{macrocode}
4314 % An entry in the current section.
4315 % \begin{macrocode}
4316 \ifnum\@tempcntb=\c@pd@section
4317 \let\pd@tempa\pd@tocdisplay
4318 \fi
4319 \else
4320 % \end{macrocode}
4321 % Count sections.
4322 % \begin{macrocode}
4323 \global\advance\@tempcntb\@ne
4324 \fi
4325 \fi
4326 \ifpd@@hlentries\ifx\pd@tempa\relax\else
4327 \ifnum#1=\z@
4328 % \end{macrocode}
4329 % A normal highlighted slide.
4330 % \begin{macrocode}
4331 \ifnum\c@slide<\@nameuse{pd@te@\the\@tempcnta @start}%
4332 \else
4333 \ifnum\c@slide<\@nameuse{pd@te@\the\@tempcnta @stop}%
4334 \let\pd@tempa\pd@tochighlight
4335 \fi
4336 \fi
4337 \else
4338 \ifpd@@hlsections
4339 % \end{macrocode}
4340 % A highlighted section.
4341 % \begin{macrocode}
4342 \ifnum\@tempcntb=\c@pd@section
4343 \let\pd@tempa\pd@tochighlight
4344 \fi
4345 \else
4346 % \end{macrocode}
4347 % A section with a page.
4348 % \begin{macrocode}
4349 \ifnum#2=\c@slide\ifnum\@nameuse{pd@te@\the
4350 \@tempcnta @stop}=\c@slide\else
4351 \let\pd@tempa\pd@tochighlight
4352 \fi\fi
4353 \fi
4354 \fi
4355 \fi\fi
4356 % \end{macrocode}
4357 % Build the entry, but only if the entry should be visible.
4358 % \begin{macrocode}
4359 \ifx\pd@tempa\relax\else
4360 % \end{macrocode}
4361 % Some skip. Execute the font settings so that skips like |.6ex| work
4362 % properly.
4363 % \begin{macrocode}
4364 \if@tempswa\@tempswafalse\else
4365 \pd@usedtocfont
4366 \ifnum\pd@usedtocorient=\z@
4367 \ifnum#1=\z@\vskip\pd@@tocslidesep\else\vskip\pd@@tocsecsep\fi
4368 \else
4369 \ifnum#1=\z@\hskip\pd@@tocslidesep\else\hskip\pd@@tocsecsep\fi
4370 \fi
4371 \fi
4372 % \end{macrocode}
4373 % Add a section marker.
4374 % \begin{macrocode}
4375 \ifnum#1=\z@\else\pd@@tocsecm\fi
4376 % \end{macrocode}
4377 % Output the entry. This works as follows.
4378 % The text |#3| is passed through one macro of |\pd@tocslide| or
4379 % |\pd@tocsection| which adds a `per entry layout' (eg a bullet).
4380 % Then |\pd@tempa| (which is |\pd@tocdisplay| or |\pd@tochighlight|)
4381 % displays the item as requested and |\hyperlink| adds a link to the entry.
4382 % The lengths |\@tempdima| and |\@tempdimb| contain the horizontal
4383 % indent and the remaining space for the entry respectively. The first
4384 % entry does not get an indent if it is a slide.
4385 % \begin{macrocode}
4386 \ifcase\pd@toctype
4387 \@tempdimb\pd@@tocwidth
4388 \or
4389 \@tempdimb\pd@@stocwidth
4390 \or
4391 \@tempdimb\pd@@ntocwidth
4392 \fi
4393 \ifnum#1=\z@
4394 \ifnum\@tempcntb=\z@\@tempdima\z@\else
4395 \@tempdima\pd@@tocslideindent
4396 \advance\@tempdimb-\pd@@tocslideindent
4397 \fi
4398 \hyperlink{slide.#2}{\pd@tempa{\pd@tocslide{#3}}}%
4399 \else
4400 \@tempdima\pd@@tocsecindent
4401 \advance\@tempdimb-\pd@@tocsecindent
4402 \hyperlink{slide.#2}{\pd@tempa{\pd@tocsection{#3}}}%
4403 \fi
4404 \ifnum\pd@usedtocorient=\z@\par\fi
4405 \fi
4406 }
4407 % \end{macrocode}
4408 % \end{macro}
4409 % The keys for the |\tableofcontents| macro.
4410 % \begin{macrocode}
4411 \define@choicekey[pd]{toc}{content}[\pd@tempa\pd@content]{%
4412 all,sections,currentsection,future,futuresections}{}
4413 \define@choicekey[pd]{toc}{type}[\pd@tempa\pd@type]{0,1}{}
4414 \presetkeys[pd]{toc}{content=all,type=0}{}
4415 % \end{macrocode}
4416 % \begin{macro}{\tableofcontents}
4417 % Typesets overviews.
4418 % \begin{macrocode}
4419 \def\tableofcontents{\@testopt\pd@tableofcontents{}}
4420 % \end{macrocode}
4421 % \end{macro}
4422 % \begin{macro}{\pd@tableofcontents}
4423 % \oarg{options}\\
4424 % Workhorse.
4425 % \begin{macrocode}
4426 \def\pd@tableofcontents[#1]{%
4427 % \end{macrocode}
4428 % To keep definitions like |\pd@@type| (reused in |itemize|) local.
4429 % \begin{macrocode}
4430 \begingroup
4431 % \end{macrocode}
4432 % Set keys with use input.
4433 % \begin{macrocode}
4434 \setkeys[pd]{toc}{#1}%
4435 % \end{macrocode}
4436 % This keeps track of whether we are in a hidden section.
4437 % \begin{macrocode}
4438 \let\pd@tempc\z@
4439 \def\pdcontentsline##1##2##3{%
4440 % \end{macrocode}
4441 % Count sections in the toc.
4442 % \begin{macrocode}
4443 \ifnum##1>\z@\advance\@tempcntb\@ne\fi
4444 % \end{macrocode}
4445 % Used for additional markup like |\bfseries|.
4446 % \begin{macrocode}
4447 \let\pd@tempb\@empty
4448 % \end{macrocode}
4449 % The line that is to be typeset.
4450 % \begin{macrocode}
4451 \def\pd@tempa{\hyperlink{slide.##2}{\pd@tempb##3}\par}%
4452 % \end{macrocode}
4453 % If a line should not be displayed, then here is the action to be
4454 % taken depending on the type. 0 leaves out material, 1 typesets it
4455 % in inactive color.
4456 % \begin{macrocode}
4457 \ifnum\pd@type=\z@
4458 \def\pd@tempd{\let\pd@tempa\relax}%
4459 \else
4460 \def\pd@tempd{\def\pd@tempb{\color\pd@@iacolor}}%
4461 \fi
4462 % \end{macrocode}
4463 % Update whether we are in a hidden section.
4464 % \begin{macrocode}
4465 \ifcase##1\or\let\pd@tempc\z@\or
4466 \ifnum\@tempcntb=\c@pd@section
4467 \let\pd@tempc\z@
4468 \else
4469 \let\pd@tempc\@ne
4470 \fi
4471 \fi
4472 % \end{macrocode}
4473 % If in hidden section, hide it.
4474 % \begin{macrocode}
4475 \ifnum\pd@tempc=\@ne\pd@tempd\fi
4476 % \end{macrocode}
4477 % Here are the rules for displaying material, given the input of the user.
4478 % Case 0 is `all'.
4479 % \begin{macrocode}
4480 \ifcase\pd@content\or
4481 % \end{macrocode}
4482 % Case `sections'.
4483 % \begin{macrocode}
4484 \ifnum##1=\z@\let\pd@tempa\relax\fi
4485 \or
4486 % \end{macrocode}
4487 % Case `currentsection'.
4488 % \begin{macrocode}
4489 \ifnum\@tempcntb=\c@pd@section\else\pd@tempd\fi
4490 \or
4491 % \end{macrocode}
4492 % Case `future'.
4493 % \begin{macrocode}
4494 \ifnum\@tempcnta<\c@slide\pd@tempd\fi
4495 \or
4496 % \end{macrocode}
4497 % Case `futuresections'.
4498 % \begin{macrocode}
4499 \ifnum\@tempcntb<\c@pd@section\pd@tempd\fi
4500 \ifnum##1=\z@\pd@tempd\fi
4501 \fi
4502 % \end{macrocode}
4503 % If a section, use bold font.
4504 % \begin{macrocode}
4505 \ifnum##1>\z@\XKV@addtomacro@n\pd@tempb\bfseries\fi
4506 % \end{macrocode}
4507 % Finally, typeset the entry and add some spacing.
4508 % \begin{macrocode}
4509 \ifx\pd@tempa\relax\else
4510 \if@tempswa\@tempswafalse\else
4511 \ifnum##1=\z@\else\vskip5pt\fi
4512 \fi
4513 \ifnum##1=\z@\ifnum\@tempcntb=\z@\else\hskip15pt\fi\fi
4514 \pd@tempa
4515 \fi
4516 }%
4517 \@tempcnta\z@
4518 \@tempcntb\z@
4519 \@tempswatrue
4520 % \end{macrocode}
4521 % Loop over all available toc entries.
4522 % \begin{macrocode}
4523 \@whilenum\@tempcnta<\pd@notocentries\do{%
4524 \advance\@tempcnta\@ne
4525 \@nameuse{pd@te@\the\@tempcnta}%
4526 }%
4527 % \end{macrocode}
4528 % Restore everything.
4529 % \begin{macrocode}
4530 \endgroup
4531 }
4532 % \end{macrocode}
4533 % \end{macro}
4534 % Options for parts and sections. The template key allows for modification
4535 % of user input for normal slide and wide slide. A style can define
4536 % the environment that should take the place of, eg, |wideslide| when
4537 % the user requests that template.
4538 % \begin{macrocode}
4539 \define@choicekey*[pd]{section}{tocsection}[\pd@tempa\pd@tempb]{%
4540 false,true,hidden}{}
4541 \define@boolkey[pd]{section}[pd@@]{slide}[true]{}
4542 \define@cmdkey[pd]{section}[pd@@]{template}{%
4543 \def\pd@tempa{slide}%
4544 \ifx\pd@@template\pd@tempa
4545 \let\pd@@template\pd@@sectemp
4546 \else
4547 \def\pd@tempa{wideslide}%
4548 \ifx\pd@@template\pd@tempa
4549 \let\pd@@template\pd@@widesectemp
4550 \fi
4551 \fi
4552 }
4553 \presetkeys[pd]{section}{tocsection=true,slide=true,template=slide}{}
4554 % \end{macrocode}
4555 % Keys for style developers to overwrite user requests silently.
4556 % \begin{macrocode}
4557 \define@cmdkeys[pd]{section}[pd@@]{sectemp,widesectemp}
4558 \setkeys[pd]{section}{sectemp=slide,widesectemp=slide}
4559 \AtBeginDocument{\disable@keys[pd]{section}{sectemp,widesectemp}}
4560 % \end{macrocode}
4561 % \begin{macro}{\pd@orig@section}
4562 % Make a backup of the original |\section|, to be used later.
4563 % \begin{macrocode}
4564 \let\pd@orig@section\section
4565 % \end{macrocode}
4566 % \end{macro}
4567 % \begin{macro}{\section}
4568 % \changes{v1.1}{2005/09/19}{Corrected bug not allowing commas in section titles}
4569 % Used to create parts in the presentation and sections in the toc.
4570 % \begin{macrocode}
4571 \def\section{\@testopt\pd@section{}}
4572 % \end{macrocode}
4573 % \end{macro}
4574 % \begin{macro}{\pd@section}
4575 % \oarg{options}\marg{title}\\
4576 % Creates the part.
4577 % \begin{macrocode}
4578 \def\pd@section[#1]#2{%
4579 % \end{macrocode}
4580 % Necessary to keep toc and bm definitions local.
4581 % \begin{macrocode}
4582 \begingroup
4583 \pd@sectiontrue
4584 % \end{macrocode}
4585 % Extract the keys specific for |\part| first as to know what we are
4586 % going to produce.
4587 % \begin{macrocode}
4588 \setkeys*[pd]{section}{#1}%
4589 % \end{macrocode}
4590 % |\pd@tempb| comes from the |tocsection| key.
4591 % \begin{macrocode}
4592 \ifnum\pd@tempb=\z@
4593 % \end{macrocode}
4594 % |\XKV@rm|
4595 % contains all remaining keys that could not be set in the previous
4596 % |\setkeys| (namely, keys not in the |part| family).
4597 % \begin{macrocode}
4598 \ifpd@@slide
4599 \toks@{#2}%
4600 \@temptokena\expandafter{\XKV@rm}%
4601 \edef\pd@tempa{%
4602 \noexpand\begin{\pd@@template}%
4603 [bm={\the\toks@},toc={\the\toks@},%
4604 \the\@temptokena]{\the\toks@}%
4605 \noexpand\end{\pd@@template}%
4606 }%
4607 \pd@tempa
4608 \fi
4609 \else
4610 % \end{macrocode}
4611 % Set all slide specific keys as |bm| and |toc|.
4612 % \begin{macrocode}
4613 \setrmkeys*[pd]{slide}%
4614 % \end{macrocode}
4615 % Make the toc and bm entries.
4616 % \begin{macrocode}
4617 \stepcounter{pd@section}%
4618 \stepcounter{slide}%
4619 \def\pd@t@tle{#2}%
4620 \pd@maketocbm\pd@tempb
4621 \addtocounter{slide}\m@ne
4622 \ifpd@@slide
4623 % \end{macrocode}
4624 % Produce a slide if necessary.
4625 % \begin{macrocode}
4626 \toks@{#2}%
4627 \@temptokena\expandafter{\XKV@rm}%
4628 \edef\pd@tempa{%
4629 \noexpand\begin{\pd@@template}%
4630 [\the\@temptokena,bm=,toc=]{\the\toks@}%
4631 \noexpand\end{\pd@@template}%
4632 }%
4633 \pd@tempa
4634 \fi
4635 \fi
4636 \endgroup
4637 }
4638 % \end{macrocode}
4639 % \end{macro}
4640 % \begin{macro}{\onslide}
4641 % The normal version puts material on overlay 1, hence invisible in
4642 % ps or pdf. The starred version eats its argument, hence does not
4643 % move the cursor. The plus version put material in the inactive
4644 % color.
4645 % \begin{macrocode}
4646 \def\onslide{%
4647 \@ifnextchar-\pd@@nslide{\XKV@ifstar{\pd@onslide1}{%
4648 \XKV@ifplus{\pd@onslide2}{\pd@onslide0}}}%
4649 }
4650 % \end{macrocode}
4651 % \end{macro}
4652 % \begin{macro}{\pd@onslide}
4653 % \changes{v1.2}{2005/10/09}{Replaced \cs{ignorespaces} by \cs{@bsphack}
4654 % \cs{@esphack} in starred version}
4655 % \marg{type}\marg{overlays}\\
4656 % The workhorse. First determine whether the material should be
4657 % visible from the \meta{overlays} information. If not, process it in
4658 % the chosen way in \meta{type}.
4659 % \begin{macrocode}
4660 \def\pd@onslide#1#2{%
4661 % \end{macrocode}
4662 % Display or not?
4663 % \begin{macrocode}
4664 \pd@testdisp0{#2}%
4665 \if@tempswa
4666 % \end{macrocode}
4667 % Display.
4668 % \begin{macrocode}
4669 \let\pd@tempa\@firstofone
4670 \else
4671 \ifcase#1\relax
4672 % \end{macrocode}
4673 % Switch to overlay 1 (invisible), output |#1|, switch back to overlay 0.
4674 % We record the depth. This allows us to check whether we are in
4675 % hidden material already. If that is the case, don't step back to
4676 % overlay 0 as that will make following material visible again.
4677 % \begin{macrocode}
4678 \long\def\pd@tempa##1{%
4679 \pst@Verb{tx@ovlDict begin (1) BOL end}%
4680 \stepcounter{pd@onslidedepth}%
4681 ##1%
4682 \addtocounter{pd@onslidedepth}\m@ne
4683 \ifnum\c@pd@onslidedepth=\z@\ifnum\pd@currentstate=\z@
4684 \pst@Verb{tx@ovlDict begin (0) BOL end}%
4685 \fi\fi
4686 }%
4687 \or
4688 % \end{macrocode}
4689 % Eat material.
4690 % \begin{macrocode}
4691 \long\def\pd@tempa##1{\@bsphack\@esphack}%
4692 \or
4693 % \end{macrocode}
4694 % Put material in inactive color.
4695 % \begin{macrocode}
4696 \long\def\pd@tempa##1{{\color\pd@@iacolor##1}}%
4697 \fi
4698 \fi
4699 \pd@tempa
4700 }
4701 % \end{macrocode}
4702 % \end{macro}
4703 % \begin{macro}{\pd@testdisp}
4704 % \marg{type}\marg{overlays}\\
4705 % This macro is used by both |\onslide| and |\item|. The former can
4706 % use relative notation for which \meta{type} should be 0. For the
4707 % latter, \meta{type} is 1. \meta{overlays} is a specification of
4708 % overlays where material should be visible.
4709 % \begin{macrocode}
4710 \def\pd@testdisp#1#2{%
4711 \@tempswafalse
4712 % \end{macrocode}
4713 % Parse the comma separated specification.
4714 % \begin{macrocode}
4715 \XKV@for@n{#2}\pd@tempa{\expandafter\pd@t@stdisp\pd@tempa--\@nil#1}%
4716 }
4717 % \end{macrocode}
4718 % \end{macro}
4719 % \begin{macro}{\pd@t@stdisp}
4720 % \meta{s1}|-|\meta{s2}|-|\meta{s3}|\@nil|\marg{type}\\
4721 % Separate the input and check in which case we ended up. This macro
4722 % also computes the number of overlays that is necessary for this
4723 % slide. Notice several |\relax| at possibly unexpected places. This
4724 % seemed necessary for \TeX\ to properly set |\@tempswa|.
4725 % \begin{macrocode}
4726 \def\pd@t@stdisp#1-#2-#3\@nil#4{%
4727 \ifx\@empty#1\@empty\relax
4728 % \end{macrocode}
4729 % |-x| case.
4730 % \begin{macrocode}
4731 \ifnum#4=\z@
4732 % \end{macrocode}
4733 % Parse input further to find if relative syntax was used.
4734 % \begin{macrocode}
4735 \pd@checkrel#2\@nil\@tempcnta
4736 \else
4737 \@tempcnta#2%
4738 % \end{macrocode}
4739 % The item has no particular starting point, so it starts from overlay
4740 % 1. Save this for relative |\onslide| syntax in the current item.
4741 % \begin{macrocode}
4742 \def\pd@reloverlay{1}%
4743 \fi
4744 % \end{macrocode}
4745 % |\@tempcnta| now contains the number of overlays necessary for this
4746 % part of the specification. Take the maximum.
4747 % \begin{macrocode}
4748 \pd@compnooverlays\@tempcnta
4749 \ifnum\c@pd@overlay>\@tempcnta\else\@tempswatrue\fi
4750 \else
4751 % \end{macrocode}
4752 % |x|, |x-| and |x-y| cases. Check relative syntax and store the
4753 % corrected number in |\@tempcnta|.
4754 % \begin{macrocode}
4755 \ifnum#4=\z@
4756 \pd@checkrel#1\@nil\@tempcnta
4757 \else
4758 \@tempcnta#1%
4759 % \end{macrocode}
4760 % Here, the item has a special starting point. Save that to be able
4761 % to compute relative syntax in subsequent |\onslide|s.
4762 % \begin{macrocode}
4763 \def\pd@reloverlay{#1}%
4764 \fi
4765 \ifx\@empty#2\@empty\relax
4766 % \end{macrocode}
4767 % |x| and |x-| cases.
4768 % \begin{macrocode}
4769 \pd@compnooverlays\@tempcnta
4770 \ifx\@empty#3\@empty\relax
4771 % \end{macrocode}
4772 % |x| case.
4773 % \begin{macrocode}
4774 \ifnum\c@pd@overlay=\@tempcnta\@tempswatrue\fi
4775 \else
4776 % \end{macrocode}
4777 % |x-| case.
4778 % \begin{macrocode}
4779 \ifnum\c@pd@overlay<\@tempcnta\else\@tempswatrue\fi
4780 \fi
4781 \else
4782 % \end{macrocode}
4783 % |x-y| case. Store the final number |y| in |\@tempcntb|, maybe
4784 % corrected for relative syntax.
4785 % \begin{macrocode}
4786 \ifnum#4=\z@
4787 \pd@checkrel#2\@nil\@tempcntb
4788 \else
4789 \@tempcntb#2%
4790 \fi
4791 \pd@compnooverlays\@tempcntb
4792 \ifnum\c@pd@overlay<\@tempcnta\else
4793 \ifnum\c@pd@overlay>\@tempcntb\else\@tempswatrue\fi
4794 \fi
4795 \fi
4796 \fi
4797 }
4798 % \end{macrocode}
4799 % \end{macro}
4800 % \begin{macro}{\pd@checkrel}
4801 % \meta{number}|\@nil|\marg{counter}\\
4802 % Checks whether \meta{number} starts with a |+| and if yes, adds the
4803 % current item number in |\pd@reloverlay| to \meta{counter} to make
4804 % relative syntax possible.
4805 % \begin{macrocode}
4806 % Check whether relative syntax has been used.
4807 \def\pd@checkrel#1#2\@nil#3{%
4808 \def\pd@tempa{#1}%
4809 \def\pd@tempb{+}%
4810 \ifx\pd@tempa\pd@tempb
4811 #3#2\advance#3\pd@reloverlay
4812 \else#3#1#2\fi
4813 }
4814 % \end{macrocode}
4815 % \end{macro}
4816 % \begin{macro}{\pd@compnooverlays}
4817 % Keep track of the biggest number that we see as to compute the
4818 % number of overlays that we need to produce. Notice the |\relax| again.
4819 % \begin{macrocode}
4820 \def\pd@compnooverlays#1{%
4821 \ifnum#1>\pd@nooverlays\xdef\pd@nooverlays{\the#1}\fi\relax
4822 }
4823 % \end{macrocode}
4824 % \end{macro}
4825 % \begin{macro}{\pd@orig@item}
4826 % Copy of \LaTeX's |\@item|.
4827 % \begin{macrocode}
4828 \let\pd@orig@item\@item
4829 % \end{macrocode}
4830 % \end{macro}
4831 % \begin{macro}{\@item}
4832 % \oarg{label}\\
4833 % Creates the item label etcetera. We add an optional argument for
4834 % overlay specifications.
4835 % \begin{macrocode}
4836 \def\@item[#1]{\@ifnextchar<{\pd@item[#1]}{\pd@item[#1]<>}}
4837 % \end{macrocode}
4838 % \end{macro}
4839 % \begin{macro}{\pd@item}
4840 % \oarg{label}\larg{overlays}\\
4841 % This item allows for hiding the bullet and following content.
4842 % \begin{macrocode}
4843 \def\pd@item[#1]<#2>{%
4844 % \end{macrocode}
4845 % Possibly switch state.
4846 % \begin{macrocode}
4847 \pd@closeitem
4848 % \end{macrocode}
4849 % Enter some corrections when switching list type.
4850 % \begin{macrocode}
4851 \ifx\pd@@type\pd@currenttype\else
4852 \ifnum\pd@@type=\z@
4853 \pst@Verb{tx@ovlDict begin (1) BOL end}%
4854 \else
4855 \pst@Verb{tx@ovlDict begin (0) BOL end}%
4856 \normalcolor
4857 \fi
4858 \global\let\pd@currenttype\pd@@type
4859 \fi
4860 % \end{macrocode}
4861 % Make sure that we are on overlay 0 when the current state is such.
4862 % Then check if we need hiding.
4863 % \begin{macrocode}
4864 \ifnum\pd@currentstate=\z@
4865 \normalcolor\pst@Verb{tx@ovlDict begin (0) BOL end}%
4866 \pd@hide{#2}%
4867 \else
4868 % \end{macrocode}
4869 % Enter this color, just in case no other declarations will follow.
4870 % \begin{macrocode}
4871 \color\pd@@iacolor
4872 \fi
4873 % \end{macrocode}
4874 % We need to switch state at the next item. Take care of local definition.
4875 % \begin{macrocode}
4876 \ifx\@empty#2\@empty\else
4877 \def\pd@closeitem{\gdef\pd@currentstate{0}}%
4878 \fi
4879 % \end{macrocode}
4880 % Insert |\leavevmode| to avoid ps code to `leak into' |\item|, like
4881 % which used to be the case when |\item\onslide{2-}{test}\pause|.
4882 % \begin{macrocode}
4883 \pd@orig@item[#1]\leavevmode\ignorespaces
4884 }
4885 % \end{macrocode}
4886 % \end{macro}
4887 % \begin{macro}{\pd@orig@@trivlist}
4888 % \begin{macro}{\@trivlist}
4889 % Save the current state for later (after getting back from nested
4890 % lists). And we initialize some helper functions.
4891 % \begin{macrocode}
4892 \let\pd@orig@@trivlist\@trivlist
4893 \def\@trivlist{%
4894 \global\expandafter\let\csname pd@currentstate\the\c@pd@trivlist
4895 \endcsname\pd@currentstate
4896 \ifnum\pd@@type=\z@\let\pd@closeitem\relax\fi
4897 \stepcounter{pd@trivlist}%
4898 \pd@orig@@trivlist
4899 }
4900 % \end{macrocode}
4901 % \end{macro}
4902 % \end{macro}
4903 % \begin{macro}{\pd@orig@endtrivlist}
4904 % \begin{macro}{\endtrivlist}
4905 % At the end of each list, make sure that we re-initialize the state
4906 % of that level, if necessary.
4907 % \begin{macrocode}
4908 \let\pd@orig@endtrivlist\endtrivlist
4909 \def\endtrivlist{%
4910 \addtocounter{pd@trivlist}\m@ne
4911 \pd@revert{%
4912 \global\expandafter\let\expandafter\pd@currentstate\csname
4913 pd@currentstate\the\c@pd@trivlist\endcsname
4914 }%
4915 \pd@orig@endtrivlist
4916 }
4917 % \end{macrocode}
4918 % \end{macro}
4919 % \end{macro}
4920 % \begin{macro}{\pd@hide}
4921 % \meta{overlays}\\
4922 % Hides following material until the end of the current group, usually
4923 % the end of an environment like |itemize|.
4924 % \begin{macrocode}
4925 \def\pd@hide#1{%
4926 \ifx\@empty#1\@empty\else
4927 % \end{macrocode}
4928 % If still active, we might need to become inactive.
4929 % \begin{macrocode}
4930 \ifnum\pd@currentstate=\z@
4931 % \end{macrocode}
4932 % Check the state of this item.
4933 % \begin{macrocode}
4934 \pd@testdisp1{#1}%
4935 \if@tempswa\else
4936 \ifnum\pd@@type=\z@
4937 % \end{macrocode}
4938 % Hide material onto overlay 1.
4939 % \begin{macrocode}
4940 \pst@Verb{tx@ovlDict begin (1) BOL end}%
4941 \else
4942 % \end{macrocode}
4943 % Switch to inactive color.
4944 % \begin{macrocode}
4945 \color\pd@@iacolor
4946 \fi
4947 \gdef\pd@currentstate{1}%
4948 \fi
4949 \fi
4950 \fi
4951 }
4952 % \end{macrocode}
4953 % \end{macro}
4954 % \begin{macro}{\pause}
4955 % Hide following material on the current overlay.
4956 % \begin{macrocode}
4957 \def\pause{\@testopt\pd@p@use1}
4958 % \end{macrocode}
4959 % \end{macro}
4960 % \begin{macro}{\pd@p@use}
4961 % \oarg{steps}\\
4962 % This inserts a |\pd@hide| that hides material for the following
4963 % overlays, possibly some extra, when the optional argument is used.
4964 % \begin{macrocode}
4965 \def\pd@p@use[#1]{%
4966 \addtocounter{pd@pause}{#1}%
4967 \expandafter\pd@hide\expandafter{\the\c@pd@pause-}%
4968 \global\let\pd@revert\@gobble
4969 \ignorespaces
4970 }
4971 % \end{macrocode}
4972 % \end{macro}
4973 % \begin{macro}{\pd@deloverlays}
4974 % This macro disables overlays by redefining some internals.
4975 % \begin{macrocode}
4976 \def\pd@deloverlays{%
4977 \def\pd@hide##1{}%
4978 \def\pd@onslide##1##2{\@firstofone}%
4979 \let\@trivlist\pd@orig@@trivlist
4980 \let\endtrivlist\pd@orig@endtrivlist
4981 \def\pd@item[##1]<##2>{\pd@orig@item[##1]\leavevmode\ignorespaces}%
4982 }
4983 % \end{macrocode}
4984 % \end{macro}
4985 % We insert an extra key in the |enumitem| family to allow for changing
4986 % the type of the list. 0 uses ps hiding, 1 uses inactive color when
4987 % items are inactive.
4988 % \begin{macrocode}
4989 \define@cmdkey{enumitem}[pd@@]{type}{}
4990 \setkeys{enumitem}{type=0}
4991 % \end{macrocode}
4992 % \begin{macro}{\pd@pdftrans}
4993 % Inserts a pdf transition effect. It allows custom transition effects
4994 % like wipes in different directions. But if you do that, it will warn
4995 % that it might not work.
4996 % \begin{macrocode}
4997 \ifxetex\else
4998 \def\pd@pdftrans{%
4999 \@expandtwoargs\in@{,\pd@@trans,}{%
5000 ,Split,Blinds,Box,Wipe,Dissolve,Glitter,%
5001 Replace,Fly,Push,Cover,Uncover,Fade,}%
5002 \ifin@\else
5003 \pd@warn{Transition `\pd@@trans' might not be understood by
5004 your ps to pdf converter}%
5005 \fi
5006 \pdfmark{%
5007 pdfmark=/PUT,%
5008 Raw={\string{ThisPage\string}%
5009 <</Trans << /S /\pd@@trans\space >> >>%
5010 }%
5011 }%
5012 }
5013 \fi
5014 % \end{macrocode}
5015 % \end{macro}
5016 % Two column keys.
5017 % \begin{macrocode}
5018 \define@cmdkeys[pd]{twocolumn}[pd@@]{%
5019 lineheight,lfrheight,rfrheight,lcolwidth,rcolwidth,%
5020 topsep,bottomsep,indent,lineprop,lfrprop,rfrprop%
5021 }
5022 % \end{macrocode}
5023 % We use two lengths as we need to do some computations with these
5024 % key settings.
5025 % \begin{macrocode}
5026 \define@key[pd]{twocolumn}{colsep}{\setlength\pd@colsep{#1}}
5027 \define@key[pd]{twocolumn}{frsep}{\setlength\pd@frsep{#1}}
5028 % \end{macrocode}
5029 % Presets.
5030 % \begin{macrocode}
5031 \presetkeys[pd]{twocolumn}{frsep=1.5mm,colsep=.06\linewidth,%
5032 lcolwidth=.47\linewidth,rcolwidth=.47\linewidth,topsep=0cm,%
5033 bottomsep=0cm,indent=0cm,lineprop=,lfrprop=,rfrprop=,%
5034 lineheight=,lfrheight=,rfrheight=%
5035 }{}
5036 % \end{macrocode}
5037 % \begin{macro}{\twocolumn}
5038 % \begin{macro}{\pd@twocolumn}
5039 % Construct two columns and put material in it.
5040 % \begin{macrocode}
5041 \def\twocolumn{\@testopt\pd@twocolumn{}}
5042 \long\def\pd@twocolumn[#1]#2#3{%
5043 \setkeys[pd]{twocolumn}{#1}%
5044 \sbox\pd@tba{\begin{minipage}\pd@@lcolwidth\pd@@textfont#2\end{minipage}}%
5045 \setlength\@tempdima{\the\ht\pd@tba}%
5046 \addtolength\@tempdima{\the\dp\pd@tba}%
5047 \sbox\pd@tbb{\begin{minipage}\pd@@rcolwidth\pd@@textfont#3\end{minipage}}%
5048 \setlength\@tempdimb{\the\ht\pd@tbb}%
5049 \addtolength\@tempdimb{\the\dp\pd@tbb}%
5050 \setlength\@tempdimc{\pd@maxdim\@tempdima\@tempdimb}%
5051 \ifx\pd@@lfrheight\@empty\else
5052 \setlength\@tempdimc{\pd@maxdim\pd@@lfrheight\@tempdimc}%
5053 \fi
5054 \ifx\pd@@lineheight\@empty\else
5055 \setlength\@tempdimc{\pd@maxdim\pd@@lineheight\@tempdimc}%
5056 \fi
5057 \ifx\pd@@rfrheight\@empty\else
5058 \setlength\@tempdimc{\pd@maxdim\pd@@rfrheight\@tempdimc}%
5059 \fi
5060 \begin{pspicture}(-\pd@@indent,\pd@@topsep)(\linewidth,-\@tempdimc)%
5061 \psset{linewidth=.25pt,linecolor=\pd@color}%
5062 \setlength\@tempdima\pd@@lcolwidth
5063 \addtolength\@tempdima\pd@frsep
5064 \ifx\pd@@lfrheight\@empty\else
5065 \expandafter\psframe\expandafter[\pd@@lfrprop]%
5066 (-\pd@frsep,\pd@frsep)(\@tempdima,-\pd@@lfrheight)%
5067 \fi
5068 \rput[tl](0,0){\usebox\pd@tba}%
5069 \setlength\@tempdima\pd@@lcolwidth
5070 \addtolength\@tempdima{.5\pd@colsep}%
5071 \ifx\pd@@lineheight\@empty\else
5072 \expandafter\psline\expandafter[\pd@@lineprop]%
5073 (\@tempdima,\pd@frsep)(\@tempdima,-\pd@@lineheight)%
5074 \fi
5075 \addtolength\@tempdima{.5\pd@colsep}%
5076 \setlength\@tempdimc\@tempdima
5077 \addtolength\@tempdima{-\pd@frsep}%
5078 \setlength\@tempdimb\@tempdima
5079 \addtolength\@tempdimb\pd@@rcolwidth
5080 \addtolength\@tempdimb{2\pd@frsep}%
5081 \ifx\pd@@rfrheight\@empty\else
5082 \expandafter\psframe\expandafter[\pd@@rfrprop]%
5083 (\@tempdima,\pd@frsep)(\@tempdimb,-\pd@@rfrheight)%
5084 \fi
5085 \rput[tl](\@tempdimc,0){\usebox\pd@tbb}%
5086 \end{pspicture}\par
5087 }
5088 % \end{macrocode}
5089 % \end{macro}
5090 % \end{macro}
5091 % \begin{environment}{figure}
5092 % \begin{environment}{table}
5093 % Avoid floating |figure| and |table| environments.
5094 % \begin{macrocode}
5095 \renewenvironment{figure}[1][]{%
5096 \def\@captype{figure}%
5097 \par\begin{center}%
5098 }{\par\end{center}}
5099 \renewenvironment{table}[1][]{%
5100 \def\@captype{table}%
5101 \par\begin{center}%
5102 }{\par\end{center}}
5103 % \end{macrocode}
5104 % \end{environment}
5105 % \end{environment}
5106 % \begin{macro}{\pddefinelyxtemplate}
5107 % \meta{cs}\marg{template}
5108 % Support for \LyX, where slides are delimited by an explicit |\lyxend|.
5109 % This defines the \meta{cs} to look optional keys, the slide title
5110 % and finally for |\lyxend| to collect the body of the slide.
5111 % After that, it creates a slide with \meta{template}.
5112 % \begin{macrocode}
5113 \def\pddefinelyxtemplate#1#2{\def#1{\pd@lyxgetargsandbody{#2}}}
5114 % \end{macrocode}
5115 % \end{macro}
5116 % \begin{macro}{\pd@lyxgetargsandbody}
5117 % \marg{template}\\
5118 % Check for optional keys.
5119 % \begin{macrocode}
5120 \def\pd@lyxgetargsandbody#1{\@testopt{\pd@lyxget@rgsandbody{#1}}{}}
5121 % \end{macrocode}
5122 % \end{macro}
5123 % \begin{macro}{\pd@lyxget@rgsandbody}
5124 % \marg{template}\oarg{options}\marg{title}\\
5125 % This pretends to be an environment with name \meta{template}. The
5126 % slide title and body are saved, keys are set and the slide is executed.
5127 % This all happens in a local group to keep definitions (eg |toc| key)
5128 % local. We again have three different methods to process the slide.
5129 % Now, the verbatim version is more complicated as we have to look
5130 % for |\lyxend| instead of |\end{slide}|.
5131 % \begin{macrocode}
5132 \def\pd@lyxget@rgsandbody#1[#2]#3{%
5133 \begingroup
5134 % \end{macrocode}
5135 % Initial settings and checks.
5136 % \begin{macrocode}
5137 \def\@currenvir{#1}%
5138 \pd@get@rgs@ndbody{#2}{#3}%
5139 \ifcase\ifnum\pd@method>\z@\ifpd@display\@ne\fi\fi\z@
5140 % \end{macrocode}
5141 % Eat the body until |\lyxend|.
5142 % \begin{macrocode}
5143 \let\pd@tempa\pd@lyxget@rgs@ndbody
5144 \else
5145 \ifnum\pd@method=\@ne
5146 \def\pd@tempa{%
5147 % \end{macrocode}
5148 % Start writing to a temporary file and redefine |\verbatim@processline|
5149 % to scan lines for |\lyxend|. We only stop if |\lyxend| occurs on the
5150 % first character of the input line.
5151 % \begin{macrocode}
5152 \immediate\openout\pd@vrbout\jobname.vrb\relax
5153 \def\verbatim@processline{%
5154 % \end{macrocode}
5155 % Check for |\lyxend|.
5156 % \begin{macrocode}
5157 \pd@lyxget@rgs@ndb@dy
5158 \ifin@
5159 % \end{macrocode}
5160 % If we found it, stop. |\pd@tempa| eats the next four tokens which
5161 % would otherwise make \pf{verbatim} continue with reading.
5162 % \begin{macrocode}
5163 \let\pd@tempa\@gobblefour
5164 % \end{macrocode}
5165 % |\next| occurs in the \pf{verbatim} macros. We define it to close
5166 % the output file, execute the slide, write the remaining part of
5167 % the line with |\lyxend| to file and read it back in. We need to
5168 % do this as this content (probably |\lyxslide|) has been sanitized
5169 % while reading in verbatim mode. We could also use |\scantokens|
5170 % if we keep in mind that that, just as |\input|, introduces line
5171 % feeds and end-of-file characters in the input stream which the
5172 % \pf{verbatim} macros can't handle. Morten H\o gholm proposed the
5173 % following instead.
5174 %\begin{example}
5175 % \documentclass{article}
5176 % \begin{document}
5177 % \long\def\ReinsertTokens#1{%
5178 % \begingroup\endlinechar=-1\everyeof{}%
5179 % \scantokens{\def\next{\endgroup#1}}\next
5180 % }
5181 % \ReinsertTokens{\begin{verbatim}}
5182 % test
5183 % \end{verbatim}
5184 % \end{document}
5185 %\end{example}
5186 % We don't use that here as we don't want to force the use of
5187 % $\varepsilon$-\TeX\ at this moment. Instead, we read back exactly
5188 % one line via an input stream and execute that.
5189 % \begin{macrocode}
5190 \def\next{%
5191 \endgroup\immediate\closeout\pd@vrbout
5192 \let\verbatim@processline\pd@orig@verbatim@processline
5193 \pd@slide\endgroup
5194 \immediate\openout\pd@vrbout\jobname.vrb\relax
5195 \immediate\write\pd@vrbout{\pd@lyxrem}%
5196 \immediate\closeout\pd@vrbout
5197 \immediate\openin\pd@vrbout\jobname.vrb\relax
5198 \immediate\read\pd@vrbout to\pd@tempa
5199 \immediate\closein\pd@vrbout\pd@tempa
5200 }%
5201 \else
5202 % \end{macrocode}
5203 % Write a line of the body to file.
5204 % \begin{macrocode}
5205 \immediate\write\pd@vrbout{\the\verbatim@line}%
5206 \let\pd@tempa\relax
5207 \fi
5208 \pd@tempa
5209 }%
5210 % \end{macrocode}
5211 % Start the verbatim reading.
5212 % \begin{macrocode}
5213 \begingroup\let\do\@makeother\dospecials\catcode`\^^M\active
5214 \verbatim@start
5215 }%
5216 \else
5217 % \end{macrocode}
5218 % This is the |direct| method, similar as before.
5219 % \begin{macrocode}
5220 \pd@deloverlays
5221 \let\pd@tempa\pd@sl@de
5222 \def\lyxend{%
5223 \end{pd@minipage}\end{lrbox}%
5224 \ifx\pd@@textpos\@empty\else
5225 \rput[\pd@@texthook](\pd@@textpos){\usebox\pd@textbox}%
5226 \fi
5227 \endgroup
5228 }%
5229 \fi
5230 \fi
5231 \pd@tempa
5232 }
5233 % \end{macrocode}
5234 % \end{macro}
5235 % \begin{macro}{\pd@lyxget@args@ndbody}
5236 % \meta{body}|\lyxend|\\
5237 % Collect material until |\lyxend|, save that in the token register
5238 % and start processing the slide, if necessary.
5239 % \begin{macrocode}
5240 \long\def\pd@lyxget@rgs@ndbody#1\lyxend{%
5241 \pd@body{#1}%
5242 \ifpd@display\pd@slide\fi
5243 \endgroup
5244 }
5245 % \end{macrocode}
5246 % \end{macro}
5247 % \begin{macrocode}
5248 \begingroup\lccode`\!`\\\lowercase{\endgroup
5249 % \end{macrocode}
5250 % \begin{macro}{\pd@lyxget@args@ndb@dy}
5251 % \begin{macro}{\pd@lyxget@args@ndb@dy}
5252 % These macros check if |\lyxend| occurs in the input line (in
5253 % sanitize version) and if so, if it occurs on the first character.
5254 % That allows for including |\lyxend| somewhere in the line, for
5255 % instance, in a verbatim text.
5256 % \begin{macrocode}
5257 \def\pd@lyxget@rgs@ndb@dy{%
5258 \@expandtwoargs\in@{!lyxend}{\the\verbatim@line}%
5259 \ifin@\expandafter\pd@lyxget@rgs@ndb@d@\the\verbatim@line\@nil\fi
5260 }
5261 \def\pd@lyxget@rgs@ndb@d@#1!lyxend#2\@nil{%
5262 \ifx\@empty#1\@empty\gdef\pd@lyxrem{#2}\else\in@false\fi
5263 }}
5264 % \end{macrocode}
5265 % \end{macro}
5266 % \end{macro}
5267 % \begin{macro}{\lyxend}
5268 % This macro acts mainly as delimiter and doesn't need to be defined
5269 % but we do it anyway as to make it harmless when there is a superfluous
5270 % one in the file.
5271 % \begin{macrocode}
5272 \def\lyxend{}
5273 % \end{macrocode}
5274 % \end{macro}
5275 % \begin{macro}{\lyxnote}
5276 % \begin{macro}{\lyxslide}
5277 % \begin{macro}{\lyxwideslide}
5278 % \begin{macro}{\lyxemptyslide}
5279 % These create the standard available templates. Any template can be
5280 % supported for \LyX\ in this way.
5281 % \begin{macrocode}
5282 \pddefinelyxtemplate\lyxnote{note}
5283 \pddefinelyxtemplate\lyxslide{slide}
5284 \pddefinelyxtemplate\lyxwideslide{wideslide}
5285 \pddefinelyxtemplate\lyxemptyslide{emptyslide}
5286 % \end{macrocode}
5287 % \end{macro}
5288 % \end{macro}
5289 % \end{macro}
5290 % \end{macro}
5291 % \changes{v1.1}{2005/09/19}{Solved \texttt{itemize} and \pf{frenchb} problem}
5292 % Some compatibility things. We don't want \pf{frenchb} from
5293 % \pf{babel} to redefine the |itemize| environment.
5294 % \begin{macrocode}
5295 \AtBeginDocument{%
5296 \@expandtwoargs\in@{,frenchb.ldf,}{,\@filelist,}%
5297 \ifin@
5298 \let\bbl@frenchindent\relax
5299 \let\bbl@frenchitemize\relax
5300 \let\bbl@frenchlistspacing\relax
5301 \fi
5302 % \end{macrocode}
5303 % \begin{environment}{thebibliography}
5304 % Redefine the |thebibliography| environment. This is based on
5305 % \pf{article}, but does not create marks or a section.
5306 % \begin{macrocode}
5307 \renewenvironment{thebibliography}[1]{%
5308 \list{\@biblabel{\@arabic\c@enumiv}}{%
5309 \settowidth\labelwidth{\@biblabel{#1}}%
5310 \leftmargin\labelwidth
5311 \advance\leftmargin\labelsep
5312 \@openbib@code
5313 \usecounter{enumiv}%
5314 \let\p@enumiv\@empty
5315 \renewcommand\theenumiv{\@arabic\c@enumiv}%
5316 }%
5317 \sloppy
5318 \clubpenalty4000
5319 \@clubpenalty \clubpenalty
5320 \widowpenalty4000%
5321 \sfcode`\.\@m
5322 }{%
5323 \def\@noitemerr
5324 {\@latex@warning{Empty `thebibliography' environment}}%
5325 \endlist
5326 }%
5327 \@ifpackageloaded{CJK}{%
5328 \count@=127
5329 \@whilenum\count@<255\do{%
5330 \advance\count@\@ne
5331 \lccode`\~=\count@
5332 \catcode\count@=\active
5333 \lowercase{\def~{\kern1ex}}%
5334 }%
5335 \hypersetup{CJKbookmarks=true}%
5336 }{}%
5337 % \end{macrocode}
5338 % \end{environment}
5339 % \begin{macrocode}
5340 }
5341 \ifnum\pd@mode=\z@
5342 % \end{macrocode}
5343 % \begin{macro}{\label}
5344 % \begin{macro}{\label@in@display}
5345 % \marg{name}\\
5346 % We redefine these two macros (|\AtBeginDocument| for \pf{nameref}).
5347 % For the current slide, we put all label names in a list. If the name
5348 % reappears, we don't issue the original command anymore. This is necessary
5349 % to avoid writing the same label multiple times because of overlays.
5350 % This disables the check for multiply defined labels inside slides,
5351 % but leaves this system in place over multiple slides. The latter
5352 % macro is used in \pf{amsmath}.
5353 % \begin{macrocode}
5354 \AtBeginDocument{%
5355 \let\pd@orig@label\label
5356 \def\label{\pd@label\pd@orig@label}%
5357 \let\pd@orig@label@in@display\label@in@display
5358 \def\label@in@display{\pd@label\pd@orig@label@in@display}%
5359 }
5360 % \end{macrocode}
5361 % \end{macro}
5362 % \end{macro}
5363 % \begin{macro}{\pd@label}
5364 % \meta{label-macro}\marg{name}\\
5365 % Helper macro that checks reappearance of labels on slides.
5366 % \begin{macrocode}
5367 \def\pd@label#1#2{%
5368 \@expandtwoargs\in@{,#2,}{,\pd@labels,}%
5369 \ifin@\else
5370 \global\XKV@addtolist@x\pd@labels{#2}%
5371 #1{#2}%
5372 \fi
5373 }
5374 % \end{macrocode}
5375 % \end{macro}
5376 % No overlays in print of handout mode.
5377 % \begin{macrocode}
5378 \else\pd@deloverlays\let\pd@pdftrans\relax\fi
5379 % \end{macrocode}
5380 % For handout mode, we make some redefinitions.
5381 % \begin{macrocode}
5382 \ifnum\pd@mode=2
5383 % \end{macrocode}
5384 % \begin{macro}{\pd@newpage}
5385 % \begin{macro}{\pd@n@wpage}
5386 % Alternate between making a |\newpage| and not. This results in
5387 % two slides per page.
5388 % \begin{macrocode}
5389 \def\pd@n@wpage{%
5390 \gdef\pd@newpage{%
5391 \global\let\pd@newpage\pd@n@wpage
5392 \newpage
5393 }%
5394 }
5395 \let\pd@newpage\pd@n@wpage
5396 % \end{macrocode}
5397 % \end{macro}
5398 % \end{macro}
5399 % \begin{macro}{\pd@get@rgsandbody}
5400 % \changes{v1.2}{2005/10/09}{Added \cs{@currentlabel} definition}
5401 % \changes{v1.3}{2005/12/06}{Made body text \cs{raggedright}}
5402 % \changes{v1.4}{2005/12/10}{Fixed \LyX\ handout mode}
5403 % The new slide environment.
5404 % \begin{macrocode}
5405 \def\pd@get@rgsandbody#1[#2]#3{%
5406 \setkeys[pd]{glslide,slide}{#2}%
5407 \def\pd@t@tle{#3}%
5408 % \end{macrocode}
5409 % Determine to include this slide or not.
5410 % \begin{macrocode}
5411 \def\pd@tempa{note}%
5412 \let\pd@resa\@currenvir
5413 \pd@displaytrue
5414 \ifcase\pd@display
5415 \ifx\pd@resa\pd@tempa\relax\pd@displayfalse\fi
5416 \or
5417 \ifx\pd@resa\pd@tempa\else\pd@displayfalse\fi
5418 \fi
5419 % \end{macrocode}
5420 % No bookmarks or targets for notes.
5421 % \begin{macrocode}
5422 \ifx\pd@resa\pd@tempa\else
5423 \stepcounter{slide}%
5424 \edef\@currentlabel{\the\c@slide}%
5425 \let\pd@tempb\@empty
5426 \pd@maketocbm0%
5427 \hyper@anchorstart{slide.\the\c@slide}\hyper@anchorend
5428 \fi
5429 % \end{macrocode}
5430 % For \LyX\ handout mode. Reset it immediately to avoid any problems
5431 % with superfluous occurrences of |\lyxend|.
5432 % \begin{macrocode}
5433 \gdef\lyxend{\gdef\lyxend{}\pd@slide}%
5434 % \end{macrocode}
5435 % The |lrbox| will typeset and capture content. This allows for
5436 % verbatim on slides.
5437 % \begin{macrocode}
5438 \begin{lrbox}\pd@textbox
5439 % \end{macrocode}
5440 % $16=2\times7+2\times1$.
5441 % \begin{macrocode}
5442 \@tempdima\linewidth
5443 \ifpd@@nohandoutframes\else
5444 \advance\@tempdima-16pt
5445 \fi
5446 \begin{minipage}\@tempdima
5447 \subsection*\pd@t@tle
5448 % \end{macrocode}
5449 % This |\pd@displaytrue| only acts locally to make sure that |\endslide|
5450 % is executed.
5451 % \begin{macrocode}
5452 \pd@displaytrue\raggedright
5453 }
5454 % \end{macrocode}
5455 % \end{macro}
5456 % \begin{macro}{\pd@lyxget@rgsandbody}
5457 % In \LyX\ handout mode, we start making slides in the same way as in
5458 % \LaTeX\ handout mode, but in |\pd@get@rgsandbody|, we need to make
5459 % |\lyxend| to finish the slide boxes which is normally done by
5460 % |\end{slide}| (or friends).
5461 % \begin{macrocode}
5462 \let\pd@lyxget@rgsandbody\pd@get@rgsandbody
5463 % \end{macrocode}
5464 % \end{macro}
5465 % \begin{macro}{\pd@slide}
5466 % This creates the slide, if necessary.
5467 % \begin{macrocode}
5468 \def\pd@slide{%
5469 \end{minipage}\end{lrbox}%
5470 % \end{macrocode}
5471 % If this slide should be visible, include it in a frame.
5472 % \begin{macrocode}
5473 \ifpd@display
5474 \ifpd@@nohandoutframes
5475 \usebox\pd@textbox
5476 \else
5477 \fboxrule1pt\fboxsep7pt
5478 \fbox{\usebox\pd@textbox}%
5479 \fi
5480 \par\smallskip
5481 \pd@@lf\hfill\ifx\pd@@rf\@empty\else\pd@@rf\ -- \fi
5482 \def\pd@tempa{note}%
5483 \ifx\pd@resa\pd@tempa
5484 % \end{macrocode}
5485 % Determine if this is another note with the same slide.
5486 % \begin{macrocode}
5487 \ifnum\c@slide=\pd@notet
5488 \stepcounter{note}%
5489 \else
5490 \setcounter{note}{1}%
5491 \fi
5492 \xdef\pd@notet{\the\c@slide}%
5493 \thenote
5494 \else\theslide\fi
5495 \par\bigskip
5496 \ifpd@@nohandoutpagebreaks\else\vfill\pd@newpage\fi
5497 \fi
5498 }
5499 % \end{macrocode}
5500 % \end{macro}
5501 % \begin{macro}{\pd@maketitle}
5502 % Uses the original \pf{article} |\maketitle| and puts the table of
5503 % contents below it.
5504 % \begin{macrocode}
5505 \def\pd@maketitle[#1]{%
5506 \pd@orig@maketitle
5507 \vskip50pt
5508 \pd@puttoc0%
5509 \newpage
5510 \stepcounter{slide}%
5511 }
5512 % \end{macrocode}
5513 % \end{macro}
5514 % \begin{macro}{\pd@pdcontentsline}
5515 % \changes{v1.1}{2005/09/19}{Solved toc bug in handout mode}
5516 % \marg{type}\marg{target}\marg{title}\\
5517 % Make table of contents entries.
5518 % \begin{macrocode}
5519 \def\pd@pdcontentsline#1#2#3{%
5520 \ifnum#1=\z@
5521 % \end{macrocode}
5522 % Slide.
5523 % \begin{macrocode}
5524 \ifnum\@tempcntb>\z@\hskip15pt\fi
5525 \hyperlink{slide.#2}{#3}%
5526 \leaders\hbox{\hss.\ \hss}\hfill#2\par
5527 \else
5528 % \end{macrocode}
5529 % Section.
5530 % \begin{macrocode}
5531 \if@tempswa\else\vskip10pt\fi
5532 \hyperlink{slide.#2}{\bfseries#3}%
5533 {\hfill\bfseries#2}\par
5534 \global\advance\@tempcntb\@ne
5535 \fi
5536 \@tempswafalse
5537 }
5538 % \end{macrocode}
5539 % \end{macro}
5540 % \begin{macro}{\pd@section}
5541 % \oarg{options}\marg{title}\\
5542 % Like before, but simplified.
5543 % \begin{macrocode}
5544 \def\pd@section[#1]#2{%
5545 \begingroup
5546 \setkeys*[pd]{section}{#1}%
5547 \setrmkeys*[pd]{slide}%
5548 \def\pd@tempa{%
5549 \stepcounter{slide}%
5550 \def\pd@t@tle{#2}%
5551 \pd@maketocbm\pd@tempb
5552 \hyper@anchorstart{slide.\the\c@slide}\hyper@anchorend
5553 \pd@orig@section*{#2\normalfont\hfill\theslide}%
5554 }%
5555 \ifnum\pd@display=\@ne\ifpd@@slide\stepcounter{slide}\fi\else
5556 \ifnum\pd@tempb=\z@
5557 \ifpd@@slide\pd@tempa\fi
5558 \else
5559 \stepcounter{pd@section}%
5560 \pd@tempa
5561 \ifpd@@slide\else\addtocounter{slide}\m@ne\fi
5562 \fi
5563 \fi
5564 \endgroup
5565 }
5566 % \end{macrocode}
5567 % \end{macro}
5568 % End of handout mode specific definitions.
5569 % \begin{macrocode}
5570 \fi
5571 % \end{macrocode}
5572 % Here follow some miscellaneous utility macros.
5573 % \begin{macro}{\@nameedef}
5574 % \marg{csname}\\
5575 % Similar as |\@namedef|, but uses |\edef| to define the command with
5576 % name \meta{csname}.
5577 % \begin{macrocode}
5578 \def\@nameedef#1{\expandafter\edef\csname#1\endcsname}
5579 % \end{macrocode}
5580 % \end{macro}
5581 % \begin{macro}{\pd@namelet}
5582 % \marg{cs1}\marg{cs2}\\
5583 % Copy the replacement text of macro with name \meta{cs2} to the macro
5584 % with name \meta{cs1}. We use a private version as |\@namelet| has
5585 % many conflicting definitions is different packages.
5586 % \begin{macrocode}
5587 \def\pd@namelet#1#2{%
5588 \expandafter\let\csname#1\expandafter\endcsname\csname#2\endcsname
5589 }
5590 % \end{macrocode}
5591 % \end{macro}
5592 % \begin{macro}{\pd@pop}
5593 % \begin{macro}{\pd@p@p}
5594 % \meta{list}\meta{cmd}
5595 % Remove the first element of a comma separated \meta{list} and store
5596 % that in \meta{cmd}.
5597 % \begin{macrocode}
5598 \def\pd@pop#1#2{%
5599 \@expandtwoargs\in@{,}{#1}%
5600 \ifin@\expandafter\pd@p@p#1\@nil#2#1\else\let#2#1\let#1\@empty\fi
5601 }
5602 \def\pd@p@p#1,#2\@nil#3#4{\def#3{#1}\def#4{#2}}
5603 % \end{macrocode}
5604 % \end{macro}
5605 % \end{macro}
5606 % \begin{macro}{\pd@maxdim}
5607 % \marg{dim1}\marg{dim2}\\
5608 % Compute the maximum of two dimensions.
5609 % \begin{macrocode}
5610 \def\pd@maxdim#1#2{\ifdim#1>#2#1\else#2\fi}
5611 % \end{macrocode}
5612 % \end{macro}
5613 % \begin{macro}{\pd@minipage}
5614 % \begin{macro}{\endpd@minipage}
5615 % Adapted version of the |minipage| environment to do normal footnote
5616 % typesetting.
5617 % \begin{macrocode}
5618 \def\pd@minipage{%
5619 \leavevmode
5620 \@pboxswfalse
5621 \setlength\@tempdima\pd@@textwidth
5622 \def\@mpargs{{t}{\pd@@textheight}[t]{\pd@@textwidth}}%
5623 \setbox\@tempboxa\vbox\bgroup
5624 \color@begingroup
5625 \hsize\@tempdima
5626 \textwidth\hsize
5627 \columnwidth\hsize
5628 \@parboxrestore
5629 \let\@footnotetext\@mpfootnotetext
5630 \let\@listdepth\@mplistdepth
5631 \@mplistdepth\z@
5632 \@minipagerestore
5633 \@setminipage
5634 }
5635 \def\endpd@minipage{%
5636 \par
5637 \unskip
5638 \ifvoid\@mpfootins\else
5639 \vfill
5640 \normalcolor
5641 \footnoterule
5642 \unvbox\@mpfootins
5643 \fi
5644 \@minipagefalse
5645 \color@endgroup
5646 \egroup
5647 \expandafter\@iiiparbox\@mpargs{\unvbox\@tempboxa}%
5648 }
5649 % \end{macrocode}
5650 % \end{macro}
5651 % \end{macro}
5652 % \begin{macro}{\pd@orig@verbatim@processline}
5653 % Backup of |\verbatim@processline| for restoring after verbatim
5654 % reading of the body of a slide.
5655 % \begin{macrocode}
5656 \let\pd@orig@verbatim@processline\verbatim@processline
5657 % \end{macrocode}
5658 % \end{macro}
5659 % \begin{macro}{\psds@ocircle}
5660 % \begin{macro}{\psds@osquare}
5661 % Two macros for open circle and open square dots by Herbert Vo\ss.
5662 % \begin{macrocode}
5663 \def\psds@ocircle{\pst@gdot{ 0 0 DS 0 360 arc stroke }}
5664 \def\psds@osquare{%
5665 \pst@gdot{
5666 DS .886 mul /r ED
5667 r r moveto r r neg L r neg r neg L r neg r L
5668 closepath stroke }%
5669 }
5670 % \end{macrocode}
5671 % \end{macro}
5672 % \end{macro}
5673 % Load style.
5674 % \begin{macrocode}
5675 \IfFileExists{powerdot-\pd@@style.sty}{
5676 \RequirePackage{powerdot-\pd@@style}
5677 }{
5678 \pd@error{unknown style `\pd@@style'}
5679 }
5680 % \end{macrocode}
5681 % Check integrity of the style file.
5682 % \begin{macrocode}
5683 \ifx\titleslide\@undefined
5684 \pd@error{`titleslide' environment
5685 not defined by style `\pd@@style'}
5686 \fi
5687 \ifx\slide\@undefined
5688 \pd@error{`slide' environment not
5689 defined by style `\pd@@style'}
5690 \fi
5691 \ifx\pd@title\@undefined\let\pd@title\@firstofone\fi
5692 \ifx\pd@slidetitle\@undefined\let\pd@slidetitle\@firstofone\fi
5693 \ifx\pd@sectiontitle\@undefined\let\pd@sectiontitle\@firstofone\fi
5694 % \end{macrocode}
5695 % Define the standard ways to make toc entries and highlighted entries.
5696 % We do this here so that designers could use |\newcommand| or |\def|
5697 % in the style file.
5698 % \begin{macrocode}
5699 \ifx\pd@tocdisplay\@undefined
5700 \def\pd@tocdisplay#1{%
5701 \hskip\@tempdima
5702 \begin{minipage}[b]\@tempdimb
5703 \pd@usedtocfont\color\pd@@toctcolor#1%
5704 \end{minipage}%
5705 }
5706 \fi
5707 \ifx\pd@tochighlight\@undefined
5708 \def\pd@tochighlight#1{%
5709 \psframebox*[framesep=\pd@@tocfrsep,%
5710 fillcolor=\pd@@tochlcolor,boxsep=false]{%
5711 \hskip\@tempdima
5712 \begin{minipage}[b]\@tempdimb
5713 \pd@usedtocfont\color\pd@@tochltcolor#1%
5714 \end{minipage}%
5715 }%
5716 }
5717 \fi
5718 \ifx\pd@tocslide\@undefined\let\pd@tocslide\@firstofone\fi
5719 \ifx\pd@tocsection\@undefined\let\pd@tocsection\@firstofone\fi
5720 %</powerdot>
5721 % \end{macrocode}
5722 %
5723 % \Finale
5724 % \endinput
5725 %
5726 %<*pddefault>
5727 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
5728 \ProvidesPackage{powerdot-default}[2014/01/01 v1.5 default style (HA)]
5729 \RequirePackage{pifont}
5730 \definecolor{pdcolor1}{rgb}{.17,.31,.44}
5731 \definecolor{pdcolor2}{rgb}{.75,.85,.92}
5732 \definecolor{pdcolor3}{rgb}{.9,.95,.98}
5733 \pddefinepalettes{blue}{}{red}{
5734 \colorlet{pdcolor1}{pdcolor1>wheel,150}
5735 \colorlet{pdcolor2}{pdcolor2>wheel,150}
5736 \colorlet{pdcolor3}{pdcolor3>wheel,150}
5737 }{green}{
5738 \colorlet{pdcolor1}{pdcolor1>wheel,290}
5739 \colorlet{pdcolor2}{pdcolor2>wheel,290}
5740 \colorlet{pdcolor3}{pdcolor3>wheel,290}
5741 }{yellow}{
5742 \colorlet{pdcolor1}{pdcolor1>wheel,-150}
5743 \colorlet{pdcolor2}{pdcolor2>wheel,-150}
5744 \colorlet{pdcolor3}{pdcolor3>wheel,-150}
5745 }{brown}{
5746 \colorlet{pdcolor1}{pdcolor1>wheel,180}
5747 \colorlet{pdcolor2}{pdcolor2>wheel,180}
5748 \colorlet{pdcolor3}{pdcolor3>wheel,180}
5749 }{purple}{
5750 \colorlet{pdcolor1}{pdcolor1>wheel,45}
5751 \colorlet{pdcolor2}{pdcolor2>wheel,45}
5752 \colorlet{pdcolor3}{pdcolor3>wheel,45}
5753 }
5754 \newbox\pd@imagebox
5755 \pdifsetup{landscape}{%
5756 \sbox\pd@imagebox{\includegraphics[trim=50 20 0 20,clip,%
5757 width=.17\slidewidth,height=.1\slideheight]{powerdot-default.ps}%
5758 }%
5759 }{%
5760 \sbox\pd@imagebox{\includegraphics[trim=170 0 80 0,clip,%
5761 height=.1\slideheight]{powerdot-default.ps}%
5762 }%
5763 }
5764 \pddefinetemplate{titleslide}{%
5765 titlefont=\large\bfseries\centering,
5766 clockcolor=pdcolor1,clockpos={.99\slidewidth,\slideheight},
5767 lfpos={.03\slidewidth,.04\slideheight},
5768 cfpos={.5\slidewidth,.04\slideheight},
5769 rfpos={.97\slidewidth,.04\slideheight},
5770 texthook=t,textpos={.5\slidewidth,.7\slideheight},
5771 textwidth=.9\slidewidth,textfont=\centering,
5772 textheight=.6\slideheight
5773 }{%
5774 \psframe*[linecolor=pdcolor3,linewidth=0pt]%
5775 (0,.8\slideheight)(\slidewidth,0)%
5776 \psline[linecolor=pdcolor1]%
5777 (0,.8\slideheight)(\slidewidth,.8\slideheight)%
5778 }
5779 \pddefinetemplate{basic}{%
5780 titlepos={.2\slidewidth,.93\slideheight},
5781 titlewidth=.75\slidewidth,textheight=.68\slideheight,
5782 titlefont=\large\bfseries\raggedright,
5783 clockcolor=pdcolor1,clockpos={.99\slidewidth,\slideheight},
5784 lfpos={.03\slidewidth,.04\slideheight},
5785 cfpos={.5\slidewidth,.04\slideheight},
5786 rfpos={.97\slidewidth,.04\slideheight},
5787 tocslidesep=.6ex,
5788 toctcolor=pdcolor1,
5789 tochlcolor=pdcolor1,
5790 tochltcolor=pdcolor3,
5791 ifsetup=portrait,
5792 textpos={.05\slidewidth,.83\slideheight},
5793 textwidth=.9\slidewidth,
5794 tocsecsep=.6ex,
5795 stochook=tr,stocpos={.48\slidewidth,.09\slideheight},
5796 stocfont=\tiny\raggedleft,
5797 ntocpos={.52\slidewidth,.09\slideheight},
5798 ifsetup=landscape,
5799 textpos={.2\slidewidth,.83\slideheight},
5800 textwidth=.75\slidewidth
5801 }{%
5802 \psframe*[linecolor=pdcolor3,linewidth=0pt]%
5803 (0,\slideheight)(\slidewidth,.9\slideheight)%
5804 \psframe*[linecolor=pdcolor2,linewidth=0pt]%
5805 (0,0)(\slidewidth,.1\slideheight)%
5806 \rput[tl](0,\slideheight){\usebox\pd@imagebox}%
5807 }
5808 \pddefinetemplate[basic]{wideslide}{%
5809 textpos={.05\slidewidth,.83\slideheight},
5810 textwidth=.9\slidewidth
5811 }{}
5812 \pddefinetemplate[basic]{slide}{%
5813 ifsetup=landscape,
5814 tocpos={.015\slidewidth,.83\slideheight},
5815 tocwidth=.14\slidewidth,
5816 tocsecm={\psline[linewidth=.5pt,linecolor=pdcolor1]%
5817 (-.05,-.05)(.143\slidewidth,-.05)}
5818 }{%
5819 \pdifsetup{landscape}{%
5820 \psframe[fillstyle=solid,fillcolor=pdcolor3,linestyle=none,%
5821 linewidth=0pt](0,.9\slideheight)(.17\slidewidth,.1\slideheight)%
5822 }{}%
5823 }
5824 \pddefinetemplate[slide]{sectionslide}{%
5825 titlehook=c,titlefont=\Large\bfseries\centering,
5826 ifsetup=landscape,
5827 titlepos={.575\slidewidth,.55\slideheight},
5828 ifsetup=portrait,
5829 titlewidth=.9\slidewidth,
5830 titlepos={.5\slidewidth,.55\slideheight}
5831 }{}
5832 \pddefinetemplate[wideslide]{sectionwideslide}{%
5833 titlehook=c,titlefont=\Large\bfseries\centering,
5834 titlewidth=.9\slidewidth,
5835 titlepos={.5\slidewidth,.55\slideheight}
5836 }{}
5837 \setkeys[pd]{section}{%
5838 sectemp=sectionslide,widesectemp=sectionwideslide
5839 }
5840 \def\labelitemi{\footnotesize\ding{110}}
5841 \def\labelitemii{\small\ding{117}}
5842 \def\labelitemiii{\tiny\ding{110}}
5843 \def\labelitemiv{\tiny\ding{117}}
5844 \pdsetup{
5845 list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}
5846 }
5847 \def\rmdefault{cmss}
5848 %</pddefault>
5849 %
5850 %<*pdtycja>
5851 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
5852 \ProvidesPackage{powerdot-tycja}[2005/12/10 v1.4 tycja style (HA)]
5853 \RequirePackage{pifont}
5854 \RequirePackage{pst-grad}
5855 \pddefinepalettes{default}{
5856 \definecolor{pdcolor1}{rgb}{.09,.27,.47}
5857 \definecolor{pdcolor2}{rgb}{1,.81,.42}
5858 \definecolor{pdcolor3}{rgb}{1,.97,.84}
5859 }
5860 \pddefinetemplate{basic}{
5861 lfpos={.03\slidewidth,.04\slideheight},
5862 lffont=\scriptsize\color{pdcolor3},
5863 cfpos={.5\slidewidth,.04\slideheight},
5864 cffont=\scriptsize\color{pdcolor3},
5865 rfpos={.97\slidewidth,.04\slideheight},
5866 rffont=\scriptsize\color{pdcolor3},
5867 clockcolor=pdcolor1,clockhook=tl,clockalign=0,
5868 clockpos={0,\slideheight},
5869 tocslidesep=.6ex,
5870 ifsetup=landscape,
5871 textheight=.66\slideheight,
5872 toctcolor=pdcolor1,
5873 tochlcolor=pdcolor1,
5874 tochltcolor=pdcolor3,
5875 tocpos={.845\slidewidth,.81\slideheight},
5876 tocwidth=.14\slidewidth,
5877 tocsecm={\psline[linewidth=.5pt,linecolor=pdcolor1]%
5878 (-.05,-.05)(.143\slidewidth,-.05)},
5879 ifsetup=portrait,
5880 toctcolor=pdcolor3,
5881 tochlcolor=pdcolor3,
5882 tochltcolor=pdcolor1,
5883 tocsecsep=.6ex,
5884 textheight=.68\slideheight,
5885 stochook=tr,stocpos={.48\slidewidth,.09\slideheight},
5886 stocfont=\tiny\raggedleft,
5887 ntocpos={.52\slidewidth,.09\slideheight}
5888 }{%
5889 \psframe*[linecolor=pdcolor3](0,0)(\slidewidth,\slideheight)%
5890 \psframe*[linecolor=pdcolor1](0,0)(\slidewidth,.1\slideheight)%
5891 \psline[linecolor=pdcolor1]%
5892 (0,.85\slideheight)(.1\slidewidth,.85\slideheight)%
5893 (.1\slidewidth,.88\slideheight)(\slidewidth,.88\slideheight)%
5894 }
5895 \pddefinetemplate[basic]{titleslide}{
5896 titlefont=\large\bfseries\centering,texthook=t,
5897 textpos={.5\slidewidth,.7\slideheight},
5898 textwidth=.75\slidewidth,textfont=\centering,
5899 textheight=.55\slideheight,
5900 ifsetup=landscape,tocpos,ifsetup=portrait,stocpos,ntocpos
5901 }{}
5902 \pddefinetemplate[basic]{slide}{
5903 titlehook=Br,titlepos={.81\slidewidth,.93\slideheight},
5904 titlewidth=.76\slidewidth,titlefont=\large\bfseries\raggedleft,
5905 textpos={.12\slidewidth,.81\slideheight},textwidth=.67\slidewidth,
5906 ifsetup=portrait,
5907 titlepos={.9\slidewidth,.93\slideheight},titlewidth=.88\slidewidth,
5908 textwidth=.76\slidewidth
5909 }{%
5910 \pdifsetup{landscape}{%
5911 \psframe[linestyle=none,fillstyle=gradient,gradbegin=pdcolor2,%
5912 gradend=pdcolor3,gradmidpoint=1,linewidth=0pt]%
5913 (\slidewidth,.1\slideheight)(.83\slidewidth,\slideheight)%
5914 }{%
5915 \psframe[linestyle=none,fillstyle=gradient,gradbegin=pdcolor2,%
5916 gradend=pdcolor3,gradmidpoint=1,linewidth=0pt]%
5917 (\slidewidth,.1\slideheight)(.92\slidewidth,\slideheight)%
5918 }%
5919 }
5920 \pddefinetemplate[basic]{wideslide}{
5921 titlehook=Br,titlepos={.81\slidewidth,.93\slideheight},
5922 titlewidth=.76\slidewidth,titlefont=\large\bfseries\raggedleft,
5923 textpos={.12\slidewidth,.81\slideheight},textwidth=.84\slidewidth,
5924 ifsetup=landscape,tocpos,ifsetup=portrait,
5925 titlepos={.9\slidewidth,.93\slideheight},titlewidth=.88\slidewidth,
5926 }{%
5927 \pdifsetup{landscape}{%
5928 \psframe[linestyle=none,fillstyle=gradient,gradbegin=pdcolor2,%
5929 gradend=pdcolor3,gradmidpoint=1,linewidth=0pt]%
5930 (\slidewidth,.1\slideheight)(.83\slidewidth,\slideheight)%
5931 \psframe*[linecolor=pdcolor3]%
5932 (.79\slidewidth,.88\slideheight)(\slidewidth,.1\slideheight)%
5933 }{%
5934 \psframe[linestyle=none,fillstyle=gradient,gradbegin=pdcolor2,%
5935 gradend=pdcolor3,gradmidpoint=1,linewidth=0pt]%
5936 (\slidewidth,.1\slideheight)(.92\slidewidth,\slideheight)%
5937 \psframe*[linecolor=pdcolor3]%
5938 (.9\slidewidth,.88\slideheight)(\slidewidth,.1\slideheight)%
5939 }%
5940 \psline[linecolor=pdcolor1]%
5941 (0,.85\slideheight)(.1\slidewidth,.85\slideheight)%
5942 (.1\slidewidth,.88\slideheight)(\slidewidth,.88\slideheight)%
5943 }
5944 \pddefinetemplate[slide]{sectionslide}{
5945 titlehook=c,titlefont=\Large\bfseries\centering,
5946 ifsetup=landscape,
5947 titlepos={.455\slidewidth,.55\slideheight},
5948 titlewidth=.67\slidewidth,
5949 ifsetup=portrait,
5950 titlepos={.5\slidewidth,.55\slideheight},
5951 titlewidth=.76\slidewidth
5952 }{}
5953 \pddefinetemplate[wideslide]{sectionwideslide}{
5954 titlehook=c,titlefont=\Large\bfseries\centering,
5955 titlepos={.5\slidewidth,.55\slideheight},
5956 titlewidth=.76\slidewidth
5957 }{}
5958 \setkeys[pd]{section}{sectemp=sectionslide,widesectemp=sectionwideslide}
5959 \def\labelitemi{\footnotesize\ding{110}}
5960 \def\labelitemii{\small\ding{117}}
5961 \def\labelitemiii{\tiny\ding{110}}
5962 \def\labelitemiv{\tiny\ding{117}}
5963 \pdsetup{
5964 list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}
5965 }
5966 \def\rmdefault{cmss}
5967 %</pdtycja>
5968 %
5969 %<*pdikeda>
5970 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
5971 \ProvidesPackage{powerdot-ikeda}[2005/12/10 v1.4 ikeda style (CE,HA)]
5972 \RequirePackage{calc}
5973 \RequirePackage{pifont}
5974 \pddefinepalettes{default}{
5975 \definecolor{pdcolor1}{rgb}{.941,.98,1}
5976 \definecolor{pdcolor2}{rgb}{.435,.031,.165}
5977 \definecolor{pdcolor3}{rgb}{.051,.094,.29}
5978 \definecolor{pdcolor4}{rgb}{.051,.329,.29}
5979 }
5980 \pddefinetemplate{titleslide}{
5981 titlefont=\Large\bfseries\centering,
5982 clockcolor=pdcolor1,clockpos={.99\slidewidth,\slideheight},
5983 textpos={.13\slidewidth,.7\slideheight},
5984 textwidth=.75\slidewidth,
5985 textfont=\centering,
5986 textheight=.56\slideheight
5987 }{%
5988 \psframe*[linecolor=pdcolor2](0,\slideheight)(\slidewidth,0)%
5989 \psframe*[linecolor=pdcolor3]%
5990 (.05\slidewidth,.95\slideheight)(.95\slidewidth,.05\slideheight)%
5991 \psline[linecolor=pdcolor1,linewidth=.01]%
5992 (.1\slidewidth,.1\slideheight)(.1\slidewidth,.9\slideheight)%
5993 \psline[linecolor=pdcolor1,linewidth=.01]%
5994 (.9\slidewidth,.1\slideheight)(.9\slidewidth,.9\slideheight)%
5995 \pspolygon[linestyle=none,fillstyle=vlines*,fillcolor=pdcolor2,%
5996 hatchcolor=pdcolor1,hatchwidth=.1\pslinewidth,hatchsep=4pt]%
5997 (.1\slidewidth,.1\slideheight)(.25\slidewidth,.07\slideheight)%
5998 (.5\slidewidth,.1\slideheight)(.75\slidewidth,.13\slideheight)%
5999 (.9\slidewidth,.1\slideheight)%
6000 \pspolygon[linestyle=none,fillstyle=hlines*,fillcolor=pdcolor2,%
6001 hatchcolor=pdcolor1,hatchwidth=.1\pslinewidth,hatchsep=4pt]%
6002 (.1\slidewidth,.9\slideheight)(.25\slidewidth,.93\slideheight)%
6003 (.5\slidewidth,.9\slideheight)(.75\slidewidth,.87\slideheight)%
6004 (.9\slidewidth,.9\slideheight)%
6005 }
6006 \pddefinetemplate{basic}{
6007 titlehook=Bc,titlefont=\large\bfseries\centering,
6008 clockcolor=pdcolor1,clockpos={.99\slidewidth,\slideheight},
6009 tocslidesep=.6ex,
6010 toctcolor=pdcolor1,
6011 tochlcolor=pdcolor3,
6012 tochltcolor=pdcolor1,
6013 ifsetup=portrait,
6014 tocsecsep=.6ex,
6015 textpos={.05\slidewidth,.83\slideheight},
6016 textwidth=.9\slidewidth,
6017 lfpos={.03\slidewidth,.025\slideheight},
6018 cfpos={.5\slidewidth,.025\slideheight},
6019 rfpos={.97\slidewidth,.025\slideheight},
6020 stochook=tr,stocpos={.47\slidewidth,.15\slideheight},
6021 stocfont=\tiny\raggedleft,
6022 ntocpos={.53\slidewidth,.15\slideheight},
6023 ifsetup=landscape,
6024 textpos={.2\slidewidth,.84\slideheight},
6025 textwidth=.75\slidewidth,
6026 lfpos={.19\slidewidth,.025\slideheight},
6027 cfpos={.58\slidewidth,.025\slideheight},
6028 rfpos={.97\slidewidth,.025\slideheight}
6029 }{%
6030 \psframe*[linecolor=pdcolor3](0,0)(\slidewidth,\slideheight)%
6031 }
6032 \pddefinetemplate[basic]{slide}{
6033 ifsetup=landscape,
6034 titlewidth=.75\slidewidth,
6035 titlepos={.575\slidewidth,.92\slideheight},
6036 tocpos={.01\slidewidth,.83\slideheight},
6037 tocwidth=.14\slidewidth,
6038 tocsecm={\psline[linewidth=.5pt,linecolor=pdcolor3](-.05,-.05)(.143\slidewidth,-.05)},
6039 textheight=.72\slideheight,
6040 ifsetup=portrait,
6041 titlepos={.5\slidewidth,.88\slideheight},
6042 titlewidth=.95\slidewidth,
6043 textheight=.64\slideheight
6044 }{{%
6045 \psset{linestyle=none}%
6046 \pdifsetup{landscape}{%
6047 \psframe*[linecolor=pdcolor2](0,0)(.16\slidewidth,\slideheight)%
6048 \setlength\@tempdima{.16\slidewidth-.4cm}%
6049 \setlength\@tempdimb{.97\slideheight-.8cm}%
6050 \psframe*[linecolor=pdcolor3]%
6051 (.16\slidewidth,.97\slideheight)(\@tempdima,\@tempdimb)%
6052 \setlength\@tempdima{.16\slidewidth+.4cm}%
6053 \psframe*[linecolor=pdcolor2]%
6054 (.16\slidewidth,.97\slideheight)(\@tempdima,\@tempdimb)%
6055 \pspolygon[fillstyle=solid,fillcolor=pdcolor3]%
6056 (0,.935\slideheight)(.02\slidewidth,.945\slideheight)%
6057 (.065\slidewidth,.935\slideheight)(.11\slidewidth,.925\slideheight)%
6058 (.13\slidewidth,.935\slideheight)%
6059 \pspolygon[fillstyle=hlines*,fillcolor=pdcolor2,%
6060 hatchcolor=pdcolor1,hatchwidth=.1\pslinewidth,hatchsep=4pt]%
6061 (.185\slidewidth,.09\slideheight)(.335\slidewidth,.06\slideheight)%
6062 (.58\slidewidth,.09\slideheight)%
6063 \pspolygon[fillstyle=vlines*,fillcolor=pdcolor2,%
6064 hatchcolor=pdcolor1,hatchwidth=.1\pslinewidth,hatchsep=4pt]%
6065 (.58\slidewidth,.09\slideheight)(.825\slidewidth,.06\slideheight)%
6066 (.975\slidewidth,.09\slideheight)%
6067 }{%
6068 \pspolygon[fillstyle=vlines*,fillcolor=pdcolor2,%
6069 hatchcolor=pdcolor1,hatchwidth=.1\pslinewidth,hatchsep=4pt]%
6070 (.02\slidewidth,.95\slideheight)(.17\slidewidth,.98\slideheight)%
6071 (.5\slidewidth,.95\slideheight)%
6072 \pspolygon[fillstyle=hlines*,fillcolor=pdcolor2,%
6073 hatchcolor=pdcolor1,hatchwidth=.1\pslinewidth,hatchsep=4pt]%
6074 (.5\slidewidth,.95\slideheight)(.82\slidewidth,.98\slideheight)%
6075 (.98\slidewidth,.95\slideheight)%
6076 \pd@ikedapbg
6077 }%
6078 }}
6079 \pddefinetemplate[basic]{wideslide}{
6080 lfpos={.03\slidewidth,.025\slideheight},
6081 cfpos={.5\slidewidth,.025\slideheight},
6082 titlewidth=.95\slidewidth,
6083 textwidth=.95\slidewidth,
6084 ifsetup=landscape,
6085 titlepos={.5\slidewidth,.88\slideheight},
6086 textpos={.025\slidewidth,.84\slideheight},
6087 textheight=.72\slideheight,
6088 ifsetup=portrait,
6089 titlepos={.5\slidewidth,.92\slideheight},
6090 textpos={.025\slidewidth,.87\slideheight},
6091 textheight=.68\slideheight
6092 }{{%
6093 \psset{linestyle=none}%
6094 \pdifsetup{landscape}{%
6095 \pspolygon[fillstyle=vlines*,fillcolor=pdcolor2,%
6096 hatchcolor=pdcolor1,hatchwidth=.1\pslinewidth,hatchsep=4pt]%
6097 (.02\slidewidth,.95\slideheight)(.17\slidewidth,.98\slideheight)%
6098 (.5\slidewidth,.95\slideheight)%
6099 \pspolygon[fillstyle=hlines*,fillcolor=pdcolor2,%
6100 hatchcolor=pdcolor1,hatchwidth=.1\pslinewidth,hatchsep=4pt]%
6101 (.5\slidewidth,.95\slideheight)(.83\slidewidth,.98\slideheight)%
6102 (.98\slidewidth,.95\slideheight)%
6103 \pspolygon[fillstyle=hlines*,fillcolor=pdcolor2,%
6104 hatchcolor=pdcolor1,hatchwidth=.1\pslinewidth,hatchsep=4pt]%
6105 (.02\slidewidth,.09\slideheight)(.17\slidewidth,.06\slideheight)%
6106 (.5\slidewidth,.09\slideheight)%
6107 \pspolygon[fillstyle=vlines*,fillcolor=pdcolor2,%
6108 hatchcolor=pdcolor1,hatchwidth=.1\pslinewidth,hatchsep=4pt]%
6109 (.5\slidewidth,.09\slideheight)(.83\slidewidth,.06\slideheight)%
6110 (.98\slidewidth,.09\slideheight)%
6111 }\pd@ikedapbg
6112 }}
6113 \pddefinetemplate[slide]{sectionslide}{
6114 titlehook=c,titlefont=\large\bfseries\centering,
6115 ifsetup=landscape,
6116 titlepos={.575\slidewidth,.55\slideheight},
6117 titlewidth=.75\slidewidth,
6118 ifsetup=portrait,
6119 titlepos={.5\slidewidth,.55\slideheight},
6120 titlewidth=.9\slidewidth
6121 }{}
6122 \pddefinetemplate[wideslide]{sectionwideslide}{
6123 titlehook=c,titlefont=\large\bfseries\centering,
6124 titlepos={.5\slidewidth,.55\slideheight},
6125 titlewidth=.9\slidewidth
6126 }{}
6127 \def\pd@ikedapbg{%
6128 \psframe*[linecolor=pdcolor2](0,0)(\slidewidth,.17\slideheight)%
6129 \pspolygon[fillstyle=vlines*,fillcolor=pdcolor2,%
6130 hatchcolor=pdcolor3,hatchwidth=.1\pslinewidth,hatchsep=1.6pt]%
6131 (.05\slidewidth,.1\slideheight)(.08\slidewidth,.08\slideheight)%
6132 (.14\slidewidth,.1\slideheight)(.20\slidewidth,.12\slideheight)%
6133 (.23\slidewidth,.1\slideheight)%
6134 \pspolygon[fillstyle=hlines*,fillcolor=pdcolor2,%
6135 hatchcolor=pdcolor3,hatchwidth=.1\pslinewidth,hatchsep=1.6pt]%
6136 (.77\slidewidth,.1\slideheight)(.80\slidewidth,.12\slideheight)%
6137 (.86\slidewidth,.1\slideheight)(.92\slidewidth,.08\slideheight)%
6138 (.95\slidewidth,.1\slideheight)%
6139 }
6140 \setkeys[pd]{section}{sectemp=sectionslide,widesectemp=sectionwideslide}
6141 \def\labelitemi{\color{pdcolor2}\footnotesize\ding{110}}
6142 \def\labelitemii{\color{pdcolor4}\small\ding{115}}
6143 \def\labelitemiii{\color{pdcolor2}\tiny\ding{110}}
6144 \def\labelitemiv{\color{pdcolor4}\tiny\ding{115}}
6145 \pdsetup{
6146 list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}
6147 }
6148 \def\rmdefault{cmss}
6149 %</pdikeda>
6150 %
6151 %<*pdfyma>
6152 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
6153 \ProvidesPackage{powerdot-fyma}[2005/12/10 v1.3 fyma style (SA,HA)]
6154 \RequirePackage{pst-grad}
6155 \definecolor{fymahltcolor}{rgb}{1,0,0}
6156 \pddefinepalettes{blue}{
6157 \definecolor{pdcolor1}{rgb}{.14,.34,.55}
6158 \definecolor{pdcolor2}{rgb}{.24,.45,.7}
6159 \definecolor{pdcolor3}{rgb}{.88,.95,1}
6160 }{green}{
6161 \definecolor{pdcolor1}{rgb}{.1,.45,.3}
6162 \definecolor{pdcolor2}{rgb}{.24,.7,.45}
6163 \definecolor{pdcolor3}{rgb}{.88,1,.9}
6164 }{gray}{
6165 \definecolor{pdcolor1}{gray}{0.25}
6166 \definecolor{pdcolor2}{gray}{0.55}
6167 \definecolor{pdcolor3}{gray}{0.85}
6168 }{brown}{
6169 \definecolor{pdcolor1}{rgb}{.52,.32,.12}
6170 \definecolor{pdcolor2}{rgb}{.7,.45,.24}
6171 \definecolor{pdcolor3}{rgb}{.97,.92,.92}
6172 }{orange}{
6173 \definecolor{pdcolor1}{rgb}{.8,.23,.24}
6174 \definecolor{pdcolor2}{rgb}{.95,.53,.44}
6175 \definecolor{pdcolor3}{rgb}{1,.92,.87}
6176 \definecolor{fymahltcolor}{rgb}{.23,.25,.5}
6177 }
6178 \pddefinetemplate{basic}{
6179 titlefont=\large\bfseries\raggedright,
6180 clockpos={.96\slidewidth,.97\slideheight},clockcolor=pdcolor1,
6181 tocslidesep=.6ex,
6182 toctcolor=pdcolor1,
6183 tochlcolor=pdcolor1,
6184 tochltcolor=fymahltcolor,
6185 ifsetup=portrait,
6186 textheight=.67\slideheight,
6187 titlepos={.06\slidewidth,.9\slideheight},
6188 titlewidth=.75\slidewidth,
6189 textpos={.09\slidewidth,.83\slideheight},
6190 textwidth=.85\slidewidth,
6191 tocsecsep=.6ex,
6192 stochook=tr,stocpos={.48\slidewidth,.12\slideheight},
6193 stocfont=\tiny\raggedleft,
6194 ntochook=tl,ntocpos={.52\slidewidth,.12\slideheight},
6195 lfpos={.06\slidewidth,.045\slideheight},
6196 cfpos={.5\slidewidth,.045\slideheight},
6197 rfpos={.94\slidewidth,.045\slideheight},
6198 ifsetup=landscape,
6199 titlepos={.205\slidewidth,.9\slideheight},
6200 titlewidth=.75\slidewidth,
6201 textheight=.72\slideheight,
6202 textpos={.23\slidewidth,.82\slideheight},
6203 textwidth=.72\slidewidth,
6204 lfpos={.04\slidewidth,.03\slideheight},
6205 cfpos={.5\slidewidth,.03\slideheight},
6206 rfpos={.96\slidewidth,.03\slideheight},
6207 tocpos={.04\slidewidth,.82\slideheight},
6208 tocwidth=.14\slidewidth,
6209 tocsecm={\psline[linewidth=.5pt,linecolor=pdcolor1]%
6210 (-.05,-.05)(.143\slidewidth,-.05)}
6211 }{{%
6212 \psset{linewidth=.8pt,linecolor=pdcolor2}%
6213 \pdifsetup{landscape}{%
6214 \psframe[linestyle=none,fillstyle=gradient,gradbegin=pdcolor3,%
6215 gradend=white,gradmidpoint=0,dimen=outer]%
6216 (.03\slidewidth,.97\slideheight)(.97\slidewidth,.055\slideheight)%
6217 \psline
6218 (.02\slidewidth,.055\slideheight)(.98\slidewidth,.055\slideheight)%
6219 \psline
6220 (.03\slidewidth,.07\slideheight)(.03\slidewidth,.045\slideheight)%
6221 \psline
6222 (.97\slidewidth,.07\slideheight)(.97\slidewidth,.045\slideheight)%
6223 }{%
6224 \psframe[linestyle=none,fillstyle=gradient,gradbegin=white,%
6225 gradend=pdcolor3,gradmidpoint=.85,dimen=outer]%
6226 (.03\slidewidth,.97\slideheight)(.97\slidewidth,.03\slideheight)%
6227 \psline
6228 (.02\slidewidth,.03\slideheight)(.98\slidewidth,.03\slideheight)%
6229 \psline
6230 (.03\slidewidth,.045\slideheight)(.03\slidewidth,.02\slideheight)%
6231 \psline
6232 (.97\slidewidth,.045\slideheight)(.97\slidewidth,.02\slideheight)%
6233 }%
6234 \psline
6235 (.02\slidewidth,.97\slideheight)(.98\slidewidth,.97\slideheight)%
6236 \psline
6237 (.03\slidewidth,.98\slideheight)(.03\slidewidth,.955\slideheight)%
6238 \psline
6239 (.97\slidewidth,.98\slideheight)(.97\slidewidth,.955\slideheight)%
6240 }}
6241 \pddefinetemplate[basic]{titleslide}{
6242 texthook=t,textpos={.5\slidewidth,.7\slideheight},
6243 textwidth=.9\slidewidth,textfont=\centering,
6244 textheight=.6\slideheight,
6245 titlefont=\large\bfseries\centering,tocpos,ntocpos,stocpos
6246 }{}
6247 \pddefinetemplate[basic]{slide}{}{%
6248 \pdifsetup{landscape}{%
6249 \psframe[fillstyle=gradient,gradbegin=pdcolor3,gradend=white,%
6250 gradmidpoint=1,linestyle=none,dimen=outer,linewidth=.8pt]%
6251 (.03\slidewidth,.97\slideheight)(.195\slidewidth,.055\slideheight)%
6252 }{}%
6253 }
6254 \pddefinetemplate[basic]{wideslide}{
6255 ifsetup=landscape,tocpos,
6256 titlepos={.055\slidewidth,.9\slideheight},
6257 titlewidth=.75\slidewidth,
6258 textpos={.07\slidewidth,.83\slideheight},
6259 textwidth=.83\slidewidth
6260 }{}
6261 \pddefinetemplate[slide]{sectionslide}{
6262 titlehook=c,titlefont=\Large\bfseries\centering,
6263 ifsetup=landscape,
6264 titlepos={.59\slidewidth,.525\slideheight},
6265 titlewidth=.5\slidewidth,
6266 ifsetup=portrait,
6267 titlepos={.5\slidewidth,.525\slideheight},
6268 titlewidth=.68\slidewidth
6269 }{{%
6270 \psset{linewidth=.8pt,linecolor=pdcolor2}%
6271 \pdifsetup{landscape}{%
6272 \psframe[fillstyle=solid,fillcolor=white,linestyle=none,dimen=outer]%
6273 (.34\slidewidth,.65\slideheight)(.84\slidewidth,.4\slideheight)%
6274 \psline
6275 (.33\slidewidth,.65\slideheight)(.85\slidewidth,.65\slideheight)%
6276 \psline
6277 (.33\slidewidth,.4\slideheight)(.85\slidewidth,.4\slideheight)%
6278 \psline
6279 (.34\slidewidth,.635\slideheight)(.34\slidewidth,.66\slideheight)%
6280 \psline
6281 (.34\slidewidth,.39\slideheight)(.34\slidewidth,.415\slideheight)%
6282 }{%
6283 \psframe[fillstyle=solid,fillcolor=white,linestyle=none,dimen=outer]%
6284 (.16\slidewidth,.65\slideheight)(.84\slidewidth,.4\slideheight)%
6285 \psline
6286 (.15\slidewidth,.65\slideheight)(.85\slidewidth,.65\slideheight)%
6287 \psline
6288 (.15\slidewidth,.4\slideheight)(.85\slidewidth,.4\slideheight)%
6289 \psline
6290 (.16\slidewidth,.635\slideheight)(.16\slidewidth,.66\slideheight)%
6291 \psline
6292 (.16\slidewidth,.39\slideheight)(.16\slidewidth,.415\slideheight)%
6293 }%
6294 \psline
6295 (.84\slidewidth,.635\slideheight)(.84\slidewidth,.66\slideheight)%
6296 \psline
6297 (.84\slidewidth,.39\slideheight)(.84\slidewidth,.415\slideheight)%
6298 }}
6299 \pddefinetemplate[wideslide]{sectionwideslide}{%
6300 titlehook=c,titlefont=\Large\bfseries\centering,
6301 titlepos={.5\slidewidth,.525\slideheight},
6302 titlewidth=.68\slidewidth
6303 }{{%
6304 \psset{linewidth=.8pt,linecolor=pdcolor2}%
6305 \psframe[fillstyle=solid,fillcolor=white,linestyle=none,dimen=outer]%
6306 (.16\slidewidth,.65\slideheight)(.84\slidewidth,.4\slideheight)%
6307 \psline
6308 (.15\slidewidth,.65\slideheight)(.85\slidewidth,.65\slideheight)%
6309 \psline
6310 (.15\slidewidth,.4\slideheight)(.85\slidewidth,.4\slideheight)%
6311 \psline
6312 (.16\slidewidth,.635\slideheight)(.16\slidewidth,.66\slideheight)%
6313 \psline
6314 (.16\slidewidth,.39\slideheight)(.16\slidewidth,.415\slideheight)%
6315 \psline
6316 (.84\slidewidth,.635\slideheight)(.84\slidewidth,.66\slideheight)%
6317 \psline
6318 (.84\slidewidth,.39\slideheight)(.84\slidewidth,.415\slideheight)%
6319 }}
6320 \def\pd@slidetitle#1{%
6321 \settowidth\@tempdima{#1}%
6322 \ifdim\@tempdima>\pd@@titlewidth\@tempdima\pd@@titlewidth\fi
6323 \psline[linewidth=.8pt,linecolor=pdcolor1]%
6324 (0,-.15cm)(\@tempdima,-.15cm)%
6325 \parbox[b]\pd@@titlewidth{#1}%
6326 }
6327 \def\pd@tochighlight#1{%
6328 \begin{minipage}[b]\pd@@tocwidth
6329 \pd@usedtocfont\color\pd@@tochltcolor#1%
6330 \end{minipage}%
6331 }
6332 \setkeys[pd]{section}{sectemp=sectionslide,widesectemp=sectionwideslide}
6333 \pdifsetup{landscape}{\def\pd@tocslide#1{{\tiny\ensuremath\bullet} #1}}{}
6334 \def\labelitemi{\small\ensuremath\bullet}
6335 \def\labelitemii{\small\ensuremath\circ}
6336 \def\labelitemiii{\scriptsize\ensuremath\bullet}
6337 \def\labelitemiv{\scriptsize\ensuremath\circ}
6338 \pdsetup{
6339 list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}
6340 }
6341 \def\rmdefault{phv}
6342 \def\sfdefault{phv}
6343 \def\Hv@scale{.86}
6344 %</pdfyma>
6345 %
6346 %<*pdsimple>
6347 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
6348 \ProvidesPackage{powerdot-simple}[2005/12/10 v1.3 simple style (HA)]
6349 \RequirePackage{pifont}
6350 \RequirePackage{amssymb}
6351 \pddefinepalettes{default}{\colorlet{pdcolor1}{black}}
6352 \pddefinetemplate{titleslide}{
6353 titlefont=\large\bfseries\raggedright,
6354 clockpos={.99\slidewidth,\slideheight},
6355 lfpos={.03\slidewidth,.04\slideheight},
6356 cfpos={.5\slidewidth,.04\slideheight},
6357 rfpos={.97\slidewidth,.04\slideheight},
6358 texthook=tl,textpos={.05\slidewidth,.83\slideheight},
6359 textwidth=.9\slidewidth,textfont=\tabcolsep0pt,
6360 textheight=.66\slideheight
6361 }{%
6362 \psline[linewidth=.8pt](0,.9\slideheight)(\slidewidth,.9\slideheight)%
6363 \psline[linewidth=.8pt](0,.1\slideheight)(\slidewidth,.1\slideheight)%
6364 }
6365 \pddefinetemplate{basic}{
6366 titlepos={.05\slidewidth,.93\slideheight},
6367 titlewidth=.9\slidewidth,textheight=.66\slideheight,
6368 titlefont=\large\bfseries\raggedright,
6369 clockpos={.99\slidewidth,\slideheight},
6370 lfpos={.03\slidewidth,.04\slideheight},
6371 cfpos={.5\slidewidth,.04\slideheight},
6372 rfpos={.97\slidewidth,.04\slideheight},
6373 tocslidesep=.6ex,textheight=.68\slideheight,
6374 ifsetup=portrait,
6375 textpos={.05\slidewidth,.83\slideheight},
6376 textwidth=.9\slidewidth,
6377 tocsecsep=.6ex,
6378 stochook=tr,stocpos={.48\slidewidth,.09\slideheight},
6379 stocfont=\tiny\raggedleft,
6380 ntocpos={.52\slidewidth,.09\slideheight},
6381 ifsetup=landscape,
6382 textpos={.2\slidewidth,.83\slideheight},
6383 textwidth=.75\slidewidth
6384 }{%
6385 \psline[linewidth=.8pt](0,.9\slideheight)(\slidewidth,.9\slideheight)%
6386 \psline[linewidth=.8pt](0,.1\slideheight)(\slidewidth,.1\slideheight)%
6387 }
6388 \pddefinetemplate[basic]{wideslide}{
6389 textpos={.05\slidewidth,.83\slideheight},
6390 textwidth=.9\slidewidth
6391 }{}
6392 \pddefinetemplate[basic]{slide}{
6393 ifsetup=landscape,
6394 tocpos={.015\slidewidth,.83\slideheight},
6395 tocwidth=.14\slidewidth,
6396 tocsecm={\psline[linewidth=.5pt,linecolor=gray]%
6397 (-.05,-.05)(.143\slidewidth,-.05)}
6398 }{%
6399 \pdifsetup{landscape}{%
6400 \psframe[fillstyle=solid,fillcolor=black!10,linestyle=none,%
6401 linewidth=.8pt](-.01\slidewidth,.9\slideheight)%
6402 (.17\slidewidth,.1\slideheight)%
6403 }{}%
6404 }
6405 \pddefinetemplate[slide]{sectionslide}{
6406 titlehook=c,titlefont=\Large\bfseries\centering,
6407 ifsetup=landscape,
6408 titlepos={.575\slidewidth,.55\slideheight},
6409 titlewidth=.75\slidewidth,
6410 ifsetup=portrait,
6411 titlepos={.5\slidewidth,.55\slideheight},
6412 titlewidth=.9\slidewidth
6413 }{}
6414 \pddefinetemplate[wideslide]{sectionwideslide}{
6415 titlehook=c,titlefont=\Large\bfseries\centering,
6416 titlepos={.5\slidewidth,.55\slideheight},
6417 titlewidth=.9\slidewidth
6418 }{}
6419 \setkeys[pd]{section}{sectemp=sectionslide,widesectemp=sectionwideslide}
6420 \def\pd@tochighlight#1{\pd@tocsimple\phantom{#1}}
6421 \def\pd@tochighlight#1{\pd@tocsimple\@firstofone{#1}}
6422 \def\pd@tocsimple#1#2{%
6423 \@tempdima\pd@@tocwidth
6424 \settowidth\@tempdimb{\normalsize\ensuremath\triangleright\hskip1mm}%
6425 \advance\@tempdima-\@tempdimb
6426 \ifnum\pd@toctype=\@ne\else
6427 #1{\normalsize\ensuremath\triangleright\hskip1mm}%
6428 \fi
6429 \begin{minipage}[b]\@tempdima
6430 \pd@usedtocfont#2%
6431 \end{minipage}%
6432 \ifnum\pd@toctype=\@ne
6433 #1{\hskip1mm\normalsize\ensuremath\triangleleft}%
6434 \fi
6435 }
6436 \def\labelitemi{\footnotesize\ensuremath\square}
6437 \def\labelitemii{\small--}
6438 \def\labelitemiii{\tiny\ensuremath\triangleright}
6439 \def\labelitemiv{\tiny\ding{110}}
6440 \pdsetup{
6441 list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}
6442 }
6443 \def\rmdefault{cmss}
6444 %</pdsimple>
6445 %
6446 %<*pdciment>
6447 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
6448 \ProvidesPackage{powerdot-ciment}[2005/12/10 v1.3 ciment style (HA)]
6449 \RequirePackage{pifont}
6450 \pddefinepalettes{default}{
6451 \colorlet{pdcolor1}{black}
6452 \definecolor{pdcolor2}{rgb}{.7,.1,.1}
6453 \definecolor{pdcolor3}{rgb}{.2,.2,.2}
6454 \definecolor{pdcolor4}{rgb}{.75,.75,.75}
6455 }
6456 \pddefinetemplate{basic}{
6457 titlepos={.1\slidewidth,.93\slideheight},
6458 titlewidth=.85\slidewidth,
6459 titlefont=\color{pdcolor2}\large\bfseries\raggedright,
6460 clockpos={.99\slidewidth,\slideheight},
6461 lfpos={.05\slidewidth,.04\slideheight},
6462 lffont=\color{pdcolor3}\scriptsize,
6463 cfpos={.5\slidewidth,.04\slideheight},
6464 cffont=\color{pdcolor3}\scriptsize,
6465 rfpos={.95\slidewidth,.04\slideheight},
6466 rffont=\color{pdcolor3}\scriptsize,
6467 tocslidesep=.6ex,
6468 toctcolor=black,
6469 tochlcolor=pdcolor2,
6470 tochltcolor=white,
6471 ifsetup=portrait,
6472 textpos={.05\slidewidth,.85\slideheight},
6473 textwidth=.9\slidewidth,textheight=.68\slideheight,
6474 tocsecsep=.6ex,
6475 stochook=tr,stocpos={.48\slidewidth,.13\slideheight},
6476 stocfont=\tiny\raggedleft,
6477 ntocpos={.52\slidewidth,.13\slideheight},
6478 ifsetup=landscape,
6479 textpos={.2\slidewidth,.85\slideheight},
6480 textwidth=.75\slidewidth,textheight=.7\slideheight
6481 }{%
6482 \psframe[linewidth=0pt,linestyle=none,fillstyle=hlines,%
6483 hatchwidth=.4pt,hatchangle=0,hatchcolor=pdcolor4]%
6484 (0,0)(\slidewidth,\slideheight)%
6485 \pdifsetup{landscape}{%
6486 \psline[linecolor=pdcolor2](.05\slidewidth,.09\slideheight)%
6487 (.95\slidewidth,.09\slideheight)%
6488 }{%
6489 \psline[linecolor=pdcolor2](.05\slidewidth,.15\slideheight)%
6490 (.95\slidewidth,.15\slideheight)%
6491 }%
6492 }
6493 \pddefinetemplate[basic]{titleslide}{
6494 titlefont=\color{pdcolor2}\large\bfseries\centering,
6495 texthook=t,textpos={.5\slidewidth,.7\slideheight},
6496 textwidth=.9\slidewidth,textfont=\centering,
6497 textheight=.6\slideheight,titlepos,
6498 ifsetup=portrait,textheight=.53\slideheight
6499 }{}
6500 \pddefinetemplate[basic]{wideslide}{
6501 textpos={.05\slidewidth,.85\slideheight},
6502 textwidth=.9\slidewidth
6503 }{}
6504 \pddefinetemplate[basic]{slide}{
6505 ifsetup=landscape,
6506 tocpos={.015\slidewidth,.83\slideheight},
6507 tocwidth=.14\slidewidth,
6508 tocsecm={\psline[linewidth=.5pt,linecolor=pdcolor2]%
6509 (-.05,-.05)(.143\slidewidth,-.05)}
6510 }{%
6511 \pdifsetup{landscape}{%
6512 \psframe[fillstyle=solid,fillcolor=pdcolor4,linestyle=none,%
6513 linewidth=0pt](0,.85\slideheight)(.17\slidewidth,.15\slideheight)%
6514 }{}%
6515 }
6516 \pddefinetemplate[slide]{sectionslide}{
6517 titlehook=c,titlefont=\color{pdcolor2}\Large\bfseries\centering,
6518 ifsetup=landscape,
6519 titlepos={.575\slidewidth,.55\slideheight},
6520 titlewidth=.75\slidewidth,
6521 ifsetup=portrait,
6522 titlepos={.5\slidewidth,.55\slideheight},
6523 titlewidth=.9\slidewidth
6524 }{}
6525 \pddefinetemplate[wideslide]{sectionwideslide}{
6526 titlehook=c,titlefont=\color{pdcolor2}\Large\bfseries\centering,
6527 titlepos={.5\slidewidth,.55\slideheight},
6528 titlewidth=.9\slidewidth
6529 }{}
6530 \def\pd@slidetitle#1{%
6531 \psline[linecolor=pdcolor2](0,-.15cm)(.85\slidewidth,-.15cm)%
6532 \settowidth\@tempdima{#1}%
6533 \ifdim\@tempdima>\pd@@titlewidth\@tempdima\pd@@titlewidth\fi
6534 \psline[linecolor=pdcolor2,linewidth=2.5pt]%
6535 (0,-.15cm)(\@tempdima,-.15cm)%
6536 \parbox[b]\pd@@titlewidth{#1}%
6537 }
6538 \setkeys[pd]{section}{sectemp=sectionslide,widesectemp=sectionwideslide}
6539 \pdifsetup{landscape}{\def\pd@tocslide#1{{\tiny\ding{226}}#1}}{}
6540 \def\labelitemi{\footnotesize\ding{110}}
6541 \def\labelitemii{\small\ding{117}}
6542 \def\labelitemiii{\tiny\ding{110}}
6543 \def\labelitemiv{\tiny\ding{117}}
6544 \pdsetup{
6545 list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}
6546 }
6547 \def\rmdefault{cmss}
6548 %</pdciment>
6549 %
6550 %<*pdelcolors>
6551 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
6552 \ProvidesPackage{powerdot-elcolors}[2005/12/10 v1.3 elcolors style (HA)]
6553 \RequirePackage{pifont}
6554 \pddefinepalettes{default}{
6555 \definecolor{pdcolor1}{rgb}{.17,.31,.44}
6556 \colorlet{pdcolor2}{yellow!10}
6557 \colorlet{pdcolor3}{red!10}
6558 \colorlet{pdcolor4}{blue!10}
6559 \colorlet{pdcolor5}{rgb,2:pdcolor2,1;pdcolor3,1}
6560 \colorlet{pdcolor6}{rgb,2:pdcolor2,1;pdcolor4,1}
6561 }
6562 \pddefinetemplate{basic}{
6563 titlepos={.95\slidewidth,.93\slideheight},titlehook=Br,
6564 titlewidth=.75\slidewidth,textheight=.68\slideheight,
6565 titlefont=\large\bfseries\raggedleft,
6566 clockcolor=pdcolor1,clockhook=tl,clockalign=0,
6567 clockpos={0,\slideheight},
6568 lfpos={.03\slidewidth,.04\slideheight},
6569 cfpos={.5\slidewidth,.04\slideheight},
6570 rfpos={.97\slidewidth,.04\slideheight},
6571 tocslidesep=.6ex,
6572 toctcolor=pdcolor1,
6573 tochlcolor=pdcolor1,
6574 tochltcolor=pdcolor4,
6575 ifsetup=portrait,
6576 textpos={.05\slidewidth,.83\slideheight},
6577 textwidth=.9\slidewidth,
6578 tocsecsep=.6ex,
6579 stochook=tr,stocpos={.42\slidewidth,.13\slideheight},
6580 stocfont=\tiny\raggedleft,
6581 ntocpos={.46\slidewidth,.13\slideheight},
6582 ifsetup=landscape,
6583 textpos={.2\slidewidth,.83\slideheight},
6584 textwidth=.68\slidewidth
6585 }{{%
6586 \psset{linewidth=0pt}%
6587 \psframe*[linecolor=pdcolor3]%
6588 (0,0)(.44\slidewidth,.14\slideheight)%
6589 \psframe*[linecolor=pdcolor3]%
6590 (\slidewidth,\slideheight)(.56\slidewidth,.86\slideheight)%
6591 \psframe*[linecolor=pdcolor2]%
6592 (.09\slidewidth,.09\slideheight)(.91\slidewidth,.91\slideheight)%
6593 \psframe*[linecolor=pdcolor5]%
6594 (.09\slidewidth,.09\slideheight)(.44\slidewidth,.14\slideheight)%
6595 \psframe*[linecolor=pdcolor5]%
6596 (.91\slidewidth,.91\slideheight)(.56\slidewidth,.86\slideheight)%
6597 }}
6598 \pddefinetemplate[basic]{titleslide}{
6599 titlefont=\large\bfseries\centering,
6600 lfpos={.03\slidewidth,.04\slideheight},
6601 cfpos={.5\slidewidth,.04\slideheight},
6602 rfpos={.97\slidewidth,.04\slideheight},
6603 texthook=t,textpos={.5\slidewidth,.7\slideheight},
6604 textwidth=.76\slidewidth,textfont=\centering,
6605 textheight=.55\slideheight
6606 }{}
6607 \pddefinetemplate[basic]{wideslide}{
6608 textpos={.12\slidewidth,.83\slideheight},
6609 textwidth=.76\slidewidth
6610 }{}
6611 \pdifsetup{portrait}{%
6612 \pddefinetemplate[wideslide]{slide}{}{}%
6613 }{%
6614 \pddefinetemplate[basic]{slide}{
6615 tocpos={.015\slidewidth,.83\slideheight},
6616 tocwidth=.14\slidewidth,
6617 tocsecm={\psline[linewidth=.5pt,linecolor=pdcolor1]%
6618 (-.05,-.05)(.143\slidewidth,-.05)}
6619 }{%
6620 \psframe*[linecolor=pdcolor4,linewidth=0pt]%
6621 (0,\slideheight)(.17\slidewidth,.2\slideheight)%
6622 \psframe*[linecolor=pdcolor6,linewidth=0pt]%
6623 (.09\slidewidth,.91\slideheight)(.17\slidewidth,.2\slideheight)%
6624 }
6625 }
6626 \pddefinetemplate[slide]{sectionslide}{
6627 titlehook=c,titlefont=\Large\bfseries\centering,
6628 ifsetup=landscape,
6629 titlepos={.54\slidewidth,.55\slideheight},
6630 titlewidth=.68\slidewidth,
6631 ifsetup=portrait,
6632 titlepos={.5\slidewidth,.55\slideheight},
6633 titlewidth=.76\slidewidth
6634 }{}
6635 \pddefinetemplate[wideslide]{sectionwideslide}{
6636 titlehook=c,titlefont=\Large\bfseries\centering,
6637 titlepos={.5\slidewidth,.55\slideheight},
6638 titlewidth=.76\slidewidth
6639 }{}
6640 \setkeys[pd]{section}{sectemp=sectionslide,widesectemp=sectionwideslide}
6641 \def\labelitemi{\footnotesize\ding{110}}
6642 \def\labelitemii{\small\ding{117}}
6643 \def\labelitemiii{\tiny\ding{110}}
6644 \def\labelitemiv{\tiny\ding{117}}
6645 \pdsetup{
6646 list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}
6647 }
6648 \def\rmdefault{cmss}
6649 %</pdelcolors>
6650 %
6651 %<*pdaggie>
6652 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
6653 \ProvidesPackage{powerdot-aggie}[2005/12/10 v1.3 aggie style (JS,HA)]
6654 \RequirePackage{times}
6655 \RequirePackage{pifont}
6656 \RequirePackage{pst-grad}
6657 \pddefinepalettes{default}{
6658 \definecolor{pdcolor1}{rgb}{.17,.31,.44}
6659 \definecolor{pdcolor2}{rgb}{.51,.13,.16}
6660 \definecolor{pdcolor3}{rgb}{.96,.94,.89}
6661 \definecolor{pdcolor4}{rgb}{.89,.85,.69}
6662 }
6663 \pddefinetemplate{titleslide}{
6664 titlefont=\Large\bfseries\color{pdcolor2}\centering,
6665 clockcolor=pdcolor1,clockpos={.99\slidewidth,\slideheight},
6666 lfpos={.03\slidewidth,.04\slideheight},
6667 cfpos={.5\slidewidth,.04\slideheight},
6668 rfpos={.97\slidewidth,.04\slideheight},
6669 lffont=\tiny,cffont=\tiny,rffont=\tiny,
6670 texthook=t,textpos={.5\slidewidth,.65\slideheight},
6671 textwidth=.9\slidewidth,textfont=\centering,
6672 textheight=.5\slideheight,
6673 ifsetup=portrait,
6674 textheight=.55\slideheight,
6675 lfpos={.03\slidewidth,.03\slideheight},
6676 cfpos={.5\slidewidth,.03\slideheight},
6677 rfpos={.97\slidewidth,.03\slideheight}
6678 }{%
6679 \psframe*[linecolor=pdcolor3,linewidth=0pt]%
6680 (0,.85\slideheight)(\slidewidth,0)%
6681 \psline[linecolor=pdcolor2]%
6682 (0,.85\slideheight)(\slidewidth,.85\slideheight)%
6683 \psellipse[linestyle=solid,linecolor=pdcolor2,fillstyle=solid,%
6684 fillcolor=pdcolor4](.5\slidewidth,0)(.7\slidewidth,.1\slidewidth)%
6685 }
6686 \pddefinetemplate{basic}{
6687 titlepos={.2\slidewidth,.93\slideheight},
6688 titlewidth=.75\slidewidth,textheight=.66\slideheight,
6689 titlefont=\Large\sl\bfseries\color{pdcolor2}\raggedright,
6690 lfpos={.03\slidewidth,.04\slideheight},
6691 cfpos={.5\slidewidth,.04\slideheight},
6692 rfpos={.97\slidewidth,.04\slideheight},
6693 clockcolor=pdcolor1,clockpos={.99\slidewidth,\slideheight},
6694 lffont=\tiny,cffont=\tiny,rffont=\tiny,
6695 tocslidesep=.8ex,
6696 textheight=.74\slideheight,
6697 toctcolor=pdcolor1,
6698 tochlcolor=pdcolor2,
6699 tochltcolor=white,
6700 ifsetup=portrait,
6701 lfpos={.03\slidewidth,.03\slideheight},
6702 cfpos={.5\slidewidth,.03\slideheight},
6703 rfpos={.97\slidewidth,.03\slideheight},
6704 textpos={.05\slidewidth,.83\slideheight},
6705 textwidth=.9\slidewidth,
6706 tocsecsep=.8ex,
6707 stochook=tr,stocpos={.48\slidewidth,.09\slideheight},
6708 stocfont=\tiny\raggedleft,
6709 ntocpos={.52\slidewidth,.09\slideheight},
6710 ifsetup=landscape,
6711 textpos={.2\slidewidth,.83\slideheight},
6712 textwidth=.75\slidewidth
6713 }{%
6714 }
6715 \pddefinetemplate[basic]{wideslide}{
6716 textpos={.05\slidewidth,.83\slideheight},
6717 textwidth=.9\slidewidth,
6718 ifsetup=portrait,textheight=.7\slideheight
6719 }{%
6720 \psframe[linestyle=none,fillstyle=gradient,gradbegin=pdcolor3,%
6721 gradend=white,gradmidpoint=1,gradangle=90,linewidth=0pt]%
6722 (0,\slideheight)(\slidewidth,.9\slideheight)%
6723 \pd@aggiebg
6724 }
6725 \pddefinetemplate[basic]{slide}{
6726 ifsetup=landscape,
6727 tocpos={.015\slidewidth,.83\slideheight},
6728 tocwidth=.14\slidewidth,
6729 tocsecm={\psline[linewidth=.5pt,linecolor=pdcolor2]%
6730 (-.05,-.05)(.143\slidewidth,-.05)},
6731 ifsetup=portrait,textheight=.7\slideheight
6732 }{%
6733 \psframe[fillstyle=gradient,gradbegin=pdcolor3,gradend=white,%
6734 gradmidpoint=0,linestyle=none,linewidth=0pt]%
6735 (0,.9\slideheight)(.25\slidewidth,.075\slideheight)%
6736 \psellipse*[linecolor=white](.25\slidewidth,.6\slideheight)%
6737 (.075\slidewidth,.7\slideheight)%
6738 \pd@aggiebg
6739 }
6740 \pddefinetemplate[slide]{sectionslide}{
6741 titlehook=c,titlefont=\Large\bfseries\color{pdcolor2}\centering,
6742 ifsetup=landscape,
6743 titlepos={.575\slidewidth,.55\slideheight},
6744 titlewidth=.75\slidewidth,
6745 ifsetup=portrait,
6746 titlepos={.5\slidewidth,.55\slideheight},
6747 titlewidth=.9\slidewidth
6748 }{}
6749 \pddefinetemplate[wideslide]{sectionwideslide}{
6750 titlehook=c,titlefont=\Large\bfseries\color{pdcolor2}\centering,
6751 titlepos={.5\slidewidth,.55\slideheight},
6752 titlewidth=.9\slidewidth
6753 }{}
6754 \def\pd@aggiebg{%
6755 \pdifsetup{landscape}{%
6756 \psframe*[linecolor=pdcolor4](0,0)(\slidewidth,.075\slideheight)%
6757 \psline[linecolor=pdcolor2,linewidth=.5pt]%
6758 (0,.075\slideheight)(\slidewidth,.075\slideheight)%
6759 }{%
6760 \psframe*[linecolor=pdcolor4](0,0)(\slidewidth,.1\slideheight)%
6761 \psline[linecolor=pdcolor2,linewidth=.5pt]%
6762 (0,.1\slideheight)(\slidewidth,.1\slideheight)%
6763 }%
6764 }
6765 \setkeys[pd]{section}{sectemp=sectionslide,widesectemp=sectionwideslide}
6766 \def\pd@tocslide#1{\ding{118}\,#1}
6767 \def\labelitemi{\color{pdcolor2}\footnotesize\ding{108}}
6768 \def\labelitemii{\color{pdcolor2}\small\ding{70}}
6769 \def\labelitemiii{\color{pdcolor2}\tiny\ding{110}}
6770 \def\labelitemiv{\color{pdcolor2}\tiny\ding{117}}
6771 \pdsetup{
6772 list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}
6773 }
6774 \renewcommand\familydefault{\sfdefault}
6775 %</pdaggie>
6776 %
6777 %<*pdhusky>
6778 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
6779 \ProvidesPackage{powerdot-husky}[2005/12/10 v1.3 husky style (JS,HA)]
6780 \RequirePackage{times}
6781 \RequirePackage{pifont}
6782 \RequirePackage{pst-grad}
6783 \pddefinepalettes{default}{
6784 \definecolor{pdcolor1}{rgb}{.03,0,.29}
6785 \definecolor{pdcolor2}{rgb}{.75,0,0}
6786 \definecolor{pdcolor3}{rgb}{.92,.92,.92}
6787 }
6788 \pddefinetemplate{titleslide}{
6789 titlefont=\Large\rmfamily\bfseries\color{pdcolor2}\centering,
6790 clockcolor=pdcolor1,clockpos={.99\slidewidth,\slideheight},
6791 lfpos={.03\slidewidth,.04\slideheight},
6792 lffont=\tiny\color{white},
6793 cfpos={.5\slidewidth,.04\slideheight},
6794 cffont=\tiny\color{white},
6795 rfpos={.97\slidewidth,.04\slideheight},
6796 rffont=\tiny\color{white},
6797 texthook=t,textpos={.5\slidewidth,.75\slideheight},
6798 textwidth=.9\slidewidth,textfont=\centering,
6799 textheight=.66\slideheight,
6800 ifsetup=portrait,
6801 textheight=.63\slideheight,
6802 lfpos={.03\slidewidth,.03\slideheight},
6803 cfpos={.5\slidewidth,.03\slideheight},
6804 rfpos={.97\slidewidth,.03\slideheight},
6805 }{{%
6806 \psset{linestyle=none,linecolor=pdcolor3}%
6807 \pspolygon*(\slidewidth,.385\slideheight)%
6808 (.6\slidewidth,\slideheight)(.85\slidewidth,\slideheight)%
6809 (\slidewidth,.57\slideheight)%
6810 \pspolygon*(\slidewidth,.25\slideheight)%
6811 (.15\slidewidth,\slideheight)(.5\slidewidth,\slideheight)%
6812 (\slidewidth,.35\slideheight)%
6813 \pspolygon*(\slidewidth,.15\slideheight)%
6814 (0,.65\slideheight)(0,\slideheight)(.01\slidewidth,\slideheight)%
6815 (\slidewidth,.225\slideheight)%
6816 \pspolygon*(\slidewidth,.07\slideheight)%
6817 (0,.25\slideheight)(0,.535\slideheight)%
6818 (\slidewidth,.13\slideheight)%
6819 \psframe[fillstyle=gradient,gradbegin=pdcolor2,%
6820 gradend=white,gradmidpoint=1,gradangle=90](0,.9\slideheight)%
6821 (\slidewidth,.9\slideheight)%
6822 \psframe[fillstyle=gradient,gradbegin=pdcolor2,%
6823 gradend=white,gradmidpoint=1,gradangle=90](0,.893\slideheight)%
6824 (\slidewidth,.893\slideheight)%
6825 \pd@huskybg
6826 }}
6827 \pddefinetemplate{basic}{
6828 titlepos={.2\slidewidth,.93\slideheight},
6829 titlewidth=.75\slidewidth,textheight=.66\slideheight,
6830 titlefont=\Large\rmfamily\slshape\bfseries\color{pdcolor2}\raggedright,
6831 clockcolor=pdcolor1,clockpos={.99\slidewidth,\slideheight},
6832 lfpos={.03\slidewidth,.04\slideheight},
6833 lffont=\tiny\color{white},
6834 cfpos={.5\slidewidth,.04\slideheight},
6835 cffont=\tiny\color{white},
6836 rfpos={.97\slidewidth,.04\slideheight},
6837 rffont=\tiny\color{white},
6838 tocslidesep=.8ex,
6839 toctcolor=black,
6840 tochlcolor=pdcolor2,
6841 tochltcolor=white,
6842 ifsetup=portrait,
6843 toctcolor=white,
6844 tochlcolor=black,
6845 titlepos={.05\slidewidth,.93\slideheight},
6846 lfpos={.03\slidewidth,.03\slideheight},
6847 cfpos={.5\slidewidth,.03\slideheight},
6848 rfpos={.97\slidewidth,.03\slideheight},
6849 textpos={.05\slidewidth,.85\slideheight},
6850 textheight=.73\slideheight,
6851 textwidth=.9\slidewidth,
6852 tocsecsep=.8ex,
6853 stochook=tr,stocpos={.48\slidewidth,.09\slideheight},
6854 stocfont=\tiny\raggedleft,
6855 ntochook=tl,ntocpos={.52\slidewidth,.09\slideheight},
6856 ntocfont=\tiny\raggedright,
6857 ifsetup=landscape,
6858 textpos={.2\slidewidth,.83\slideheight},
6859 textwidth=.75\slidewidth,
6860 textheight=.74\slideheight,
6861 }{{%
6862 \psset{linestyle=none,linecolor=pdcolor3}%
6863 \pspolygon*(\slidewidth,.385\slideheight)%
6864 (.6\slidewidth,\slideheight)(.85\slidewidth,\slideheight)%
6865 (\slidewidth,.57\slideheight)%
6866 \pspolygon*(\slidewidth,.25\slideheight)%
6867 (.15\slidewidth,\slideheight)(.5\slidewidth,\slideheight)%
6868 (\slidewidth,.35\slideheight)%
6869 \pspolygon*(\slidewidth,.15\slideheight)%
6870 (0,.65\slideheight)(0,\slideheight)(.01\slidewidth,\slideheight)%
6871 (\slidewidth,.225\slideheight)%
6872 \pspolygon*(\slidewidth,.07\slideheight)%
6873 (0,.25\slideheight)(0,.535\slideheight)%
6874 (\slidewidth,.13\slideheight)%
6875 \psframe[linestyle=none,fillstyle=gradient,gradbegin=pdcolor2,%
6876 gradend=white,gradmidpoint=1,gradangle=90](0,.9\slideheight)%
6877 (\slidewidth,.9\slideheight)%
6878 \psframe[linestyle=none,fillstyle=gradient,gradbegin=pdcolor2,%
6879 gradend=white,gradmidpoint=1,gradangle=90](0,.893\slideheight)%
6880 (\slidewidth,.893\slideheight)%
6881 \pd@huskybg
6882 }}
6883 \pddefinetemplate[basic]{wideslide}{
6884 textwidth=.9\slidewidth,
6885 ifsetup=landscape,
6886 textpos={.05\slidewidth,.83\slideheight},
6887 titlepos={.05\slidewidth,.93\slideheight}
6888 }{%
6889 }
6890 \pddefinetemplate[basic]{slide}{
6891 ifsetup=landscape,
6892 tocpos={.015\slidewidth,.83\slideheight},
6893 tocwidth=.14\slidewidth,
6894 tocsecm={\psline[linewidth=.5pt,linecolor=pdcolor2]%
6895 (-.05,-.05)(.143\slidewidth,-.05)},
6896 }{%
6897 \pdifsetup{landscape}{%
6898 \psframe[linestyle=none,fillstyle=gradient,gradbegin=white,%
6899 gradend=black,gradmidpoint=.5](.175\slidewidth,.12\slideheight)%
6900 (.18\slidewidth,.95\slideheight)%
6901 }{%
6902 \psframe[linestyle=none,fillstyle=gradient,gradbegin=white,%
6903 gradend=black,gradmidpoint=.25](.025\slidewidth,.12\slideheight)%
6904 (.025\slidewidth,\slideheight)%
6905 }%
6906 }
6907 \pddefinetemplate[slide]{sectionslide}{
6908 titlehook=c,
6909 titlefont=\LARGE\rmfamily\slshape\bfseries\color{pdcolor2}\centering,
6910 ifsetup=landscape,
6911 titlepos={.575\slidewidth,.55\slideheight},
6912 titlewidth=.75\slidewidth,
6913 ifsetup=portrait,
6914 titlepos={.5\slidewidth,.55\slideheight},
6915 titlewidth=.9\slidewidth
6916 }{}
6917 \pddefinetemplate[wideslide]{sectionwideslide}{
6918 titlehook=c,
6919 titlefont=\LARGE\rmfamily\slshape\bfseries\color{pdcolor2}\centering,
6920 titlepos={.5\slidewidth,.55\slideheight},
6921 titlewidth=.9\slidewidth
6922 }{}
6923 \def\pd@huskybg{%
6924 \pdifsetup{landscape}{%
6925 \psframe*[linecolor=pdcolor2,linewidth=0pt]%
6926 (0,0)(\slidewidth,.075\slideheight)%
6927 \psline[linecolor=black,linewidth=1pt]%
6928 (0,.075\slideheight)(\slidewidth,.075\slideheight)%
6929 }{%
6930 \psframe*[linecolor=pdcolor2,linewidth=0pt]%
6931 (0,0)(\slidewidth,.1\slideheight)%
6932 \psline[linecolor=black,linewidth=1pt]%
6933 (0,.1\slideheight)(\slidewidth,.1\slideheight)%
6934 }%
6935 }
6936 \setkeys[pd]{section}{sectemp=sectionslide,widesectemp=sectionwideslide}
6937 \def\pd@tocslide#1{\ding{118}\,#1}
6938 \def\labelitemi{\color{pdcolor2}\footnotesize\ding{108}}
6939 \def\labelitemii{\color{pdcolor2}\small\ding{70}}
6940 \def\labelitemiii{\color{pdcolor2}\tiny\ding{110}}
6941 \def\labelitemiv{\color{pdcolor2}\tiny\ding{117}}
6942 \pdsetup{
6943 list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}
6944 }
6945 \renewcommand\familydefault{\sfdefault}
6946 %</pdhusky>
6947 %
6948 %<*pdsailor>
6949 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
6950 \ProvidesPackage{powerdot-sailor}[2005/12/10 v1.3 sailor style (MH,HA)]
6951 \RequirePackage{calc}
6952 \RequirePackage{amssymb}
6953 \RequirePackage{pst-grad}
6954 \pddefinepalettes{Sea}{% Sea sailor (default)
6955 \definecolor{pdcolor1}{rgb}{.141,.188,.235} % Dark blue #24303C
6956 \definecolor{pdcolor2}{rgb}{.298,.392,.490} % Medium blue #4C647D
6957 \definecolor{pdcolor3}{rgb}{.522,.592,.647} % Light blue #8597A5
6958 \definecolor{pdcolor4}{rgb}{.8627,.8941,.9255} % Lighter blue #DCE4EC
6959 }{River}{% River variant
6960 \definecolor{pdcolor1}{rgb}{.141,.235,.192} % Dark green #243C31
6961 \definecolor{pdcolor2}{rgb}{.298,.490,.404} % Medium green #4C7D67
6962 \definecolor{pdcolor3}{rgb}{.522,.647,.592} % Light green #85A597
6963 \definecolor{pdcolor4}{rgb}{.8627,.9255,.8980} % Lighter green #DCECE5
6964 }{Wine}{% Wine variant
6965 \definecolor{pdcolor1}{rgb}{.235,.141,.161} % Dark red #3C2429
6966 \definecolor{pdcolor2}{rgb}{.490,.298,.337} % Medium red #7D4C56
6967 \definecolor{pdcolor3}{rgb}{.647,.522,.545} % Light red #A5858B
6968 \definecolor{pdcolor4}{rgb}{.9255,.8627,.8745} % Lighter red #ECDCDF
6969 }{Chocolate}{% Chocolate variant
6970 \definecolor{pdcolor1}{rgb}{.235,.212,.141} % Dark brown #3C3624
6971 \definecolor{pdcolor2}{rgb}{.490,.443,.298} % Medium brown #7D714C
6972 \definecolor{pdcolor3}{rgb}{.647,.616,.522} % Light brown #A59D85
6973 \definecolor{pdcolor4}{rgb}{.9255,.9098,.8627} % Lighter brown #ECE8DC
6974 }{Cocktail}{% Cocktail variant
6975 \definecolor{pdcolor1}{rgb}{.180,.141,.235} % Dark violet #2E243C
6976 \definecolor{pdcolor2}{rgb}{.380,.298,.490} % Medium violet #614C7D
6977 \definecolor{pdcolor3}{rgb}{.576,.522,.647} % Light violet #9385A5
6978 \definecolor{pdcolor4}{rgb}{.8902,.8627,.9255} % Lighter violet #E3DCEC
6979 }
6980 \pddefinetemplate{basic}{%
6981 texthook=tl,
6982 titlefont=\Large\bfseries\color{white}\raggedleft,
6983 clockhook=tl,clockpos={0,\slideheight},clockalign=0,
6984 iacolor=pdcolor3,
6985 toctcolor=pdcolor3,
6986 tochlcolor=white,
6987 tochltcolor=pdcolor1,
6988 ifsetup=landscape,
6989 lfpos={.02\slidewidth,.02\slideheight},
6990 cfpos={.5\slidewidth,.02\slideheight},
6991 rfpos={.98\slidewidth,.02\slideheight},
6992 tocsecsep=2.5ex,
6993 tocslidesep=1.2ex,
6994 tocslideindent=1ex,
6995 tocpos={.01\slidewidth,.8\slideheight},
6996 tocwidth=.14\slidewidth,
6997 tocsecm={\psline[linewidth=.5pt,linecolor=pdcolor1]%
6998 (-.05,-.05)(.14\slidewidth,-.05)},
6999 ifsetup=portrait,
7000 lfpos={.02\slidewidth,.015\slideheight},
7001 cfpos={.5\slidewidth,.015\slideheight},
7002 rfpos={.98\slidewidth,.015\slideheight},
7003 tocsecsep=.1ex,
7004 tocslidesep=.1ex,
7005 stochook=tr,
7006 stocpos={.49\slidewidth,.09\slideheight},
7007 stocfont=\tiny\raggedleft,
7008 stocwidth=.48\slidewidth,
7009 ntocpos={.51\slidewidth,.09\slideheight},
7010 ntocwidth=.48\slidewidth,
7011 }{}
7012 \pddefinetemplate[basic]{topframe}{%
7013 titlehook=r,
7014 clockcolor=white,
7015 ifsetup=landscape,
7016 titlewidth=.9\slidewidth,
7017 titlepos={.95\slidewidth,.92\slideheight},
7018 textheight=.74\slideheight,
7019 textpos={.2\slidewidth,.8\slideheight},
7020 textwidth=.77\slidewidth,
7021 ifsetup=portrait,
7022 titlewidth=.94\slidewidth,
7023 titlepos={.98\slidewidth,.95\slideheight},
7024 textheight=.75\slideheight,
7025 textpos={.03\slidewidth,.87\slideheight},
7026 textwidth=.94\slidewidth
7027 }{%
7028 \pdifsetup{landscape}{%
7029 \pd@sailorroundedtopframe{.15\slideheight}%
7030 }{%
7031 \pd@sailorroundedtopframe{.1\slideheight}%
7032 }%
7033 }
7034 \pddefinetemplate[basic]{titleslide}{%
7035 texthook=rt,
7036 textpos={.95\slidewidth,.77\slideheight},
7037 textwidth=.9\slidewidth,
7038 textfont=\color{pdcolor1}\raggedleft\tabcolsep0pt,
7039 textheight=.72\slideheight,
7040 titlefont=\Large\bfseries\color{white},
7041 clockcolor=pdcolor1,
7042 tocpos,ntocpos,stocpos
7043 }{{%
7044 \psset{linecolor=pdcolor1}%
7045 \pdifsetup{landscape}{%
7046 \pd@sailorroundedframe{\slidewidth}{.25\slidewidth}{.7\slideheight}%
7047 {.17\slideheight}%
7048 }{%
7049 \pd@sailorroundedframe{\slidewidth}{.25\slidewidth}{.7\slideheight}%
7050 {.12\slideheight}%
7051 }%
7052 \pd@sailorgrad\slidewidth{.5\slideheight}%
7053 \psset{linecolor=pdcolor3}%
7054 \psarc*(0,.2\slideheight){3pt}{270}{90}%
7055 \multips(.08\slidewidth,.2\slideheight)(.08\slidewidth,0){9}{%
7056 \qdisk(0,0){3pt}%
7057 }%
7058 }}
7059 \pddefinetemplate[topframe]{slide}{}{{%
7060 \pdifsetup{landscape}{%
7061 \pd@sailorgrad{.16\slidewidth}{.5\slideheight}%
7062 \psset{linecolor=pdcolor3}%
7063 \multips(.16\slidewidth,0.75pt)(0,.01\slideheight){82}{%
7064 \qdisk(0,0){.75pt}%
7065 }%
7066 }\pd@sailortocbg
7067 }}
7068 \pddefinetemplate[topframe]{wideslide}{%
7069 tocpos,ifsetup=landscape,
7070 textpos={.03\slidewidth,.8\slideheight},
7071 textwidth=.94\slidewidth
7072 }{%
7073 \pdifsetup{portrait}\pd@sailortocbg{}%
7074 }
7075 \pddefinetemplate[slide]{sectionslide}{%
7076 titlefont=\Large\bfseries\color{pdcolor1}\centering,
7077 titlehook=c,
7078 titlewidth=.55\slidewidth,
7079 ifsetup=landscape,
7080 titlepos={.58\slidewidth,.55\slideheight},
7081 ifsetup=portrait,
7082 titlepos={.5\slidewidth,.55\slideheight},
7083 }{}
7084 \pddefinetemplate[basic]{sectionwideslide}{%
7085 tocpos,stocpos,ntocpos,
7086 titlehook=c,titlewidth=.75\slidewidth,
7087 titlepos={.4\slidewidth,.695\slideheight},
7088 titlefont=\Large\bfseries\color{white}\centering
7089 }{{%
7090 \pd@sailorgrad\slidewidth{.5\slideheight}%
7091 \psset{linecolor=pdcolor1}%
7092 \pdifsetup{landscape}{%
7093 \pd@sailorroundedframe{0pt}{.75\slidewidth}{.7\slideheight}%
7094 {.1\slideheight}%
7095 }{%
7096 \pd@sailorroundedframe{0pt}{.75\slidewidth}{.7\slideheight}%
7097 {.07\slideheight}%
7098 }%
7099 \psset{linecolor=pdcolor3}%
7100 \psarc*(\slidewidth,.2\slideheight){3pt}{90}{270}%
7101 \multips(.92\slidewidth,.2\slideheight)(-.08\slidewidth,0){9}{%
7102 \qdisk(0,0){3pt}%
7103 }%
7104 }}
7105 \def\pd@sailorroundedtopframe#1{{%
7106 \setlength\@tempdima{\slideheight-#1}%
7107 \psset{linewidth=0pt,fillcolor=pdcolor2,fillstyle=solid,linecolor=pdcolor2}%
7108 \psframe(#1,\slideheight)(\slidewidth,\@tempdima)%
7109 \pswedge*(#1,\slideheight){#1}{180}{275}%
7110 \psset{linecolor=pdcolor1,linewidth=.8pt}%
7111 \psline(\slidewidth,\@tempdima)(#1,\@tempdima)%
7112 \psarc[fillstyle=none](#1,\slideheight){#1}{180}{270}%
7113 }}
7114 \def\pd@sailorroundedframe#1#2#3#4{{%
7115 \setlength\@tempdima{#3+#4}%
7116 \setlength\@tempdimb{#3-#4}%
7117 \psset{linewidth=0pt,linecolor=pdcolor2,fillcolor=pdcolor2,fillstyle=solid}%
7118 \psframe(#1,\@tempdima)(#2,\@tempdimb)%
7119 \ifdim#1>#2\pswedge*(#2,#3){#4}{85}{275}\else\pswedge*(#2,#3){#4}{265}{95}\fi
7120 \psset{linecolor=pdcolor1,linewidth=.8pt}%
7121 \psline(#1,\@tempdima)(#2,\@tempdima)%
7122 \ifdim#1>#2\psarc(#2,#3){#4}{90}{270}\else\psarc(#2,#3){#4}{270}{90}\fi
7123 \psline(#1,\@tempdimb)(#2,\@tempdimb)%
7124 }}
7125 \def\pd@sailorgrad#1#2{%
7126 \psframe[linestyle=none,linewidth=0pt,fillstyle=gradient,%
7127 gradbegin=pdcolor4,gradend=white,gradmidpoint=0](0,0)(#1,#2)%
7128 }
7129 \def\pd@sailortocbg{{%
7130 \psset{linecolor=pdcolor3}%
7131 \pd@sailorgrad\slidewidth{.1\slideheight}%
7132 \multips(1.5pt,.1\slideheight)(.01\slidewidth,0){100}{%
7133 \qdisk(0,0){.75pt}%
7134 }%
7135 }}
7136 \setkeys[pd]{section}{sectemp=sectionslide,widesectemp=sectionwideslide}
7137 \def\pd@title#1{%
7138 \parbox[c][.15\textheight]{.75\slidewidth}{\raggedleft#1}%
7139 \vskip-3em\vskip.2\slideheight
7140 }
7141 \def\pd@tochighlight#1{%
7142 \hskip\@tempdima
7143 \begin{minipage}[b]\@tempdimb
7144 \pd@usedtocfont\color\pd@@tochltcolor#1%
7145 \end{minipage}%
7146 }
7147 \def\labelitemi{\footnotesize\color{pdcolor2}\ensuremath\blacksquare}
7148 \def\labelitemii{\footnotesize\color{pdcolor1}\ensuremath\square}
7149 \def\labelitemiii{\tiny\color{pdcolor2}\ensuremath\blacksquare}
7150 \def\labelitemiv{\tiny\color{pdcolor1}\ensuremath\square}
7151 \pdsetup{list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}}
7152 \def\rmdefault{phv}
7153 \def\sfdefault{phv}
7154 \def\Hv@scale{.85}
7155 %</pdsailor>
7156 %
7157 %<*pdupen>
7158 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
7159 \ProvidesPackage{powerdot-upen}[2005/12/10 v1.3 upen style (PRU,HA)]
7160 \RequirePackage{calc}
7161 \RequirePackage{pifont}
7162 \RequirePackage{pst-grad}
7163 \pddefinepalettes{default}{
7164 \colorlet{pdcolor1}{white}
7165 \definecolor{pdcolor2}{rgb}{0,.01,.37}
7166 \definecolor{pdcolor3}{rgb}{.01,.06,.65}
7167 \definecolor{pdcolor4}{rgb}{.98,.78,.18}
7168 }
7169 \pddefinetemplate{basic}{
7170 titlefont=\large\bfseries\color{pdcolor4},
7171 clockcolor=pdcolor4,clockpos={.99\slidewidth,\slideheight},
7172 tocslidesep=.6ex,
7173 toctcolor=white,
7174 tochlcolor=pdcolor2,
7175 tochltcolor=pdcolor4,
7176 ifsetup=portrait,
7177 textheight=.64\slideheight,
7178 titlepos={.12\slidewidth,.87\slideheight},
7179 titlewidth=.83\slidewidth,
7180 textpos={.12\slidewidth,.78\slideheight},
7181 textwidth=.83\slidewidth,
7182 tocsecsep=.6ex,
7183 stochook=tr,stocpos={.47\slidewidth,.12\slideheight},
7184 stocfont=\tiny\raggedleft,
7185 ntochook=tl,ntocpos={.52\slidewidth,.12\slideheight},
7186 lfpos={.05\slidewidth,.045\slideheight},
7187 cfpos={.5\slidewidth,.045\slideheight},
7188 rfpos={.95\slidewidth,.045\slideheight},
7189 ifsetup=landscape,
7190 titlepos={.175\slidewidth,.87\slideheight},
7191 titlewidth=.775\slidewidth,
7192 textheight=.7\slideheight,
7193 textpos={.175\slidewidth,.77\slideheight},
7194 textwidth=.775\slidewidth,
7195 lfpos={.05\slidewidth,.03\slideheight},
7196 cfpos={.5\slidewidth,.03\slideheight},
7197 rfpos={.95\slidewidth,.03\slideheight},
7198 tocpos={.02\slidewidth,.77\slideheight},
7199 tocwidth=.13\slidewidth,
7200 tocsecm={\psline[linewidth=.5pt,linecolor=pdcolor4]%
7201 (-.05,-.05)(.12\slidewidth,-.05)}
7202 }{%
7203 \pdifsetup{landscape}{%
7204 \psframe[linestyle=none,fillstyle=gradient,gradbegin=pdcolor2,%
7205 gradend=pdcolor3,gradangle=-90,gradmidpoint=0,linewidth=0pt]%
7206 (0,.8\slideheight)(\slidewidth,0)%
7207 \psframe[linestyle=none,fillstyle=gradient,gradbegin=pdcolor2,%
7208 gradend=pdcolor2,gradmidpoint=0,dimen=outer,linewidth=0pt]%
7209 (0,.8\slideheight)(\slidewidth,\slideheight)%
7210 }{%
7211 \psframe[linestyle=none,fillstyle=gradient,gradbegin=pdcolor3,%
7212 gradend=pdcolor2,gradmidpoint=0,dimen=outer]%
7213 (-.01\slidewidth,1.1\slideheight)(1.05\slidewidth,-.01\slideheight)%
7214 }%
7215 }
7216 \pddefinetemplate[basic]{titleslide}{
7217 texthook=t,textpos={.5\slidewidth,.7\slideheight},
7218 textwidth=.9\slidewidth,textfont=\centering\color{pdcolor4},
7219 textheight=.63\slideheight,
7220 titlefont=\Large\bfseries\centering,tocpos,ntocpos,stocpos
7221 }{%
7222 \setlength\@tempdima{.8\slideheight+.5pt}%
7223 \psframe[fillstyle=gradient,gradbegin=pdcolor3,gradend=pdcolor4,%
7224 gradangle=90,gradmidpoint=.5,linestyle=none,dimen=outer,linewidth=0pt]%
7225 (0,.8\slideheight)(\slidewidth,\@tempdima)%
7226 \setlength\@tempdima{.2\slideheight+.5pt}%
7227 \psframe[fillstyle=gradient,gradbegin=pdcolor3,gradend=pdcolor4,%
7228 gradangle=90,gradmidpoint=.5,linestyle=none,dimen=outer,linewidth=0pt]%
7229 (0,.2\slideheight)(\slidewidth,\@tempdima)%
7230 }
7231 \pddefinetemplate[basic]{slide}{}{%
7232 \pdifsetup{landscape}{%
7233 \psframe[fillstyle=gradient,gradbegin=pdcolor2,gradend=pdcolor3,%
7234 gradmidpoint=1,linestyle=none,dimen=outer,linewidth=0pt]%
7235 (0,\slideheight)(.15\slidewidth,0)%
7236 \pd@upenbg{.15\slidewidth}{.05\slidewidth}%
7237 }{\pd@upenbg{.1\slidewidth}{0pt}}%
7238 }
7239 \pddefinetemplate[basic]{wideslide}{
7240 titlepos={.05\slidewidth,.87\slideheight},
7241 titlewidth=.9\slidewidth,
7242 textpos={.05\slidewidth,.77\slideheight},
7243 textwidth=.9\slidewidth,
7244 ifsetup=landscape,tocpos
7245 }{%
7246 \setlength\@tempdima{.8\slideheight-.5pt}%
7247 \pdifsetup{landscape}{%
7248 \psframe[fillstyle=gradient,gradbegin=pdcolor2,gradend=white,linewidth=0pt,%
7249 gradangle=90,gradmidpoint=.2,linestyle=none,dimen=outer]%
7250 (.05\slidewidth,.8\slideheight)(.5\slidewidth,\@tempdima)%
7251 }{%
7252 \psframe[fillstyle=gradient,gradbegin=pdcolor2,gradend=white,linewidth=0pt,%
7253 gradangle=90,gradmidpoint=.2,linestyle=none,dimen=outer]%
7254 (0,.8\slideheight)(.45\slidewidth,\@tempdima)%
7255 }%
7256 }
7257 \pddefinetemplate[slide]{sectionslide}{
7258 titlewidth=.45\slidewidth,titlehook=c,
7259 titlefont=\Large\bfseries\centering\color{pdcolor4},
7260 ifsetup=landscape,
7261 titlepos={.59\slidewidth,.53\slideheight},
7262 ifsetup=portrait,
7263 titlepos={.5\slidewidth,.53\slideheight}
7264 }{{%
7265 \psset{linewidth=.8pt,linecolor=pdcolor3}%
7266 \pdifsetup{landscape}{%
7267 \psframe[fillstyle=solid,fillcolor=pdcolor2,linestyle=none]%
7268 (.34\slidewidth,.65\slideheight)(.84\slidewidth,.4\slideheight)%
7269 }{%
7270 \psframe[fillstyle=solid,fillcolor=pdcolor2,linestyle=none]%
7271 (.16\slidewidth,.65\slideheight)(.84\slidewidth,.4\slideheight)%
7272 }%
7273 }}
7274 \pddefinetemplate[wideslide]{sectionwideslide}{%
7275 titlewidth=.62\slidewidth,titlehook=c,
7276 titlefont=\Large\bfseries\centering\color{pdcolor4},
7277 titlepos={.5\slidewidth,.53\slideheight}
7278 }{%
7279 \psframe*[linecolor=pdcolor2]%
7280 (.16\slidewidth,.65\slideheight)(.84\slidewidth,.4\slideheight)%
7281 }
7282 \def\pd@upenbg#1#2{%
7283 \setlength\@tempdima{#1+.5pt}%
7284 \psframe[fillstyle=gradient,gradbegin=pdcolor2,gradend=white,%
7285 gradmidpoint=.4,linestyle=none,dimen=outer,linewidth=0pt]%
7286 (#1,.5\slideheight)(\@tempdima,\slideheight)%
7287 \setlength\@tempdima{.45\slidewidth+#2}%
7288 \setlength\@tempdimb{.8\slideheight-.5pt}%
7289 \psframe[fillstyle=gradient,gradbegin=pdcolor2,gradend=white,linewidth=0pt,%
7290 gradangle=90,gradmidpoint=.2,linestyle=none,dimen=outer]%
7291 (#2,.8\slideheight)(\@tempdima,\@tempdimb)%
7292 }
7293 \setkeys[pd]{section}{sectemp=sectionslide,widesectemp=sectionwideslide}
7294 \def\pd@tochighlight#1{%
7295 \begin{minipage}[b]\pd@@tocwidth
7296 \pd@usedtocfont\color\pd@@tochltcolor#1%
7297 \end{minipage}%
7298 }
7299 \pdifsetup{landscape}{\def\pd@tocentry#1{{\tiny\ensuremath\bullet}\ #1}}{}
7300 \def\labelitemi{\footnotesize\ding{110}}
7301 \def\labelitemii{\color{pdcolor4}\small ---}
7302 \def\labelitemiii{\color{red}\scriptsize\ding{115}}
7303 \def\labelitemiv{\color{yellow}\tiny\ensuremath\circ}
7304 \pdsetup{
7305 list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}
7306 }
7307 \def\rmdefault{phv}
7308 \def\sfdefault{phv}
7309 \def\Hv@scale{.85}
7310 %</pdupen>
7311 %
7312 %<*pdbframe>
7313 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
7314 \ProvidesPackage{powerdot-bframe}[2005/12/10 v1.2 bframe style (PRU,HA)]
7315 \RequirePackage{pifont}
7316 \RequirePackage{pst-blur}
7317 \pddefinepalettes{default}{
7318 \colorlet{pdcolor1}{white}
7319 \definecolor{pdcolor2}{rgb}{.7,.1,.1}
7320 \definecolor{pdcolor3}{rgb}{.01,.05,.56}
7321 }
7322 \pddefinetemplate{basic}{
7323 titlehook=B,titlefont=\large\bfseries\centering,
7324 clockcolor=pdcolor3,clockpos={.99\slidewidth,\slideheight},
7325 lfpos={.05\slidewidth,.04\slideheight},
7326 cfpos={.5\slidewidth,.04\slideheight},
7327 rfpos={.95\slidewidth,.04\slideheight},
7328 tocslidesep=.6ex,
7329 toctcolor=white,
7330 tochlcolor=pdcolor2,
7331 ifsetup=portrait,
7332 titlepos={.5\slidewidth,.91\slideheight},
7333 titlewidth=.9\slidewidth,
7334 textpos={.05\slidewidth,.85\slideheight},
7335 textwidth=.9\slidewidth,textheight=.69\slideheight,
7336 tocsecsep=.6ex,
7337 stochook=tr,stocpos={.48\slidewidth,.13\slideheight},
7338 stocfont=\tiny\raggedleft,
7339 ntocpos={.52\slidewidth,.13\slideheight},
7340 ifsetup=landscape,
7341 titlepos={.58\slidewidth,.91\slideheight},
7342 titlewidth=.75\slidewidth,
7343 textpos={.2\slidewidth,.85\slideheight},
7344 textwidth=.75\slidewidth,textheight=.69\slideheight
7345 }{}
7346 \pddefinetemplate[basic]{titleslide}{
7347 texthook=t,textpos={.5\slidewidth,.75\slideheight},
7348 textwidth=.9\slidewidth,textfont=\centering,
7349 titlepos,textheight=.59\slideheight
7350 }\pd@bframebg
7351 \pddefinetemplate[basic]{wideslide}{
7352 titlepos={.5\slidewidth,.91\slideheight},
7353 titlewidth=.9\slidewidth,
7354 textpos={.05\slidewidth,.85\slideheight},
7355 textwidth=.9\slidewidth
7356 }\pd@bframebg
7357 \pddefinetemplate[basic]{slide}{
7358 ifsetup=landscape,
7359 tocpos={.015\slidewidth,.83\slideheight},
7360 tocwidth=.14\slidewidth,
7361 tocsecm={\psline[linewidth=.5pt,linecolor=pdcolor2]%
7362 (-.05,-.05)(.143\slidewidth,-.05)}
7363 }{{%
7364 \psset{linecolor=pdcolor3,shadow=true,blur=true,shadowcolor=gray!60}%
7365 \pdifsetup{landscape}{%
7366 \psframe*[framearc=.3](0,.87\slideheight)(.17\slidewidth,.15\slideheight)%
7367 \psframe*[framearc=.1](.18\slidewidth,.87\slideheight)(.98\slidewidth,.15\slideheight)%
7368 \psframe*[framearc=.3](.02\slidewidth,.01\slideheight)(.98\slidewidth,.08\slideheight)%
7369 }{%
7370 \psframe*[framearc=.3](.02\slidewidth,.01\slideheight)(.98\slidewidth,.14\slideheight)%
7371 \psframe*[framearc=.1](.02\slidewidth,.87\slideheight)(.98\slidewidth,.15\slideheight)%
7372 }%
7373 }}
7374 \pddefinetemplate[slide]{sectionslide}{
7375 titlehook=c,titlefont=\Large\bfseries\centering,
7376 ifsetup=landscape,
7377 titlepos={.575\slidewidth,.55\slideheight},
7378 ifsetup=portrait,
7379 titlepos={.5\slidewidth,.55\slideheight},
7380 }{}
7381 \pddefinetemplate[wideslide]{sectionwideslide}{
7382 titlehook=c,titlefont=\color{white}\Large\bfseries\centering,
7383 titlepos={.5\slidewidth,.55\slideheight},
7384 titlewidth=.9\slidewidth
7385 }{}
7386 \def\pd@bframebg{{%
7387 \pdifsetup{landscape}{%
7388 \def\pd@tempa{.08\slideheight}%
7389 }{%
7390 \def\pd@tempa{.14\slideheight}%
7391 }%
7392 \psset{linecolor=pdcolor3,shadow=true,blur=true,shadowcolor=gray!60}%
7393 \psframe*[framearc=.3](.02\slidewidth,.01\slideheight)(.98\slidewidth,\pd@tempa)%
7394 \psframe*[framearc=.1](.02\slidewidth,.87\slideheight)(.98\slidewidth,.15\slideheight)%
7395 }}
7396 \def\pd@slidetitle#1{%
7397 \settowidth\@tempdima{#1}%
7398 \ifdim\@tempdima>\pd@@titlewidth\@tempdima\pd@@titlewidth\fi
7399 \rput[B](0,0){\psframebox*[framearc=.3,fillcolor=pdcolor3,%
7400 shadow=true,blur=true,shadowcolor=gray!60]{%
7401 \parbox[b]\@tempdima{#1}%
7402 }%
7403 }%
7404 }
7405 \def\pd@title#1{%
7406 {\let\thanks\@gobble\let\footnote\@gobble\settowidth\@tempdima{#1}}%
7407 \ifdim\@tempdima>\pd@@titlewidth\@tempdima\pd@@titlewidth\fi
7408 \advance\@tempdima-6pt
7409 \psframebox*[framearc=.3,fillcolor=pdcolor2]{\parbox[b]\@tempdima{#1}}%
7410 }
7411 \setkeys[pd]{section}{sectemp=sectionslide,widesectemp=sectionwideslide}
7412 \pdifsetup{landscape}{\def\pd@tocslide#1{{\tiny\color{yellow}\ding{117}} #1}}{}
7413 \def\labelitemi{\footnotesize\ding{110}}
7414 \def\labelitemii{\small\ding{117}}
7415 \def\labelitemiii{\tiny\ding{110}}
7416 \def\labelitemiv{\tiny\ding{117}}
7417 \pdsetup{
7418 list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}
7419 }
7420 \def\rmdefault{put}
7421 %</pdbframe>
7422 %
7423 %<*pdhoratio>
7424 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
7425 \ProvidesPackage{powerdot-horatio}[2005/12/10 v1.1 horatio style (ML,HA)]
7426 \RequirePackage{pifont}
7427 \pddefinepalettes{default}{
7428 \definecolor{pdcolor1}{HTML}{004477}
7429 \definecolor{pdcolor2}{HTML}{5588ae}
7430 }
7431 \pddefinetemplate{basic}{
7432 titlehook=Bl,
7433 titlepos={.2\slidewidth,.91\slideheight},
7434 titlewidth=.77\slidewidth,
7435 titlefont=\color{white}\large\bfseries\raggedright,
7436 clockcolor=white,clockpos={.99\slidewidth,\slideheight},
7437 lfpos={.2\slidewidth,.04\slideheight},
7438 lffont=\tiny\color{white},
7439 cfpos={.585\slidewidth,.04\slideheight},
7440 cffont=\tiny\color{white},
7441 rfpos={.97\slidewidth,.04\slideheight},
7442 rffont=\tiny\color{white},
7443 tocslidesep=.6ex,
7444 textheight=.68\slideheight,
7445 ifsetup=landscape,
7446 toctcolor=pdcolor1,
7447 tochlcolor=pdcolor1,
7448 tochltcolor=white,
7449 tocpos={.01\slidewidth,.81\slideheight},
7450 tocwidth=.14\slidewidth,
7451 tocsecm={\psline[linewidth=.5pt,linecolor=pdcolor1]%
7452 (-.05,-.05)(.143\slidewidth,-.05)},
7453 ifsetup=portrait,
7454 toctcolor=white,
7455 tochlcolor=white,
7456 tochltcolor=pdcolor1,
7457 tocsecsep=.6ex,
7458 stochook=tr,stocpos={.55\slidewidth,.09\slideheight},
7459 stocfont=\tiny\raggedleft,
7460 ntocpos={.57\slidewidth,.09\slideheight}
7461 }{{%
7462 \psset{linecolor=pdcolor1}%
7463 \psframe*(0,0)(\slidewidth,.1\slideheight)%
7464 \psframe*(0,.85\slideheight)(\slidewidth,\slideheight)%
7465 \psset{linecolor=pdcolor2,linewidth=1pt}%
7466 \psline(.17\slidewidth,0)(.17\slidewidth,.1\slideheight)%
7467 \psline(.17\slidewidth,.85\slideheight)(.17\slidewidth,\slideheight)%
7468 }}
7469 \pddefinetemplate[basic]{titleslide}{
7470 titlefont=\large\bfseries\centering,
7471 texthook=t,
7472 textpos={.5\slidewidth,.7\slideheight},
7473 textwidth=.75\slidewidth,
7474 textfont=\centering,
7475 textheight=.57\slideheight,
7476 ifsetup=landscape,tocpos,ifsetup=portrait,stocpos,ntocpos
7477 }{}
7478 \pddefinetemplate[basic]{slide}{
7479 textpos={.2\slidewidth,.81\slideheight},
7480 textwidth=.77\slidewidth,
7481 ifsetup=portrait,
7482 textpos={.05\slidewidth,.81\slideheight},
7483 textwidth=.9\slidewidth
7484 }{%
7485 \pdifsetup{landscape}{%
7486 \psline[linewidth=1pt,linecolor=pdcolor2]%
7487 (.17\slidewidth,0)(.17\slidewidth,\slideheight)%
7488 }{}%
7489 }
7490 \pddefinetemplate[basic]{wideslide}{
7491 textpos={.03\slidewidth,.81\slideheight},
7492 textwidth=.94\slidewidth,
7493 ifsetup=landscape,tocpos,ifsetup=portrait,
7494 textpos={.05\slidewidth,.81\slideheight},
7495 textwidth=.9\slidewidth
7496 }{}
7497 \pddefinetemplate[slide]{sectionslide}{
7498 titlehook=c,titlefont=\Large\bfseries\centering,
7499 ifsetup=landscape,
7500 titlepos={.6\slidewidth,.55\slideheight},
7501 titlewidth=.7\slidewidth,
7502 ifsetup=portrait,
7503 titlepos={.5\slidewidth,.55\slideheight},
7504 titlewidth=.75\slidewidth
7505 }{}
7506 \pddefinetemplate[wideslide]{sectionwideslide}{
7507 titlehook=c,titlefont=\Large\bfseries\centering,
7508 titlepos={.5\slidewidth,.55\slideheight},
7509 titlewidth=.75\slidewidth
7510 }{}
7511 \setkeys[pd]{section}{sectemp=sectionslide,widesectemp=sectionwideslide}
7512 \def\labelitemi{\small\ding{'64}}
7513 \def\labelitemii{\small\ding{'70}}
7514 \def\labelitemiii{\small\ding{'63}}
7515 \def\labelitemiv{\small\ding{'67}}
7516 \pdsetup{
7517 list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}
7518 }
7519 \def\rmdefault{cmss}
7520 %</pdhoratio>
7521 %
7522 %<*pdpaintings>
7523 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
7524 \ProvidesPackage{powerdot-paintings}[2005/12/10 v1.1 paintings (TDK,HA)]
7525 \RequirePackage{times}
7526 \RequirePackage{pifont}
7527 \pddefinepalettes{Syndics}{% Rembrandt van Rijn: "The Syndics" - 1662
7528 \definecolor{pdcolor1}{rgb}{.06,.06,.06} % Black hat
7529 \definecolor{pdcolor2}{rgb}{.97,.97,.94} % Collar of rising man
7530 \definecolor{pdcolor3}{rgb}{.22,.09,.09} % Tablecloth lower right
7531 \definecolor{pdcolor4}{rgb}{.97,.97,.91} % Book page
7532 \definecolor{pdcolor5}{rgb}{.58,.19,.13} % Tablecloth lower left
7533 \definecolor{pdcolor6}{rgb}{.42,.2,.22} % Back wall
7534 \definecolor{pdcolor7}{rgb}{.84,.71,.55} % Forehead of man in background
7535 }{Skater}{% Gilbert Stuart: "The Skater (Portrait of William Grant)" - 1782
7536 \definecolor{pdcolor1}{rgb}{.09,.06,.09} % Hat
7537 \definecolor{pdcolor2}{rgb}{1,.97,.94} % White collar
7538 \definecolor{pdcolor3}{rgb}{.26,.22,.19} % Ice
7539 \definecolor{pdcolor4}{rgb}{.94,.91,.87} % Sky
7540 \definecolor{pdcolor5}{rgb}{.78,.52,.45} % Right cheek
7541 \definecolor{pdcolor6}{rgb}{.45,.39,.26} % Ground under small figures
7542 \definecolor{pdcolor7}{rgb}{.71,.71,.68} % Frozen lake at left
7543 }{GoldenGate}{% Giotto: "Meeting of Joachim and Anne at the Golden Gate" - 1305-10
7544 \definecolor{pdcolor1}{rgb}{.13,.09,.13} % Dress of woman in black
7545 \definecolor{pdcolor2}{rgb}{.94,.94,.91} % Bridge
7546 \definecolor{pdcolor3}{rgb}{.06,.09,.22} % Blue sky
7547 \definecolor{pdcolor4}{rgb}{.94,.91,.87} % Dress of woman with shawl
7548 \definecolor{pdcolor5}{rgb}{.52,.26,.26} % Joachim's robe
7549 \definecolor{pdcolor6}{rgb}{.65,.35,.16} % Anne's robe
7550 \definecolor{pdcolor7}{rgb}{.91,.84,.42} % Joachim's halo
7551 }{Lamentation}{% Giotto: "Lamentation of Christ" - 1305-10
7552 \definecolor{pdcolor1}{rgb}{.16,.09,.06} % Dark hair of man
7553 \definecolor{pdcolor2}{rgb}{.91,.91,.94} % White robe at lower left
7554 \definecolor{pdcolor3}{rgb}{.19,.22,.29} % Cloak of Christ
7555 \definecolor{pdcolor4}{rgb}{.94,.94,.91} % Skin of Christ
7556 \definecolor{pdcolor5}{rgb}{.55,.26,.22} % Mary Magdalene dress
7557 \definecolor{pdcolor6}{rgb}{.19,.26,.52} % Sky
7558 \definecolor{pdcolor7}{rgb}{.84,.74,.71} % Mary Magdalene sleeve
7559 }{HolyWood}{% Piero della Francesca: "Discovery of the Holy Wood" - ca. 1455
7560 \definecolor{pdcolor1}{rgb}{.19,.21,.19} % Horse's ear
7561 \definecolor{pdcolor2}{rgb}{.97,.97,.94} % Attendant's neck
7562 \definecolor{pdcolor3}{rgb}{.29,.13,.13} % Attendant's russet dress
7563 \definecolor{pdcolor4}{rgb}{.94,.94,.91} % Horse's rear
7564 \definecolor{pdcolor5}{rgb}{.22,.35,.55} % Queen of Sheba's dress
7565 \definecolor{pdcolor6}{rgb}{.74,.48,.42} % Dusky rose dress
7566 \definecolor{pdcolor7}{rgb}{.84,.71,.61} % Queen of Sheba's hand
7567 }{Europa}{% Titian: "The Rape of Europa" - 1559-62
7568 \definecolor{pdcolor1}{rgb}{.09,.06,.03} % Bull's eye
7569 \definecolor{pdcolor2}{rgb}{1,.97,.84} % Europa's bodice
7570 \definecolor{pdcolor3}{rgb}{.16,.13,.09} % Sea
7571 \definecolor{pdcolor4}{rgb}{1,.97,.84} % Europa's breast
7572 \definecolor{pdcolor5}{rgb}{.58,.26,.13} % Flying cape
7573 \definecolor{pdcolor6}{rgb}{.32,.29,.39} % Deep blue sky
7574 \definecolor{pdcolor7}{rgb}{.84,.78,.52} % Bull's right front leg
7575 }{Moitessier}{% Jean Auguste Dominque Ingres: "Madame Moitessier, Standing" - 1851
7576 \definecolor{pdcolor1}{rgb}{.06,.03,.03} % Black dress
7577 \definecolor{pdcolor2}{rgb}{.87,.84,.78} % Accessories at lower left
7578 \definecolor{pdcolor3}{rgb}{.22,.03,.06} % Deep red wall
7579 \definecolor{pdcolor4}{rgb}{1,.97,.91} % Accessories at lower left
7580 \definecolor{pdcolor5}{rgb}{.78,.35,.32} % Flower in hair
7581 \definecolor{pdcolor6}{rgb}{.58,.55,.71} % Blue jewel on left wrist
7582 \definecolor{pdcolor7}{rgb}{1,.78,.65} % Left forearm
7583 }{MayThird}{% Francisco Goya: "Third of May, 1808" - 1814
7584 \definecolor{pdcolor1}{rgb}{0,0,0} % Black sky
7585 \definecolor{pdcolor2}{rgb}{.97,.97,.94} % Shirt of victim
7586 \definecolor{pdcolor3}{rgb}{.29,.19,.13} % Face of victim
7587 \definecolor{pdcolor4}{rgb}{.97,.97,.97} % Left side of lantern
7588 \definecolor{pdcolor5}{rgb}{.55,.26,.22} % Blood of man in foreground
7589 \definecolor{pdcolor6}{rgb}{.68,.48,.16} % Trousers of victim
7590 \definecolor{pdcolor7}{rgb}{.68,.65,.58} % Coattails of foreground soldier
7591 }{PearlEarring}{% Johannes Vermeer: "Girl with a Pearl Earring" - 1665
7592 \definecolor{pdcolor1}{rgb}{.06,.06,.06} % Pupil of eye
7593 \definecolor{pdcolor2}{rgb}{.97,.97,.91} % Sclera of left eye
7594 \definecolor{pdcolor3}{rgb}{.26,.29,.42} % Blue head scarf
7595 \definecolor{pdcolor4}{rgb}{1,1,.9} % Reflection off earring
7596 \definecolor{pdcolor5}{rgb}{.71,.61,.39} % Beige head scarf
7597 \definecolor{pdcolor6}{rgb}{.65,.35,.29} % Lower lip
7598 \definecolor{pdcolor7}{rgb}{.68,.71,.78} % Light blue over forehead
7599 }{Charon}{% Michelangelo: "Charon" (Detail from "The Last Judgment" - 1534-41
7600 \definecolor{pdcolor1}{rgb}{.91,.91,.87} % Sclera of right eye
7601 \definecolor{pdcolor2}{rgb}{.13,.13,.13} % Pupil of right eye
7602 \definecolor{pdcolor3}{rgb}{.39,.39,.48} % Left ear
7603 \definecolor{pdcolor4}{rgb}{.91,.91,.94} % Right forehead
7604 \definecolor{pdcolor5}{rgb}{.65,.71,.84} % Sky at upper right
7605 \definecolor{pdcolor6}{rgb}{.81,.78,.65} % Right eyebrow
7606 \definecolor{pdcolor7}{rgb}{.42,.35,.39} % Moustache
7607 }
7608 \pddefinetemplate{titleslide}{
7609 titlefont=\LARGE\sl\color{pdcolor4}\centering,
7610 clockcolor=pdcolor4,clockpos={.99\slidewidth,\slideheight},
7611 texthook=t,
7612 textpos={.5\slidewidth,.65\slideheight},
7613 textwidth=.8\slidewidth,
7614 textfont=\large\color{pdcolor4}\centering,
7615 textheight=.5\slideheight
7616 }{%
7617 \psframe*[linecolor=pdcolor3](0,\slideheight)(\slidewidth,0)%
7618 }
7619 \pddefinetemplate{slide}{
7620 titlepos={.05\slidewidth,.93\slideheight},
7621 titlewidth=.9\slidewidth,
7622 titlefont=\bfseries\color{pdcolor4}\raggedright,
7623 clockcolor=pdcolor4,clockpos={.99\slidewidth,\slideheight},
7624 textpos={.05\slidewidth,.85\slideheight},
7625 textwidth=.9\slidewidth,
7626 lfpos={.015\slidewidth,.015\slideheight},
7627 cfpos={.5\slidewidth,.015\slideheight},
7628 rfpos={.985\slidewidth,.015\slideheight},
7629 rftemp=\pd@@rf,
7630 textheight=.8\slideheight
7631 }{%
7632 \psframe*[linecolor=pdcolor2](0,0)(\slidewidth,.89\slideheight)%
7633 \psframe*[linecolor=pdcolor3](0,\slideheight)(\slidewidth,.89\slideheight)%
7634 }
7635 \pddefinetemplate[slide]{wideslide}{}{}
7636 \pddefinetemplate[titleslide]{sectionslide}{
7637 titlehook=c,titlefont=\LARGE\color{pdcolor4}\centering,
7638 titlepos={.5\slidewidth,.55\slideheight},
7639 titlewidth=.8\slidewidth
7640 }{}
7641 \setkeys[pd]{section}{
7642 sectemp=sectionslide,widesectemp=sectionslide
7643 }
7644 \def\labelitemi{\color{pdcolor3}\ensuremath\bullet}
7645 \def\labelitemii{\color{pdcolor5}\ensuremath\bullet}
7646 \def\labelitemiii{\color{pdcolor6}\ensuremath\bullet}
7647 \def\labelitemiv{\color{pdcolor1}\ensuremath\bullet}
7648 \pdsetup{
7649 list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt},
7650 dmaxheight=.85\slideheight
7651 }
7652 \def\familydefault{\sfdefault}
7653 %</pdpaintings>
7654 %
7655 %<*pdklope>
7656 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
7657 \ProvidesPackage{powerdot-klope}[2005/12/10 v1.1 klope style (CE,HA)]
7658 \RequirePackage{pifont}
7659 \RequirePackage{pst-slpe}
7660 \pddefinepalettes{Spring}{
7661 \definecolor{pdcolor1}{rgb}{.475,.376,.271} % cedar
7662 \definecolor{pdcolor2}{rgb}{.682,.749,.376} % moss
7663 \definecolor{pdcolor3}{rgb}{1,.949,.749} % sand
7664 \definecolor{pdcolor4}{rgb}{.749,.675,.376} % driftwood
7665 \colorlet{myiacolor}{pdcolor4}
7666 \colorlet{sectitlecolor}{pdcolor2}
7667 \colorlet{stitlecolor}{pdcolor3}
7668 \colorlet{lgsquare}{pdcolor1}
7669 \colorlet{smsquare}{pdcolor4}
7670 \colorlet{slidebg}{pdcolor3}
7671 \colorlet{slidehbg}{pdcolor2}
7672 \colorlet{mytoctcolor}{pdcolor1}
7673 \colorlet{mytochltcolor}{pdcolor3}
7674 \def\pd@klopebg{%
7675 \psframe[linestyle=none,fillstyle=slope,slopebegin=pdcolor3,%
7676 slopeend=pdcolor2,slopeangle=270](0,0)(\slidewidth,\slideheight)%
7677 }
7678 }{PastelFlower}{
7679 \definecolor{pdcolor1}{rgb}{.349,.5,.5} % sea green
7680 \definecolor{pdcolor2}{rgb}{.8,.706,.561} % brown
7681 \definecolor{pdcolor3}{rgb}{.812,.902,.902} % sky blue
7682 \definecolor{pdcolor4}{rgb}{.8,.561,.561} % rose
7683 \colorlet{myiacolor}{pdcolor4}
7684 \colorlet{sectitlecolor}{pdcolor4}
7685 \colorlet{stitlecolor}{pdcolor3}
7686 \colorlet{lgsquare}{pdcolor1}
7687 \colorlet{smsquare}{pdcolor4}
7688 \colorlet{slidebg}{pdcolor3}
7689 \colorlet{slidehbg}{pdcolor2}
7690 \colorlet{mytoctcolor}{pdcolor1}
7691 \colorlet{mytochltcolor}{pdcolor3}
7692 \def\pd@klopebg{%
7693 \psframe[linestyle=none,fillstyle=slope,slopebegin=pdcolor3,%
7694 slopeend=pdcolor2,slopeangle=270](0,0)(\slidewidth,\slideheight)%
7695 }
7696 }{BlueWater}{
7697 \definecolor{pdcolor1}{rgb}{.902,.957,1} % lightblue
7698 \definecolor{pdcolor2}{rgb}{.376,.588,.749} % medblue
7699 \definecolor{pdcolor3}{rgb}{.749,.635,.376} % lighttan
7700 \definecolor{pdcolor4}{rgb}{1,.8,.749} % pink
7701 \colorlet{myiacolor}{pdcolor3}
7702 \colorlet{sectitlecolor}{pdcolor1}
7703 \colorlet{stitlecolor}{pdcolor2}
7704 \colorlet{lgsquare}{pdcolor3}
7705 \colorlet{smsquare}{pdcolor4}
7706 \colorlet{slidebg}{pdcolor2}
7707 \colorlet{slidehbg}{pdcolor1}
7708 \colorlet{mytoctcolor}{pdcolor3}
7709 \colorlet{mytochltcolor}{pdcolor2}
7710 \def\pd@klopebg{%
7711 \psframe*[linecolor=pdcolor2](0,0)(\slidewidth,\slideheight)%
7712 }
7713 }{BlackWhite}{
7714 \definecolor{pdcolor1}{rgb}{0,0,0} % white
7715 \definecolor{pdcolor2}{rgb}{1,1,1} % black
7716 \definecolor{pdcolor3}{rgb}{.5,.5,.5} % gray
7717 \colorlet{myiacolor}{pdcolor3}
7718 \colorlet{sectitlecolor}{pdcolor1}
7719 \colorlet{stitlecolor}{pdcolor1}
7720 \colorlet{lgsquare}{pdcolor1}
7721 \colorlet{smsquare}{pdcolor3}
7722 \colorlet{slidebg}{pdcolor2}
7723 \colorlet{slidehbg}{pdcolor2}
7724 \colorlet{mytoctcolor}{pdcolor3}
7725 \colorlet{mytochltcolor}{pdcolor1}
7726 \def\pd@klopebg{%
7727 \psframe*[linecolor=pdcolor2](0,0)(\slidewidth,\slideheight)%
7728 }
7729 }
7730 \pddefinetemplate{titleslide}{
7731 textpos={.15\slidewidth,.75\slideheight},
7732 textwidth=.7\slidewidth,
7733 titlefont=\bfseries\LARGE\centering,
7734 textfont=\centering,
7735 textheight=.67\slideheight,
7736 clockhook=t,clockpos={.5\slidewidth,.045\slideheight},
7737 clockalign=1,clockcolor=pdcolor1
7738 }{{%
7739 \psset{linewidth=0pt}\pd@klopebg
7740 \pd@klopesq+-01\pd@klopesq++00\pd@klopesq-+10\pd@klopesq--11%
7741 }}
7742 \pddefinetemplate{slide}{
7743 titlepos={.15\slidewidth,.93\slideheight},
7744 titlewidth=.7\slidewidth,
7745 titlefont=\bfseries\Large\color{stitlecolor}\centering,
7746 stochook=t,
7747 stocpos={.5\slidewidth,.89\slideheight},
7748 stocwidth=.7\slidewidth,stocorient=h,
7749 toctcolor=mytoctcolor,
7750 tochltcolor=mytochltcolor,
7751 tocsecsep=4pt,
7752 textpos={.05\slidewidth,.8\slideheight},
7753 textwidth=.9\slidewidth,
7754 textheight=.72\slideheight,
7755 lfpos={.015\slidewidth,.015\slideheight},
7756 lffont=\tiny,
7757 cfpos={.5\slidewidth,.015\slideheight},
7758 cffont=\tiny,
7759 rfpos={.985\slidewidth,.015\slideheight},
7760 rffont=\tiny,
7761 iacolor=myiacolor,
7762 clockhook=t,clockpos={.5\slidewidth,.045\slideheight},
7763 clockalign=1,clockcolor=pdcolor1
7764 }{{%
7765 \psset{linewidth=0pt}%
7766 \psframe*[linecolor=slidebg](0,0)(\slidewidth,\slideheight)%
7767 \psframe*[linecolor=slidehbg](0,.85\slideheight)(\slidewidth,\slideheight)%
7768 \pd@klopesq+-01\pd@klopesq--11%
7769 \psset{linewidth=.1pt}%
7770 \psline[linecolor=pdcolor1](0,.05\slideheight)(\slidewidth,.05\slideheight)%
7771 \psline[linecolor=slidehbg](0,.055\slideheight)(\slidewidth,.055\slideheight)%
7772 }}
7773 \pddefinetemplate[slide]{wideslide}{}{}
7774 \pddefinetemplate[slide]{sectionslide}{
7775 titlepos={.15\slidewidth,.55\slideheight},
7776 titlefont=\bfseries\LARGE\color{sectitlecolor}\centering,
7777 textpos,lfpos,cfpos,rfpos
7778 }{{%
7779 \psframe*[linecolor=slidebg](0,0)(\slidewidth,.5\slideheight)%
7780 \pd@klopesq++00\pd@klopesq-+10%
7781 }}
7782 \def\pd@klopesq#1#2#3#4{%
7783 \@tempdima#3\slidewidth\@tempdimb#4\slideheight
7784 \advance\@tempdima#1.3cm\advance\@tempdimb#2.3cm
7785 \edef\pd@tempa{\the\@tempdima}\edef\pd@tempb{\the\@tempdimb}%
7786 \advance\@tempdima#1.8cm\advance\@tempdimb#2.8cm
7787 \psframe*[linecolor=lgsquare](\pd@tempa,\pd@tempb)%
7788 (\@tempdima,\@tempdimb)%
7789 \@tempdima\pd@tempa\@tempdimb\pd@tempb
7790 \advance\@tempdima#1.3cm\advance\@tempdimb#2.3cm
7791 \edef\pd@tempa{\the\@tempdima}\edef\pd@tempb{\the\@tempdimb}%
7792 \advance\@tempdima#1.7cm\advance\@tempdimb#2.7cm
7793 \psframe*[linecolor=smsquare](\pd@tempa,\pd@tempb)%
7794 (\@tempdima,\@tempdimb)%
7795 }
7796 \def\pd@tocdisplay#1{\pd@usedtocfont\color\pd@@toctcolor#1}
7797 \def\pd@tochighlight#1{\pd@usedtocfont\color\pd@@tochltcolor#1}
7798 \setkeys[pd]{section}{sectemp=sectionslide,widesectemp=sectionslide}
7799 \def\labelitemi{\footnotesize\ding{110}}
7800 \def\labelitemii{\small\ding{117}}
7801 \def\labelitemiii{\tiny\ding{110}}
7802 \def\labelitemiv{\tiny\ding{117}}
7803 \pdsetup{
7804 list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}
7805 }
7806 \def\rmdefault{cmss}
7807 %</pdklope>
7808 %
7809 %<*pdjefka>
7810 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
7811 \ProvidesPackage{powerdot-jefka}[2005/12/10 v1.1 jefka style (CE,HA)]
7812 \RequirePackage{pifont}
7813 \pddefinepalettes{brown}{
7814 \definecolor{pdcolor1}{RGB}{121,96,69}
7815 \definecolor{pdcolor2}{rgb}{1,.949,.749}
7816 \definecolor{pdcolor3}{RGB}{190,163,117}
7817 }{seagreen}{
7818 \definecolor{pdcolor1}{HTML}{FFE680}
7819 \definecolor{pdcolor2}{rgb}{.349,.5,.5}
7820 \definecolor{pdcolor3}{HTML}{FFC080}
7821 }{blue}{
7822 \definecolor{pdcolor1}{rgb}{.902,.957,1}
7823 \definecolor{pdcolor2}{HTML}{00487D}
7824 \definecolor{pdcolor3}{rgb}{.749,.635,.376}
7825 }{white}{
7826 \definecolor{pdcolor1}{rgb}{0,0,0}
7827 \definecolor{pdcolor2}{rgb}{1,1,1}
7828 \definecolor{pdcolor3}{rgb}{.5,.5,.5}
7829 }
7830 \pddefinetemplate{titleslide}{
7831 textpos={.15\slidewidth,.75\slideheight},
7832 textwidth=.7\slidewidth,
7833 titlefont=\bfseries\LARGE\centering,
7834 textfont=\centering,
7835 textheight=.67\slideheight,
7836 clockhook=t,clockpos={.5\slidewidth,.045\slideheight},
7837 clockalign=1,clockcolor=pdcolor1
7838 }{%
7839 \psframe*[linewidth=0pt,linecolor=pdcolor2]%
7840 (0,0)(\slidewidth,\slideheight)%
7841 }
7842 \pddefinetemplate{slide}{
7843 rfpos={.985\slidewidth,.015\slideheight},
7844 rffont=\tiny,
7845 iacolor=pdcolor3,
7846 clockhook=t,clockpos={.5\slidewidth,.045\slideheight},
7847 clockalign=1,clockcolor=pdcolor1,
7848 titlewidth=.7\slidewidth,
7849 titlefont=\bfseries\LARGE\color{pdcolor1}\raggedright,
7850 textwidth=.9\slidewidth,
7851 titlepos={.05\slidewidth,.93\slideheight},
7852 textpos={.05\slidewidth,.87\slideheight},
7853 textheight=.76\slideheight
7854 }{{%
7855 \psset{linewidth=0pt}%
7856 \psframe*[linecolor=pdcolor2](0,0)(\slidewidth,\slideheight)%
7857 \pspolygon*[linecolor=pdcolor1]%
7858 (0,0)(.1\slidewidth,0)(0,.1\slideheight)
7859 \pspolygon*[linecolor=pdcolor1](\slidewidth,\slideheight)%
7860 (.9\slidewidth,\slideheight)(\slidewidth,.9\slideheight)%
7861 }}
7862 \pddefinetemplate[slide]{sectionslide}{
7863 titlehook=t,titlepos={.5\slidewidth,.55\slideheight},
7864 titlefont=\bfseries\LARGE\color{pdcolor1}\centering
7865 }{}
7866 \pddefinetemplate[slide]{wideslide}{}{}
7867 \setkeys[pd]{section}{sectemp=sectionslide,widesectemp=sectionslide}
7868 \def\labelitemi{\footnotesize\ding{110}}
7869 \def\labelitemii{\small\ding{117}}
7870 \def\labelitemiii{\tiny\ding{110}}
7871 \def\labelitemiv{\tiny\ding{117}}
7872 \pdsetup{
7873 list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}
7874 }
7875 \def\rmdefault{cmss}
7876 %</pdjefka>
7877 %
7878 %<*pdpazik>
7879 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
7880 \ProvidesPackage{powerdot-pazik}[2005/12/10 v1.1 pazik style (CE,HA)]
7881 \RequirePackage{pifont}
7882 \RequirePackage{pst-char}
7883 \RequirePackage{pst-grad}
7884 \RequirePackage{type1cm}
7885 \DeclareFixedFont\pd@psmath{OML}{cmm}{m}{it}{2cm}
7886 \DeclareFixedFont\pd@psroman{OT1}{cmr}{m}{n}{2cm}
7887 \pddefinepalettes{red}{
7888 \definecolor{pdcolor1}{RGB}{225,187,100} % gold
7889 \definecolor{pdcolor2}{RGB}{111,24,17} % brick red
7890 \definecolor{pdcolor3}{RGB}{0,0,0} % black
7891 \colorlet{mytoctcolor}{pdcolor1}
7892 \colorlet{mytochlcolor}{pdcolor2!90}
7893 \colorlet{mytitlecolor}{pdcolor1}
7894 \colorlet{myiacolor}{pdcolor1!65!pdcolor3}
7895 \def\pd@pazik@i{\pd@psmath\char25}
7896 \def\pd@pazik@ii{\pd@psroman e}
7897 \def\pd@pazik@iii{\pd@psroman i}
7898 \def\pd@pazik@iv{\pd@psmath\char16}
7899 }{brown}{
7900 \definecolor{pdcolor1}{RGB}{22,80,100} % blue
7901 \definecolor{pdcolor2}{rgb}{.749,.635,.376} % tan
7902 \definecolor{pdcolor3}{RGB}{0,0,0} % black
7903 \colorlet{mytoctcolor}{pdcolor2}
7904 \colorlet{mytochlcolor}{pdcolor1}
7905 \colorlet{mytitlecolor}{pdcolor2}
7906 \colorlet{myiacolor}{pdcolor1!70}
7907 \def\pd@pazik@i{\pd@psmath h}
7908 \def\pd@pazik@ii{\pd@psmath e}
7909 \def\pd@pazik@iii{\pd@psmath c}
7910 \def\pd@pazik@iv{\pd@psmath\char11}
7911 }
7912 \pddefinetemplate{titleslide}{
7913 textpos={.15\slidewidth,.75\slideheight},
7914 textwidth=.7\slidewidth,
7915 titlefont=\bfseries\LARGE\centering,
7916 textfont=\centering,
7917 ifsetup=landscape,
7918 textheight=.67\slideheight,
7919 ifsetup=portrait,
7920 textheight=.55\slideheight
7921 }{{%
7922 \psframe*[linestyle=none,linecolor=pdcolor2!90]%
7923 (0,0)(\slidewidth,\slideheight)%
7924 \psset{linestyle=none,fillstyle=gradient,gradbegin=pdcolor2!90,%
7925 gradend=pdcolor3,gradmidpoint=0,linewidth=0pt}%
7926 \pdifsetup{landscape}{%
7927 \psframe[gradangle=90](0\slidewidth,0\slideheight)%
7928 (.15\slidewidth,\slideheight)%
7929 \pd@pazik@lbg
7930 }{%
7931 \psframe[gradangle=180](0\slidewidth,0\slideheight)%
7932 (\slidewidth,.2\slideheight)%
7933 \pd@pazik@pbg
7934 }%
7935 }}
7936 \pddefinetemplate{basic}{%
7937 titlefont=\bfseries\LARGE\color{mytitlecolor}\raggedright,
7938 rfpos={.98\slidewidth,.015\slideheight},
7939 lffont=\tiny,cffont=\tiny,rffont=\tiny,
7940 iacolor=myiacolor,
7941 clockhook=t,
7942 clockalign=1,
7943 clockcolor=pdcolor1,
7944 toctcolor=mytoctcolor,
7945 tochltcolor=mytoctcolor,
7946 tochlcolor=mytochlcolor,
7947 tocfont=\tiny\raggedright,
7948 ifsetup=landscape,
7949 textheight=.82\slideheight,
7950 titlepos={.02\slidewidth,.94\slideheight},
7951 titlewidth=.96\slidewidth,
7952 ifsetup=portrait,
7953 lfpos={.02\slidewidth,.015\slideheight},
7954 cfpos={.5\slidewidth,.015\slideheight},
7955 clockpos={.5\slidewidth,.035\slideheight},
7956 titlepos={.02\slidewidth,.945\slideheight},
7957 titlewidth=.96\slidewidth,
7958 textpos={.02\slidewidth,.87\slideheight},
7959 textwidth=.96\slidewidth,
7960 }{{%
7961 \psframe*[linestyle=none,linecolor=pdcolor2!90]%
7962 (0,0)(\slidewidth,\slideheight)%
7963 \psset{linestyle=none,fillstyle=gradient,gradbegin=pdcolor2!90,%
7964 gradend=pdcolor3,gradmidpoint=0,gradangle=90,linewidth=0pt}%
7965 \pdifsetup{landscape}{%
7966 \psframe(.145\slidewidth,\slideheight)(\slidewidth,.9\slideheight)%
7967 \pd@pazik@lbg
7968 }{%
7969 \psframe(0,\slideheight)(\slidewidth,.9\slideheight)%
7970 \pd@pazik@pbg
7971 }%
7972 }}
7973 \pddefinetemplate[basic]{slide}{
7974 ifsetup=landscape,
7975 lfpos={.17\slidewidth,.015\slideheight},
7976 cfpos={.575\slidewidth,.015\slideheight},
7977 clockpos={.07\slidewidth,.045\slideheight},
7978 textpos={.17\slidewidth,.87\slideheight},
7979 textwidth=.81\slidewidth,
7980 tocwidth=.12\slidewidth,
7981 tocslidesep=.3em,tocslideindent=.2em,
7982 tocsecm={\psline[linewidth=.2pt,linecolor=pdcolor1]%
7983 (-.05,-.05)(.12\slidewidth,-.05)},
7984 tocpos={.015\slidewidth,.86\slideheight},
7985 ifsetup=portrait,
7986 textheight=.65\slideheight,tocsecsep=.2em,
7987 stochook=tr,stocpos={.44\slidewidth,.18\slideheight},
7988 stocfont=\tiny\raggedleft,
7989 tocslidesep=.2em,
7990 ntocpos={.56\slidewidth,.18\slideheight},
7991 ntocfont=\tiny\raggedright
7992 }{%
7993 \pdifsetup{landscape}{%
7994 \psframe*[linestyle=none,linecolor=pdcolor3]%
7995 (0,0)(.15\slidewidth,\slideheight)%
7996 }{%
7997 \psframe*[linestyle=none,linecolor=pdcolor3]%
7998 (0,0)(\slidewidth,.2\slideheight)%
7999 }%
8000 }
8001 \pddefinetemplate[basic]{wideslide}{%
8002 ifsetup=landscape,
8003 tocpos,textpos={.02\slidewidth,.87\slideheight},
8004 textwidth=.96\slidewidth,
8005 lfpos={.02\slidewidth,.015\slideheight},
8006 cfpos={.5\slidewidth,.015\slideheight},
8007 clockpos={.5\slidewidth,.045\slideheight},
8008 ifsetup=portrait,
8009 textheight=.82\slideheight,
8010 }{%
8011 \pdifsetup{landscape}{%
8012 \psframe*[linestyle=none,linecolor=pdcolor3]%
8013 (0,\slideheight)(.15\slidewidth,.9\slideheight)%
8014 }{}%
8015 }
8016 \pddefinetemplate[slide]{sectionslide}{%
8017 titlehook=c,
8018 titlefont=\bfseries\LARGE\centering,
8019 titlewidth=.9\slidewidth,
8020 ifsetup=landscape,
8021 titlepos={.585\slidewidth,.6\slideheight},
8022 ifsetup=portrait,
8023 titlepos={.5\slidewidth,.6\slideheight}
8024 }{%
8025 }
8026 \pddefinetemplate[wideslide]{sectionwideslide}{%
8027 titlehook=c,
8028 titlefont=\bfseries\LARGE\centering,
8029 titlepos={.5\slidewidth,.6\slideheight},
8030 titlewidth=.9\slidewidth
8031 }{}
8032 \def\pd@pazik@lbg{%
8033 \psset{fillstyle=solid,fillcolor=pdcolor2}%
8034 \rput{-10}(.35\slidewidth,.6\slideheight){\pscharpath{\pd@pazik@i}}%
8035 \rput{15}(.4\slidewidth,.3\slideheight){\pscharpath{\pd@pazik@ii}}%
8036 \rput{-20}(.8\slidewidth,.2\slideheight){\pscharpath{\pd@pazik@iii}}%
8037 \rput{30}(.7\slidewidth,.7\slideheight){\pscharpath{\pd@pazik@iv}}%
8038 }
8039 \def\pd@pazik@pbg{%
8040 \psset{fillstyle=solid,fillcolor=pdcolor2}%
8041 \rput{-10}(.23\slidewidth,.78\slideheight){\pscharpath{\pd@pazik@i}}%
8042 \rput{15}(.35\slidewidth,.4\slideheight){\pscharpath{\pd@pazik@ii}}%
8043 \rput{-20}(.8\slidewidth,.3\slideheight){\pscharpath{\pd@pazik@iii}}%
8044 \rput{30}(.7\slidewidth,.7\slideheight){\pscharpath{\pd@pazik@iv}}%
8045 }
8046 \setkeys[pd]{section}{sectemp=sectionslide,widesectemp=sectionwideslide}
8047 \def\labelitemi{\footnotesize\ding{110}}
8048 \def\labelitemii{\small\ding{117}}
8049 \def\labelitemiii{\tiny\ding{110}}
8050 \def\labelitemiv{\tiny\ding{117}}
8051 \pdsetup{
8052 list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}
8053 }
8054 \def\rmdefault{cmss}
8055 %</pdpazik>
8056 %
8057 %<*pdstyletest>
8058 %%
8059 %% For testing, enter your style below.
8060 %% Switch on only one paper/orient option at a time.
8061 \documentclass[
8062 style=your style,
8063 paper=screen,
8064 %% paper=a4paper,
8065 %% paper=letterpaper,
8066 orient=landscape,
8067 %% orient=portrait,
8068 size=11pt,
8069 %% hlsections,
8070 clock
8071 ]{powerdot}
8072
8073 \pdsetup{
8074 lf=left footer,
8075 cf=center footer,
8076 rf=right footer,
8077 randomdots,dprop={dotstyle=ocircle}
8078 }
8079
8080 %% For testing text height.
8081 \makeatletter
8082 \def\textheightrule{%
8083 \raisebox\baselineskip{\rule{1cm}\pd@@textheight}%
8084 }
8085 \makeatother
8086
8087 \title{This is a test file to test new styles with --
8088 this title is very long on purpose.\thanks{Adjust textheight
8089 to position this footnote.}}
8090 \author{Hendri Adriaens \and Christopher Ellison}
8091 \date{August 16, 2005}
8092
8093 \begin{document}
8094
8095 \maketitle
8096
8097 \begin{slide}{Test normal slide}
8098 Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus
8099 elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur
8100 dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer
8101 id, vulputate a, magna. Donec vehicula augue eu neque. Pellentesque
8102 habitant morbi tristique senectus et netus et malesuada fames ac
8103 turpis egestas. Mauris ut leo. Cras viverra metus rhoncus sem.
8104
8105 Notice the color of the equation number!
8106 \begin{equation}
8107 (a+b)^n=\sum_{k=0}^n{n\choose k}a^{n-k}b^k
8108 \end{equation}
8109 \end{slide}
8110
8111 \begin{slide}{Test itemize}
8112 Some text.\pause
8113 \begin{itemize}
8114 \item level 1\pause
8115 \begin{itemize}
8116 \item level 2\pause
8117 \begin{itemize}
8118 \item level 3\pause
8119 \begin{itemize}
8120 \item level 4
8121 \end{itemize}
8122 \end{itemize}
8123 \end{itemize}
8124 \end{itemize}
8125 Some text.\footnote{Adjust textheight
8126 to position this footnote.}
8127 \end{slide}
8128
8129 \section{Normal section}
8130
8131 \begin{slide}{Test enumerate and inactive color}
8132 Some text.\pause
8133 \begin{enumerate}[type=1]
8134 \item level 1\pause
8135 \begin{enumerate}
8136 \item level 2\pause
8137 \begin{enumerate}
8138 \item level 3\pause
8139 \begin{enumerate}
8140 \item level 4
8141 \end{enumerate}
8142 \end{enumerate}
8143 \end{enumerate}
8144 \end{enumerate}
8145 Some text.
8146 \end{slide}
8147
8148 \begin{slide}{The rule has height \texttt{textheight}}
8149 \textheightrule
8150 \end{slide}
8151
8152 \section[template=wideslide]{Wide slide section}
8153
8154 \begin{wideslide}{Test wideslide}
8155 Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus
8156 elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur
8157 dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer
8158 id, vulputate a, magna. Donec vehicula augue eu neque. Pellentesque
8159 habitant morbi tristique senectus et netus et malesuada fames ac
8160 turpis egestas. Mauris ut leo. Cras viverra metus rhoncus
8161 sem.\footnote{Adjust textheight to position this footnote.}
8162
8163 Notice the color of the equation number!
8164 \begin{equation}
8165 (a+b)^n=\sum_{k=0}^n{n\choose k}a^{n-k}b^k
8166 \end{equation}
8167 \end{wideslide}
8168
8169 \begin{wideslide}{The rule has height \texttt{textheight}}
8170 \textheightrule
8171 \end{wideslide}
8172
8173 \end{document}
8174 %</pdstyletest>
8175 %
8176 %<*pdstyleexample>
8177 \documentclass[paper=letterpaper,style=\style]{powerdot}
8178 \title{Example of the \style\ style}
8179 \author{Hendri Adriaens \and Christopher Ellison}
8180 \pddefinetemplate[slide]{slide}{tocpos}{}
8181 \pdsetup{lf=left footer,rf=right footer}
8182 \begin{document}
8183 \maketitle
8184 \begin{slide}{Example slide}
8185 Here is the binomium formula.
8186 \begin{equation}\label{binomium}
8187 (a+b)^n=\sum_{k=0}^n{n\choose k}a^{n-k}b^k
8188 \end{equation}
8189 We will prove formula (\ref{binomium}) on the blackboard.\\
8190 \begin{itemize}
8191 \item Here
8192 \begin{itemize}
8193 \item is
8194 \begin{itemize}
8195 \item a
8196 \begin{itemize}
8197 \item list
8198 \end{itemize}
8199 \item with
8200 \end{itemize}
8201 \item seven
8202 \end{itemize}
8203 \item items.
8204 \end{itemize}
8205 \end{slide}
8206 \end{document}
8207 %</pdstyleexample>
8208 %
8209 %<*pdexample1>
8210 \documentclass{powerdot}
8211
8212 \title{powerdot example 1}
8213 \author{Hendri Adriaens \and Christopher Ellison}
8214
8215 \begin{document}
8216
8217 \maketitle
8218
8219 \begin{slide}{Slide 1}
8220 \begin{itemize}
8221 \item This is the first slide\pause
8222 \item There is nothing special about it.
8223 \end{itemize}
8224 \end{slide}
8225
8226 \section{First section}
8227
8228 \begin{slide}{Slide 2}
8229 \begin{itemize}
8230 \item<1-> Here
8231 \begin{itemize}
8232 \item<2-> we
8233 \begin{itemize}
8234 \item<3-> demonstrate
8235 \begin{itemize}
8236 \item<4-> the itemize environment
8237 \end{itemize}
8238 \end{itemize}
8239 \end{itemize}
8240 \end{itemize}
8241 \end{slide}
8242
8243 \begin{slide}{Slide 3}
8244 \begin{enumerate}[type=1]
8245 \item<1> Here
8246 \begin{enumerate}
8247 \item<2> we
8248 \begin{enumerate}
8249 \item<3> demonstrate
8250 \begin{enumerate}
8251 \item<4> the enumerate environment
8252 \end{enumerate}
8253 \end{enumerate}
8254 \end{enumerate}
8255 \end{enumerate}
8256 \end{slide}
8257
8258 \end{document}
8259 %</pdexample1>
8260 %
8261 %<*pdexample2>
8262 \documentclass[
8263 size=12pt,
8264 style=ikeda,
8265 paper=screen,
8266 %% Try me!
8267 %% orient=portrait,
8268 %% mode=handout,
8269 %% display=slidesnotes,
8270 pauseslide,
8271 nohandoutpagebreaks,
8272 fleqn
8273 ]{powerdot}
8274
8275 \title{powerdot example 2}
8276 \author{Hendri Adriaens\and Christopher Ellison}
8277
8278 \pdsetup{
8279 lf=Example 2,
8280 rf=for powerdot,
8281 trans=Wipe,
8282 theslide=slide~\arabic{slide},
8283 list={itemsep=6pt}
8284 }
8285
8286 \begin{document}
8287
8288 \maketitle
8289
8290 \begin{slide}{Slide 1}
8291 \begin{itemize}
8292 \item This is a bigger example\pause
8293 \item demonstrating more of the possibilities of powerdot.
8294 \end{itemize}
8295 \end{slide}
8296
8297 \section{This section has a slide}
8298
8299 \begin{slide}{Slide 2}
8300 Here is the binomium formula.\pause
8301 \begin{equation}\label{binomium}
8302 (a+b)^n=\sum_{k=0}^n{n\choose k}a^{n-k}b^k
8303 \end{equation}\pause
8304 We will prove formula (\ref{binomium}) on the blackboard.\\
8305 Click the title of this slide to switch to the black slide.
8306 \end{slide}
8307
8308 \begin{note}{Note to slide 2}
8309 Here we could type the proof that
8310 we want to copy to the blackboard.
8311 \end{note}
8312
8313 \begin{slide}{Slide 3}
8314 \begin{itemize}[type=1]
8315 \item This happens\dots\pause
8316 \item when you change\dots\pause
8317 \item the type of itemize.
8318 \end{itemize}
8319 \end{slide}
8320
8321 \section[template=wideslide,tocsection=hidden]{A hidden wide section}
8322
8323 \begin{slide}{Slide 4}
8324 \begin{itemize}
8325 \item We only treat this material\dots\pause
8326 \begin{itemize}
8327 \item if we have some time left.\pause
8328 \item But don't hesitate\dots\pause
8329 \end{itemize}
8330 \item to read it yourself.
8331 \end{itemize}
8332 \end{slide}
8333
8334 \begin{wideslide}{Slide 5}
8335 This wide slide can contain more material
8336 as it is wider and does not have a table
8337 of contents.
8338 \end{wideslide}
8339
8340 \end{document}
8341 %</pdexample2>
8342 %
8343 %<*pdexample3>
8344 \documentclass[style=klope,clock,hlsections]{powerdot}
8345
8346 \usepackage{amsmath}
8347 \usepackage{pst-node}
8348 \usepackage{listings}
8349
8350 \lstnewenvironment{example}[1][]{%
8351 \lstset{basicstyle=\footnotesize\ttfamily,columns=flexible,%
8352 frame=single,backgroundcolor=\color{yellow!20},%
8353 xleftmargin=\fboxsep,xrightmargin=\fboxsep,gobble=1%
8354 }\lstset{#1}}{}
8355 \lstnewenvironment{examplesmall}[1][]{%
8356 \lstset{basicstyle=\tiny\ttfamily,columns=flexible,%
8357 frame=single,backgroundcolor=\color{yellow!20},%
8358 xleftmargin=\fboxsep,xrightmargin=\fboxsep,gobble=2%
8359 }\lstset{#1}}{}
8360
8361 \title{powerdot example 3 --- verbatim and random dots}
8362 \author{Hendri Adriaens\and Christopher Ellison}
8363
8364 \pdsetup{
8365 lf=Example 3,
8366 rf=for powerdot,
8367 palette=Spring,
8368 randomdots,
8369 dprop={dotstyle=ocircle,linewidth=.25pt},
8370 dmindots=5,dmaxdots=5,
8371 dminsize=600pt,dmaxsize=700pt,
8372 dbright=50,
8373 logohook=c,
8374 logopos={.505\slidewidth,.08\slideheight},
8375 logocmd={\includegraphics[scale=.05]{powerdot-default.ps}}
8376 }
8377
8378 \begin{document}
8379
8380 \maketitle
8381
8382 \begin{slide}{Overview}
8383 \begin{enumerate}[type=1]
8384 \item This file demonstrates \pause
8385 \begin{itemize}
8386 \item some uses of \texttt{verbatim} \pause
8387 \end{itemize}
8388 \item and \pause
8389 \begin{itemize}
8390 \item some uses of randomdots
8391 \end{itemize}
8392 \end{enumerate}
8393 \end{slide}
8394
8395 \section{section}
8396
8397 \begin{slide}[palette=PastelFlower,method=direct,
8398 dprop={dotstyle=*},
8399 dminsize=5pt,dmaxsize=10pt,
8400 dmindots=5,dmaxdots=10]{Name that quote}
8401 G\"odel, Escher, Bach: an Eternal Golden Braid \pause
8402
8403 \verb|G\"odel, Escher, Bach: an Eternal Golden Braid| \pause
8404
8405 \begin{quote}
8406 The two of you may find it amusing to listen
8407 to such totally meaningless cacophony, but I assure you it is not at
8408 all pleasant for a sensitive composer to be subjected to such
8409 excruciating, empty dissonances and meaningless rhythms. Achilles,
8410 I thought you had a good feeling for music. Could it be that your
8411 previous pieces had merit merely by coincidence?
8412 \end{quote}
8413 \end{slide}
8414
8415 \begin{slide}[palette=BlueWater,
8416 dprop={dotstyle=osquare,linewidth=.2pt},
8417 dminsize=4pt,dmaxsize=10pt,
8418 dmindots=5,dmaxdots=10]{Itemize}
8419 \begin{itemize}
8420 \item<1> here
8421 \item<2> we
8422 \item<3> go
8423 \end{itemize}
8424 \end{slide}
8425
8426 \begin{slide}[toc=What day is it?,bm=What day is it?,method=direct,
8427 dprop={dotstyle=*},dminsize=4pt,dmaxsize=20pt,
8428 dmindots=30,dmaxdots=30]{What day is it?\hfill A test}
8429 \begin{example}
8430 <?php
8431 if ($day == "monday")
8432 {
8433 $callInSick = true;
8434 }
8435 else
8436 {
8437 $callInSick = false;
8438 }
8439 ?>
8440 \end{example}
8441 \end{slide}
8442
8443 \section[slide=false]{The \texttt{direct} and \texttt{file} methods}
8444
8445 \begin{slide}[method=direct,randomdots=false]{Quadratic}
8446 With \verb|method=direct|, there are no overlays.\pause
8447
8448 But you can still use display verbatim text.
8449
8450 \[
8451 x \pause = \pause \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \pause
8452 \]
8453
8454 Attempting \pause a \pause pause\ldots\pause
8455
8456 \verb|Plot[3x,{x,0,10}]|
8457 \end{slide}
8458
8459 \begin{slide}[method=file,randomdots=false]{Quadratic}
8460 With \verb|method=file|, \pause you can display verbatim text and have overlays.\pause
8461
8462 \[
8463 x \pause = \pause \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \pause
8464 \]
8465
8466 Attempting \pause a \pause pause\ldots\pause
8467
8468 \verb|Plot[3x,{x,0,10}]|
8469 \end{slide}
8470
8471 \section[slide=false]{Nodes}
8472
8473 \begin{slide}[method=file,randomdots=false]{Taylor}
8474 \begin{lstlisting}[escapechar=|,mathescape]
8475 e^x |\pause| = 1 + |\pause|x + |\pause|x^2/2! + |\color{red}{\ldots}| |\pause|
8476 e^x |\pause| = 1 + |\pause|x + |\pause|$\rnode{A}{\frac{x^2}{2!}}$ + |\color{red}{\ldots}|
8477 \end{lstlisting}
8478 \pause\vspace{.1in}
8479 Notice, \rnode{B}{this} fraction is in \verb|mathmode|.
8480 \onslide*{11-}{\ncarc[linecolor=blue,arcangle=-5]{->}{B}{A}}\pause \vspace{.1in}
8481
8482 The above (as its own slide) was coded as follows:
8483 \begin{examplesmall}[escapechar=@]
8484 \begin{slide}[method=file]{Taylor}
8485 \begin{lstlisting}[escapechar=|,mathescape]
8486 e^x |\pause| = 1 + |\pause|x + |\pause|x^2/2! + |\color{red}{\ldots}| |\pause|
8487 e^x |\pause| = 1 + |\pause|x + |\pause|$\rnode{A}{\frac{x^2}{2!}}$ + |\color{red}{\ldots}|
8488 \end{lstlisting}
8489
8490 \pause\vspace{.1in}
8491
8492 Notice, \rnode{B}{this} fraction is in \verb|mathmode|.
8493 \onslide*{11-}{\ncarc[linecolor=blue,arcangle=-5]{->}{B}{A}}\pause \vspace{.1in}
8494 @\char`\\@end{slide}
8495 \end{examplesmall}
8496 \end{slide}
8497
8498 \end{document}
8499 %</pdexample3>
8500 %
8501 %<*preamble>
8502 \usepackage{url}
8503 \usepackage{fourier}
8504 \usepackage{xcolor}
8505 \usepackage{enumitem}
8506 \usepackage{graphicx}
8507 \usepackage{pst-char}
8508 \usepackage{listings}
8509 \usepackage{array}
8510 \usepackage{xkeyval}
8511 \usepackage[section]{placeins}
8512 \addtolength\textheight{2cm}
8513 \addtolength\topmargin{-1cm}
8514 \lstnewenvironment{command}{%
8515 \lstset{columns=flexible,frame=single,backgroundcolor=\color{blue!20},%
8516 xleftmargin=\fboxsep,xrightmargin=\fboxsep,escapeinside=`',gobble=1}}{}
8517 \lstnewenvironment{example}[1][]{%
8518 \lstset{basicstyle=\footnotesize\ttfamily,columns=flexible,frame=single,%
8519 backgroundcolor=\color{yellow!20},xleftmargin=\fboxsep,%
8520 xrightmargin=\fboxsep,gobble=1,%
8521 % language=[LaTeX]TeX,keywordstyle=\color{blue},%
8522 % moretexcs=[1]{color,ProvidesPackage},%
8523 % moretexcs=[2]{onslide,pause,pdsetup,maketitle,tableofcontents},%
8524 % texcsstyle=[2]\color{red}%
8525 }\lstset{#1}}{}
8526 \def\mktitledecor{%
8527 \rput[tl]{90}(-5.5,-26.51){%
8528 \psline[linewidth=1pt](0,1.5)(\paperheight,1.5)%
8529 \rput[lB](.075\paperheight,.5){\pscharpath[linecolor=blue!50,%
8530 fillcolor=yellow!20,fillstyle=solid,linewidth=.5pt]%
8531 {\Huge\bfseries\sffamily powerdot}%
8532 }%
8533 \rput[rB](.925\paperheight,.5){\pscharpath[linecolor=blue!50,%
8534 fillcolor=yellow!20,fillstyle=solid,linewidth=.5pt]%
8535 {\Huge\bfseries Documentation}%
8536 }%
8537 \psline[linewidth=1pt](0,0)(\paperheight,0)%
8538 }%
8539 }
8540 \makeatletter
8541 \def\option#1{%
8542 \XKV@for@n{#1}\pd@tempa{%
8543 \fcolorbox{black}{red!20}{\texttt\pd@tempa}\quad
8544 }%
8545 \vspace*{.2cm}%
8546 }
8547 \def\tableofcontents{\@starttoc{toc}}
8548 \renewenvironment{theglossary}{%
8549 \section*{Version history}%
8550 For more information on bug fixes, typeset the source code
8551 documentation (see section~\ref{sec:source}).\par\medskip
8552 \GlossaryParms \let\item\@idxitem \ignorespaces
8553 }{}%
8554 \def\DescribeMacros{\leavevmode\@bsphack
8555 \begingroup\MakePrivateLetters\Describe@Macros}
8556 \def\Describe@Macros#1{\endgroup\strut
8557 \marginpar{\raggedleft
8558 \def\@tempa{#1}\count@\z@
8559 \XKV@for@o\@tempa\@tempa{%
8560 \ifnum\count@>\z@\\\fi\advance\count@\@ne
8561 \MacroFont\expandafter\string\@tempa
8562 \expandafter\SpecialUsageIndex\expandafter{\@tempa}%
8563 }}%
8564 \@esphack\ignorespaces
8565 }
8566 \def\DescribeOption#1{\leavevmode\@bsphack
8567 \marginpar{\raggedleft\PrintDescribeOption{#1}}%
8568 \SpecialOptionIndex{#1}\@esphack\ignorespaces}
8569 \def\PrintDescribeOption#1{\strut\emph{option}\\\MacroFont #1\ }
8570 \def\SpecialOptionIndex#1{\@bsphack
8571 \index{#1\actualchar{\protect\ttfamily#1}
8572 (option)\encapchar usage}\@esphack}
8573 \def\DescribeOptions#1{\leavevmode\@bsphack
8574 \marginpar{\raggedleft\strut\emph{options}%
8575 \@for\@tempa:=#1\do{%
8576 \\\strut\MacroFont\@tempa\SpecialOptionIndex\@tempa
8577 }}\@esphack\ignorespaces}
8578 \def\SpecialEnvIndex#1{\@bsphack
8579 \index{#1\actualchar{\protect\ttfamily#1}
8580 (environment)\encapchar usage}\@esphack}
8581 \def\changes@#1#2#3{%
8582 \protected@edef\@tempa{%
8583 \noexpand\glossary{\textbf{#1}\hfill\emph{(#2)}%
8584 \levelchar
8585 \ifx\saved@macroname\@empty
8586 \space\actualchar\generalname
8587 \else
8588 \expandafter\@gobble\saved@macroname
8589 \actualchar\string\verb\quotechar*%
8590 \verbatimchar\saved@macroname\verbatimchar
8591 \fi
8592 :\levelchar #3}%
8593 }%
8594 \@tempa\endgroup\@esphack
8595 }
8596 \makeatother
8597 \def\PrintChangesX{%
8598 \begingroup
8599 \let\efill\relax
8600 \PrintChanges
8601 \endgroup
8602 }
8603 \def\PrintIndexX{%
8604 \begingroup
8605 \setcounter{IndexColumns}{2}
8606 \setlength{\columnsep}{18pt}%
8607 \setlength{\columnseprule}{.4pt}%
8608 \PrintIndex
8609 \endgroup
8610 }
8611 \def\larg#1{{\ttfamily\char`\<}\meta{#1}{\ttfamily\char`\>}}
8612 \def\LyX{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
8613 \def\LyXarrow{\leavevmode\,$\triangleright$\,\allowbreak}
8614 \let\pf\textsf
8615 \def\equals{=}
8616 \setcounter{tocdepth}{2}
8617 \newcolumntype{d}{c|l}
8618 \newcolumntype{e}{c|c|c|c}
8619 \newcolumntype{f}{l|p{8cm}}
8620 \RecordChanges
8621 \CodelineIndex
8622 \newcounter{FAQ}
8623 \def\question{%
8624 \stepcounter{FAQ}%
8625 \parskip4pt plus 2pt minus 1pt
8626 \itemsep4pt plus 2pt minus 1pt
8627 \parsep4pt plus 2pt minus 1pt
8628 \item[\textbf{Q\arabic{FAQ}}]%
8629 }
8630 \def\answer{%
8631 \parskip0pt
8632 \itemsep0pt
8633 \parsep0pt
8634 \item[\textbf{A\arabic{FAQ}}]%
8635 }
8636 \def\styleexample#1{%
8637 \IfFileExists{powerdot-styleexample-#1.001}{%
8638 \IfFileExists{powerdot-styleexample-#1.002}{%
8639 \hspace*{\stretch{1}}%
8640 \fbox{\includegraphics[scale=.16,angle=-90,clip]%
8641 {powerdot-styleexample-#1.001}}%
8642 \hspace*{\stretch{2}}%
8643 \fbox{\includegraphics[scale=.16,angle=-90,clip]%
8644 {powerdot-styleexample-#1.002}}%
8645 \hspace*{\stretch{1}}\par
8646 }{\textbf{No example files found for style \pf{#1}.}}%
8647 }{\textbf{No example files found for style \pf{#1}.}}%
8648 }
8649 %</preamble>
8650 %
8651 %<*bib>
8652 @book{companion,
8653 author = {Frank Mittelbach and Michel Goossens},
8654 title = {The {\LaTeX} Companion},
8655 edition = 2,
8656 note = {With Johannes Braams, David Carlisle, and Chris Rowley},
8657 series = {Tools and Techniques for Computer Typesetting},
8658 publisher = {Addison-Wesley},
8659 address = {Boston, Massachusetts},
8660 year = 2004,
8661 pagenums = {1120},
8662 bibliography = {yes},
8663 index = {yes},
8664 isbn = {0-201-36299-6}
8665 }
8666
8667 @MISC{PSTricks,
8668 author = {{Timothy Van} {Zandt et al.}},
8669 title = {\pf{PSTricks} package, v1.07, 2005/05/06},
8670 howpublished = {\url{CTAN:/graphics/pstricks}}
8671 }
8672
8673 @MISC{PSTricksWeb,
8674 author = {Herbert Vo\ss},
8675 title = {\pf{PSTricks} website},
8676 howpublished = {\url{http://pstricks.tug.org}}
8677 }
8678
8679 @MISC{xkeyval,
8680 author = {Hendri Adriaens},
8681 title = {\pf{xkeyval} package},
8682 howpublished = {\url{CTAN:/macros/latex/contrib/xkeyval}}
8683 }
8684
8685 @MISC{extsizes,
8686 author = {James Kilfiger and Wolfgang May},
8687 title = {\pf{extsizes} bundle},
8688 howpublished = {\url{CTAN:/macros/latex/contrib/extsizes}}
8689 }
8690
8691 @MISC{prosper,
8692 author = {Fr\'ed\'eric Goualard and Peter M\o ller Neergaard},
8693 title = {\pf{prosper} class},
8694 howpublished = {\url{CTAN:/macros/latex/contrib/prosper}}
8695 }
8696
8697 @MISC{HA-prosper,
8698 author = {Hendri Adriaens},
8699 title = {\pf{HA-prosper} package},
8700 howpublished = {\url{CTAN:/macros/latex/contrib/HA-prosper}}
8701 }
8702
8703 @MISC{enumitem,
8704 author = {Javier Bezos},
8705 title = {\pf{enumitem} package},
8706 howpublished = {\url{CTAN:/macros/latex/contrib/enumitem}}
8707 }
8708
8709 @MISC{hyperref,
8710 author = {Sebastian Rahtz and Heiko Overdiek},
8711 title = {\pf{hyperref} package},
8712 howpublished = {\url{CTAN:/macros/latex/contrib/hyperref}}
8713 }
8714
8715 @MISC{natbib,
8716 author = {Patrick W. Daly},
8717 title = {\pf{natbib} package},
8718 howpublished = {\url{CTAN:/macros/latex/contrib/natbib}}
8719 }
8720
8721 @MISC{geometry,
8722 author = {Hideo Umeki},
8723 title = {\pf{geometry} package},
8724 howpublished = {\url{CTAN:/macros/latex/contrib/geometry}}
8725 }
8726
8727 @MISC{xcolor,
8728 author = {Uwe Kern},
8729 title = {\pf{xcolor} package},
8730 howpublished = {\url{CTAN:/macros/latex/contrib/xcolor}}
8731 }
8732
8733 @MISC{graphics,
8734 author = {David Carlisle},
8735 title = {\pf{graphics} bundle},
8736 howpublished = {\url{CTAN:/macros/latex/required/graphics}}
8737 }
8738
8739 @MISC{random,
8740 author = {Donald Arseneau},
8741 title = {\texttt{random.tex}},
8742 howpublished = {\url{CTAN:/macros/generic/misc}}
8743 }
8744
8745 @MISC{CTAN,
8746 author = {CTAN crew},
8747 title = {{The Comprehensive TeX Archive Network}},
8748 howpublished = {\url{http://www.ctan.org}}
8749 }
8750
8751 @MISC{LyXWeb,
8752 author = {{\LyX\ crew}},
8753 title = {{\LyX\ website}},
8754 howpublished = {\url{http://www.lyx.org}}
8755 }
8756
8757 @MISC{javascript,
8758 author = {Adobe Solutions Network},
8759 title = {{Acrobat JavaScript Scripting Reference}},
8760 howpublished = {\url{http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/javascript/AcroJS.pdf}}
8761 }
8762 %</bib>