| 1 |
%% |
| 2 |
%% This is file `powerdot-example3.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% powerdot.dtx (with options: `pdexample3') |
| 8 |
%% |
| 9 |
%% --------------------------------------------------------------------------------- |
| 10 |
%% Copyright (C) 2005-2008 Hendri Adriaens, Chris Ellison; 2009-2021 Hendri Adriaens |
| 11 |
%% --------------------------------------------------------------------------------- |
| 12 |
%% |
| 13 |
%% This work may be distributed and/or modified under the |
| 14 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 15 |
%% of this license or (at your option) any later version. |
| 16 |
%% The latest version of this license is in |
| 17 |
%% http://www.latex-project.org/lppl.txt |
| 18 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 19 |
%% version 2003/12/01 or later. |
| 20 |
%% |
| 21 |
%% This work has the LPPL maintenance status "maintained". |
| 22 |
%% |
| 23 |
%% This Current Maintainer of this work is Hendri Adriaens. |
| 24 |
%% |
| 25 |
%% This work consists of all files listed in manifest.txt. |
| 26 |
%% |
| 27 |
\documentclass[style=klope,clock,hlsections]{powerdot} |
| 28 |
|
| 29 |
\usepackage{amsmath} |
| 30 |
\usepackage{pst-node} |
| 31 |
\usepackage{listings} |
| 32 |
|
| 33 |
\lstnewenvironment{example}[1][]{% |
| 34 |
\lstset{basicstyle=\footnotesize\ttfamily,columns=flexible,% |
| 35 |
frame=single,backgroundcolor=\color{yellow!20},% |
| 36 |
xleftmargin=\fboxsep,xrightmargin=\fboxsep,gobble=1% |
| 37 |
}\lstset{#1}}{} |
| 38 |
\lstnewenvironment{examplesmall}[1][]{% |
| 39 |
\lstset{basicstyle=\tiny\ttfamily,columns=flexible,% |
| 40 |
frame=single,backgroundcolor=\color{yellow!20},% |
| 41 |
xleftmargin=\fboxsep,xrightmargin=\fboxsep,gobble=2% |
| 42 |
}\lstset{#1}}{} |
| 43 |
|
| 44 |
\title{powerdot example 3 --- verbatim and random dots} |
| 45 |
\author{Hendri Adriaens\and Christopher Ellison} |
| 46 |
|
| 47 |
\pdsetup{ |
| 48 |
lf=Example 3, |
| 49 |
rf=for powerdot, |
| 50 |
palette=Spring, |
| 51 |
randomdots, |
| 52 |
dprop={dotstyle=ocircle,linewidth=.25pt}, |
| 53 |
dmindots=5,dmaxdots=5, |
| 54 |
dminsize=600pt,dmaxsize=700pt, |
| 55 |
dbright=50, |
| 56 |
logohook=c, |
| 57 |
logopos={.505\slidewidth,.08\slideheight}, |
| 58 |
logocmd={\includegraphics[scale=.05]{powerdot-default.ps}} |
| 59 |
} |
| 60 |
|
| 61 |
\begin{document} |
| 62 |
|
| 63 |
\maketitle |
| 64 |
|
| 65 |
\begin{slide}{Overview} |
| 66 |
\begin{enumerate}[type=1] |
| 67 |
\item This file demonstrates \pause |
| 68 |
\begin{itemize} |
| 69 |
\item some uses of \texttt{verbatim} \pause |
| 70 |
\end{itemize} |
| 71 |
\item and \pause |
| 72 |
\begin{itemize} |
| 73 |
\item some uses of randomdots |
| 74 |
\end{itemize} |
| 75 |
\end{enumerate} |
| 76 |
\end{slide} |
| 77 |
|
| 78 |
\section{section} |
| 79 |
|
| 80 |
\begin{slide}[palette=PastelFlower,method=direct, |
| 81 |
dprop={dotstyle=*}, |
| 82 |
dminsize=5pt,dmaxsize=10pt, |
| 83 |
dmindots=5,dmaxdots=10]{Name that quote} |
| 84 |
G\"odel, Escher, Bach: an Eternal Golden Braid \pause |
| 85 |
|
| 86 |
\verb|G\"odel, Escher, Bach: an Eternal Golden Braid| \pause |
| 87 |
|
| 88 |
\begin{quote} |
| 89 |
The two of you may find it amusing to listen |
| 90 |
to such totally meaningless cacophony, but I assure you it is not at |
| 91 |
all pleasant for a sensitive composer to be subjected to such |
| 92 |
excruciating, empty dissonances and meaningless rhythms. Achilles, |
| 93 |
I thought you had a good feeling for music. Could it be that your |
| 94 |
previous pieces had merit merely by coincidence? |
| 95 |
\end{quote} |
| 96 |
\end{slide} |
| 97 |
|
| 98 |
\begin{slide}[palette=BlueWater, |
| 99 |
dprop={dotstyle=osquare,linewidth=.2pt}, |
| 100 |
dminsize=4pt,dmaxsize=10pt, |
| 101 |
dmindots=5,dmaxdots=10]{Itemize} |
| 102 |
\begin{itemize} |
| 103 |
\item<1> here |
| 104 |
\item<2> we |
| 105 |
\item<3> go |
| 106 |
\end{itemize} |
| 107 |
\end{slide} |
| 108 |
|
| 109 |
\begin{slide}[toc=What day is it?,bm=What day is it?,method=direct, |
| 110 |
dprop={dotstyle=*},dminsize=4pt,dmaxsize=20pt, |
| 111 |
dmindots=30,dmaxdots=30]{What day is it?\hfill A test} |
| 112 |
\begin{example} |
| 113 |
<?php |
| 114 |
if ($day == "monday") |
| 115 |
{ |
| 116 |
$callInSick = true; |
| 117 |
} |
| 118 |
else |
| 119 |
{ |
| 120 |
$callInSick = false; |
| 121 |
} |
| 122 |
?> |
| 123 |
\end{example} |
| 124 |
\end{slide} |
| 125 |
|
| 126 |
\section[slide=false]{The \texttt{direct} and \texttt{file} methods} |
| 127 |
|
| 128 |
\begin{slide}[method=direct,randomdots=false]{Quadratic} |
| 129 |
With \verb|method=direct|, there are no overlays.\pause |
| 130 |
|
| 131 |
But you can still use display verbatim text. |
| 132 |
|
| 133 |
\[ |
| 134 |
x \pause = \pause \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \pause |
| 135 |
\] |
| 136 |
|
| 137 |
Attempting \pause a \pause pause\ldots\pause |
| 138 |
|
| 139 |
\verb|Plot[3x,{x,0,10}]| |
| 140 |
\end{slide} |
| 141 |
|
| 142 |
\begin{slide}[method=file,randomdots=false]{Quadratic} |
| 143 |
With \verb|method=file|, \pause you can display verbatim text and have overlays.\pause |
| 144 |
|
| 145 |
\[ |
| 146 |
x \pause = \pause \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \pause |
| 147 |
\] |
| 148 |
|
| 149 |
Attempting \pause a \pause pause\ldots\pause |
| 150 |
|
| 151 |
\verb|Plot[3x,{x,0,10}]| |
| 152 |
\end{slide} |
| 153 |
|
| 154 |
\section[slide=false]{Nodes} |
| 155 |
|
| 156 |
\begin{slide}[method=file,randomdots=false]{Taylor} |
| 157 |
\begin{lstlisting}[escapechar=|,mathescape] |
| 158 |
e^x |\pause| = 1 + |\pause|x + |\pause|x^2/2! + |\color{red}{\ldots}| |\pause| |
| 159 |
e^x |\pause| = 1 + |\pause|x + |\pause|$\rnode{A}{\frac{x^2}{2!}}$ + |\color{red}{\ldots}| |
| 160 |
\end{lstlisting} |
| 161 |
\pause\vspace{.1in} |
| 162 |
Notice, \rnode{B}{this} fraction is in \verb|mathmode|. |
| 163 |
\onslide*{11-}{\ncarc[linecolor=blue,arcangle=-5]{->}{B}{A}}\pause \vspace{.1in} |
| 164 |
|
| 165 |
The above (as its own slide) was coded as follows: |
| 166 |
\begin{examplesmall}[escapechar=@] |
| 167 |
\begin{slide}[method=file]{Taylor} |
| 168 |
\begin{lstlisting}[escapechar=|,mathescape] |
| 169 |
e^x |\pause| = 1 + |\pause|x + |\pause|x^2/2! + |\color{red}{\ldots}| |\pause| |
| 170 |
e^x |\pause| = 1 + |\pause|x + |\pause|$\rnode{A}{\frac{x^2}{2!}}$ + |\color{red}{\ldots}| |
| 171 |
\end{lstlisting} |
| 172 |
|
| 173 |
\pause\vspace{.1in} |
| 174 |
|
| 175 |
Notice, \rnode{B}{this} fraction is in \verb|mathmode|. |
| 176 |
\onslide*{11-}{\ncarc[linecolor=blue,arcangle=-5]{->}{B}{A}}\pause \vspace{.1in} |
| 177 |
@\char`\\@end{slide} |
| 178 |
\end{examplesmall} |
| 179 |
\end{slide} |
| 180 |
|
| 181 |
\end{document} |
| 182 |
\endinput |
| 183 |
%% |
| 184 |
%% End of file `powerdot-example3.tex'. |