summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/powerdot/powerdot-example3.tex
blob: 286a1fb7ce47c41b4ca0a19fbe30fd014417f43a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
%%
%% This is file `powerdot-example3.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% powerdot.dtx  (with options: `pdexample3')
%% 
%% ---------------------------------------------------------------
%% Copyright (C) 2005-2006 Hendri Adriaens and Christopher Ellison
%% ---------------------------------------------------------------
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%   http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2003/12/01 or later.
%%
%% This work has the LPPL maintenance status "maintained".
%%
%% This Current Maintainer of this work is Hendri Adriaens.
%%
%% This work consists of all files listed in manifest.txt.
%%
\documentclass[style=klope,clock,hlsections]{powerdot}

\usepackage{amsmath}
\usepackage{pst-node}
\usepackage{listings}

\lstnewenvironment{example}[1][]{%
  \lstset{basicstyle=\footnotesize\ttfamily,columns=flexible,%
    frame=single,backgroundcolor=\color{yellow!20},%
    xleftmargin=\fboxsep,xrightmargin=\fboxsep,gobble=1%
    }\lstset{#1}}{}
\lstnewenvironment{examplesmall}[1][]{%
  \lstset{basicstyle=\tiny\ttfamily,columns=flexible,%
    frame=single,backgroundcolor=\color{yellow!20},%
    xleftmargin=\fboxsep,xrightmargin=\fboxsep,gobble=2%
    }\lstset{#1}}{}

\title{powerdot example 3 --- verbatim and random dots}
\author{Hendri Adriaens\and Christopher Ellison}

\pdsetup{
  lf=Example 3,
  rf=for powerdot,
  palette=Spring,
  randomdots,
  dprop={dotstyle=ocircle,linewidth=.25pt},
  dmindots=5,dmaxdots=5,
  dminsize=600pt,dmaxsize=700pt,
  dbright=50,
  logohook=c,
  logopos={.505\slidewidth,.08\slideheight},
  logocmd={\includegraphics[scale=.05]{powerdot-default.ps}}
}

\begin{document}

\maketitle

\begin{slide}{Overview}
  \begin{enumerate}[type=1]
    \item This file demonstrates \pause
    \begin{itemize}
      \item some uses of \texttt{verbatim} \pause
    \end{itemize}
    \item and \pause
    \begin{itemize}
      \item some uses of randomdots
    \end{itemize}
  \end{enumerate}
\end{slide}

\section{section}

\begin{slide}[palette=PastelFlower,method=direct,
              dprop={dotstyle=*},
              dminsize=5pt,dmaxsize=10pt,
              dmindots=5,dmaxdots=10]{Name that quote}
  G\"odel, Escher, Bach: an Eternal Golden Braid \pause

  \verb|G\"odel, Escher, Bach: an Eternal Golden Braid| \pause

  \begin{quote}
    The two of you may find it amusing to listen
    to such totally meaningless cacophony, but I assure you it is not at
    all pleasant for a sensitive composer to be subjected to such
    excruciating, empty dissonances and meaningless rhythms.  Achilles,
    I thought you had a good feeling for music. Could it be that your
    previous pieces had merit merely by coincidence?
  \end{quote}
\end{slide}

\begin{slide}[palette=BlueWater,
              dprop={dotstyle=osquare,linewidth=.2pt},
              dminsize=4pt,dmaxsize=10pt,
              dmindots=5,dmaxdots=10]{Itemize}
  \begin{itemize}
    \item<1> here
    \item<2> we
    \item<3> go
  \end{itemize}
\end{slide}

\begin{slide}[toc=What day is it?,bm=What day is it?,method=direct,
              dprop={dotstyle=*},dminsize=4pt,dmaxsize=20pt,
              dmindots=30,dmaxdots=30]{What day is it?\hfill A test}
\begin{example}
  <?php
  if ($day == "monday")
  {
    $callInSick = true;
  }
  else
  {
    $callInSick = false;
  }
  ?>
\end{example}
\end{slide}

\section[slide=false]{The \texttt{direct} and \texttt{file} methods}

\begin{slide}[method=direct,randomdots=false]{Quadratic}
  With \verb|method=direct|, there are no overlays.\pause

  But you can still use display verbatim text.

  \[
    x \pause = \pause \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \pause
  \]

  Attempting \pause a \pause pause\ldots\pause

  \verb|Plot[3x,{x,0,10}]|
\end{slide}

\begin{slide}[method=file,randomdots=false]{Quadratic}
  With \verb|method=file|, \pause you can display verbatim text and have overlays.\pause

  \[
    x \pause = \pause \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \pause
  \]

  Attempting \pause a \pause pause\ldots\pause

  \verb|Plot[3x,{x,0,10}]|
\end{slide}

\section[slide=false]{Nodes}

\begin{slide}[method=file,randomdots=false]{Taylor}
\begin{lstlisting}[escapechar=|,mathescape]
 e^x |\pause| = 1 + |\pause|x + |\pause|x^2/2! + |\color{red}{\ldots}| |\pause|
 e^x |\pause| = 1 + |\pause|x + |\pause|$\rnode{A}{\frac{x^2}{2!}}$ +  |\color{red}{\ldots}|
\end{lstlisting}
\pause\vspace{.1in}
Notice, \rnode{B}{this} fraction is in \verb|mathmode|.
\onslide*{11-}{\ncarc[linecolor=blue,arcangle=-5]{->}{B}{A}}\pause \vspace{.1in}

The above (as its own slide) was coded as follows:
\begin{examplesmall}[escapechar=@]
  \begin{slide}[method=file]{Taylor}
    \begin{lstlisting}[escapechar=|,mathescape]
      e^x |\pause| = 1 + |\pause|x + |\pause|x^2/2! + |\color{red}{\ldots}| |\pause|
      e^x |\pause| = 1 + |\pause|x + |\pause|$\rnode{A}{\frac{x^2}{2!}}$ + |\color{red}{\ldots}|
    \end{lstlisting}

    \pause\vspace{.1in}

    Notice, \rnode{B}{this} fraction is in \verb|mathmode|.
    \onslide*{11-}{\ncarc[linecolor=blue,arcangle=-5]{->}{B}{A}}\pause \vspace{.1in}
  @\char`\\@end{slide}
\end{examplesmall}
\end{slide}

\end{document}
\endinput
%%
%% End of file `powerdot-example3.tex'.