Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning...
Transcript of Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning...
![Page 1: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/1.jpg)
Beamer and TikZ Workshop
Andrew MertzWilliam Slough
Mathematics and Computer Science DepartmentEastern Illinois University
July 17, 2007
TUG 2007: Practicing TEX
![Page 2: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/2.jpg)
Morning overview: Beamer
I Benefits of using BeamerI Examples
I A tiny exampleI Basic frame ingredients
\begin{frame}, \frametitle, \end{frame}I Static frame contents
I Lists, mathematics, tables, verbatim text, graphicsI Colors and tables via xcolorI Two columns
I Incremental frame contentsI Tables and lists with \pauseI Lists with \onslideI Tic-tac-toe with \onslide and multiple graphics filesI Highlighting items of a list
I Ornaments: fonts and themes
I Producing N-up output with pdfjam and pdfpagesI Pitfalls
I ExercisesTUG 2007: Practicing TEX
![Page 3: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/3.jpg)
Benefits of using Beamer
I LATEX-based, platform-independent
I Extensively documented (224 pages)
I Provides color
I Rich, dynamic effects
I Generates PDF output suitable for both presentation andprinting
I Easy to learn and use
I Flexible
TUG 2007: Practicing TEX
![Page 4: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/4.jpg)
A tiny example
\documentclass{beamer}
\title{A Tiny Example}
\author{Andrew Mertz and William Slough}
\date{July 17, 2007}
\begin{document}
\maketitle
\begin{frame}
\frametitle{First Slide}
Contents of the first slide
\end{frame}
\begin{frame}
\frametitle{Second Slide}
Contents of the second slide
\end{frame}
\end{document}
TUG 2007: Practicing TEX
![Page 5: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/5.jpg)
A Tiny Example
Andrew Mertz and William Slough
July 17, 2007
TUG 2007: Practicing TEX
![Page 6: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/6.jpg)
First slide
Contents of the first slide
TUG 2007: Practicing TEX
![Page 7: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/7.jpg)
Second slide
Contents of the second slide
TUG 2007: Practicing TEX
![Page 8: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/8.jpg)
Processing
mytalk.tex mytalk.pdfpdflatex
TUG 2007: Practicing TEX
![Page 9: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/9.jpg)
\documentclass{beamer}
\title{Desired title of talk}
\author{Your name}
\date{July 17, 2007}
\begin{document}
\maketitle
\begin{frame}
\frametitle{Desired title}
Desired content
\end{frame}
\begin{frame}
\frametitle{Desired title}
Desired content
\end{frame}
\end{document}
Try it out!
TUG 2007: Practicing TEX
![Page 10: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/10.jpg)
Frame ingredients
I Headline and footline
I Left and right sidebar
I Navigation bars
I Logo
I Frame title
I Background
I Content
TUG 2007: Practicing TEX
![Page 11: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/11.jpg)
Frame content
I Lists
I Mathematics
I Tables
I Verbatim text
I Graphics
I Other packages
I . . .
TUG 2007: Practicing TEX
![Page 12: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/12.jpg)
Example: lists
\begin{frame}
\frametitle{Frame content}
\begin{itemize}
\item Lists
\item Mathematics
\item Tables
\item Verbatim text
\item Graphics
\item Other packages
\item $\ldots$
\end{itemize}
\end{frame}
To exert fine-control over spacing, use a command like:
\setlength{\itemsep}{2ex}
within the itemize environment.
TUG 2007: Practicing TEX
![Page 13: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/13.jpg)
L’Hopital’s rule
If
f and g are differentiable,
limx→∞ f (x) =∞, and
limx→∞ g(x) =∞,
then
limx→∞f (x)g(x) = limx→∞
f ′(x)g ′(x) .
TUG 2007: Practicing TEX
![Page 14: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/14.jpg)
Example: mathematics
\begin{frame}
\frametitle{L’H\^{o}pital’s Rule}
If
\begin{itemize}
\item[] $f$ and $g$ are differentiable,
\item[] $\lim_{x \rightarrow \infty}f(x) = \infty$, and
\item[] $\lim_{x \rightarrow \infty}g(x) = \infty$,
\end{itemize}
then
\begin{itemize}
\item[] $\lim_{x \rightarrow \infty}\frac{f(x)}{g(x)} =
\lim_{x \rightarrow \infty}\frac{f’(x)}{g’(x)}$.
\end{itemize}
\end{frame}
TUG 2007: Practicing TEX
![Page 15: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/15.jpg)
Practical TEX 2005 events
8-9 am Registration9 am Karl Berry Opening
9:15 am Nelson Beebe Keynote address10:15 am Break10:30 am Peter Flom A True Beginner Looks at LATEX
11 am Anita Schwartz The Art of LATEX Problem Solving11:45 am Steve Peter Introduction to memoir12:30 pm Lunch
TUG 2007: Practicing TEX
![Page 16: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/16.jpg)
Example: tables
\begin{frame}
\frametitle{Practical \TeX\ 2005 Events}
\begin{center}
\begin{tabular}{|r|l|l|}\hline
8-9 am & Registration & \\
9 am & Karl Berry & Opening \\
9:15 am & Nelson Beebe & Keynote address \\
10:15 am & Break & \\
10:30 am & Peter Flom & A True Beginner Looks at \LaTeX \\
11 am & Anita Schwartz & The Art of \LaTeX\ Problem Solving \\
11:45 am & Steve Peter & Introduction to memoir \\
12:30 pm & Lunch & \\ \hline
\end{tabular}
\end{center}
\end{frame}
TUG 2007: Practicing TEX
![Page 17: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/17.jpg)
Verbatim text
\begin{frame}
\frametitle{Practical \TeX\ 2005 Events}
\begin{center}
\begin{tabular}{|r|l|l|}\hline
8-9 am & Registration & \\
9 am & Karl Berry & Opening \\
9:15 am & Nelson Beebe & Keynote address \\
10:15 am & Break & \\
10:30 am & Peter Flom & A True Beginner Looks at \LaTeX \\
11 am & Anita Schwartz & The art of \LaTeX\ Problem Solving \\
11:45 am & Steve Peter & Introduction to memoir \\
12:30 pm & Lunch & \\ \hline
\end{tabular}
\end{center}
\end{frame}
TUG 2007: Practicing TEX
![Page 18: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/18.jpg)
Example: verbatim
\begin{frame}[fragile]\frametitle{Verbatim Text}
{\scriptsize\begin{verbatim}
\begin{frame}
\frametitle{Practical \TeX\ 2005 events}
\begin{center}
\begin{tabular}{|r|l|l|}\hline
8-9 am & Registration & \\
9 am & Karl Berry & Opening \\
9:15 am & Nelson Beebe & Keynote address \\
10:15 am & Break & \\
10:30 am & Peter Flom & A True Beginner Looks at \LaTeX \\
11 am & Anita Schwartz & The Art of \LaTeX\ Problem Solving \\
11:45 am & Steve Peter & Introduction to memoir \\
12:30 pm & Lunch & \\ \hline
\end{tabular}
\end{center}
\end{frame}
\end{verbatim}}
\end{frame}
TUG 2007: Practicing TEX
![Page 19: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/19.jpg)
Practical TEX 2005 logo
TUG 2007: Practicing TEX
![Page 20: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/20.jpg)
Example: graphics
\begin{frame}
\frametitle{Practical \TeX\ 2005 logo}
\begin{center}
\includegraphics[height=3.25in]{p2005}
\end{center}
\end{frame}
TUG 2007: Practicing TEX
![Page 21: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/21.jpg)
Colors via xcolor
TUG 2007: Practicing TEXTUG 2007: Practicing TEXTUG 2007: Practicing TEXTUG 2007: Practicing TEXTUG 2007: Practicing TEXTUG 2007: Practicing TEXTUG 2007: Practicing TEXTUG 2007: Practicing TEXTUG 2007: Practicing TEXTUG 2007: Practicing TEX
TUG 2007: Practicing TEX
![Page 22: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/22.jpg)
Example: xcolor
\begin{frame}
\frametitle{Colors via {\tt xcolor}}
\begin{center}
{\color{BlueViolet!10} TUG 2007:} {\color{BrickRed!10} Practicing \TeX} \\
{\color{BlueViolet!20} TUG 2007:} {\color{BrickRed!20} Practicing \TeX} \\
{\color{BlueViolet!30} TUG 2007:} {\color{BrickRed!30} Practicing \TeX} \\
{\color{BlueViolet!40} TUG 2007:} {\color{BrickRed!40} Practicing \TeX} \\
{\color{BlueViolet!50} TUG 2007:} {\color{BrickRed!50} Practicing \TeX} \\
{\color{BlueViolet!60} TUG 2007:} {\color{BrickRed!60} Practicing \TeX} \\
{\color{BlueViolet!70} TUG 2007:} {\color{BrickRed!70} Practicing \TeX} \\
{\color{BlueViolet!80} TUG 2007:} {\color{BrickRed!80} Practicing \TeX} \\
{\color{BlueViolet!90} TUG 2007:} {\color{BrickRed!90} Practicing \TeX} \\
{\color{BlueViolet!100} TUG 2007:} {\color{BrickRed!100} Practicing \TeX}
\end{center}
\end{frame}
TUG 2007: Practicing TEX
![Page 23: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/23.jpg)
Colors
GreenYellow Yellow Goldenrod Dandelion Apricot Peach MelonYellowOrange Orange BurntOrange Bittersweet RedOrangeMahogany Maroon BrickRed Red OrangeRed RubineRedWildStrawberry Salmon CarnationPink Magenta VioletRedRhodamine Mulberry RedViolet Fuchsia Lavender Thistle OrchidDarkOrchid Purple Plum Violet RoyalPurple BlueViolet PeriwinkleCadetBlue CornflowerBlue MidnightBlue NavyBlue RoyalBlue BlueCerulean Cyan ProcessBlue SkyBlue Turquoise TealBlueAquamarine BlueGreen Emerald JungleGreen SeaGreen GreenForestGreen PineGreen LimeGreen YellowGreen SpringGreenOliveGreen RawSienna Sepia Brown Tan Gray Black White
TUG 2007: Practicing TEX
![Page 24: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/24.jpg)
Practical TEX 2005 events
8-9 am Registration9 am Karl Berry Opening
9:15 am Nelson Beebe Keynote address10:15 am Break10:30 am Peter Flom A True Beginner Looks at LATEX
11 am Anita Schwartz The Art of LATEX Problem Solving11:45 am Steve Peter Introduction to memoir12:30 pm Lunch
TUG 2007: Practicing TEX
![Page 25: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/25.jpg)
Example: table with color
\begin{frame}
\frametitle{Practical \TeX\ 2005 events}
\begin{center}
\rowcolors{1}{RoyalBlue!20}{RoyalBlue!5}
\begin{tabular}{|r|l|l|}\hline
8-9 am & Registration & \\
9 am & Karl Berry & Opening \\
9:15 am & Nelson Beebe & Keynote address \\
10:15 am & Break & \\
10:30 am & Peter Flom & A True Beginner Looks at \LaTeX \\
11 am & Anita Schwartz & The Art of \LaTeX\ Problem Solving \\
11:45 am & Steve Peter & Introduction to memoir \\
12:30 pm & Lunch & \\ \hline
\end{tabular}
\end{center}
\end{frame}
TUG 2007: Practicing TEX
![Page 26: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/26.jpg)
Revising documentclass for xcolor
\documentclass[xcolor=pdftex,dvipsnames,table]{beamer}
I Beamer loads some packages automatically
I \usepackage{...} cannot be used for such packages
I Package options are specified within documentclass
I xcolor=... specifies options for xcolor
I pdftex specifies the correct driver for pdflatex
I dvipsnames loads the Crayola/dvips colors
I table loads the colortbl package
TUG 2007: Practicing TEX
![Page 27: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/27.jpg)
Font sizes
\tiny tiny \large large
\scriptsize scriptsize \Large Large
\footnotesize footnotesize \LARGE LARGE\small small \huge huge\normalsize normalsize \Huge Huge
TUG 2007: Practicing TEX
![Page 28: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/28.jpg)
A race condition
Two people share a checking account. They each visit an ATMmachine in different parts of town at approximately noon. Onedeposits $100; the other withdraws $100.
What happens?
Process A
...balance += 100;...
Process B
...balance -= 100;...
TUG 2007: Practicing TEX
![Page 29: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/29.jpg)
Beamer frame dimensions
128 mm
96 mm
TUG 2007: Practicing TEX
![Page 30: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/30.jpg)
Example: two columnsTwo people share a checking account. They each visit an ATM
machine in different parts of town at approximately noon.
One deposits \$100; the other withdraws \$100.
\vspace{2ex} What happens? \vspace{2ex}
\begin{columns}[t]
\column{3cm}
{\color{BrickRed} \centerline{Process A}
\begin{verbatim}
...
balance += 100;
...\end{verbatim}
}
\column{3cm}
{\color{BlueViolet} \centerline{Process B}
\begin{verbatim}
...
balance -= 100;
...\end{verbatim}
}
\end{columns}
TUG 2007: Practicing TEX
![Page 31: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/31.jpg)
Text and graphics
Practical TEX 2005Practical TEX 2005Practical TEX 2005
TUG 2007: Practicing TEX
![Page 32: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/32.jpg)
Example: text and graphics
\begin{frame}\frametitle{Text and graphics}
\begin{columns}[c]\column{1.5in}Practical \TeX\ 2005\\Practical \TeX\ 2005\\Practical \TeX\ 2005
\column{1.5in}\framebox{\includegraphics[width=1.5in]{p2005}}\end{columns}
\end{frame}
TUG 2007: Practicing TEX
![Page 33: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/33.jpg)
Incremental frame contents
I Tables with \pause
I Lists with \pause
I Lists with \onslide
I Tic-tac-toe via tabular and \onslide
I Tic-tac-toe via multiple graphics files
I Highlighting items
TUG 2007: Practicing TEX
![Page 34: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/34.jpg)
Software complexity
Date Developer OS Lines of C
1976 Thompson/Ritchie AT&T UNIX 9,000
1997 Tanenbaum Minix 62,000
1999 Torvalds Linux 1,000,000
2000 Cutler et al. Windows NT 28,000,000
TUG 2007: Practicing TEX
![Page 35: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/35.jpg)
Software complexity
Date Developer OS Lines of C
1976 Thompson/Ritchie AT&T UNIX 9,000
1997 Tanenbaum Minix 62,000
1999 Torvalds Linux 1,000,000
2000 Cutler et al. Windows NT 28,000,000
TUG 2007: Practicing TEX
![Page 36: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/36.jpg)
Software complexity
Date Developer OS Lines of C
1976 Thompson/Ritchie AT&T UNIX 9,000
1997 Tanenbaum Minix 62,000
1999 Torvalds Linux 1,000,000
2000 Cutler et al. Windows NT 28,000,000
TUG 2007: Practicing TEX
![Page 37: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/37.jpg)
Software complexity
Date Developer OS Lines of C
1976 Thompson/Ritchie AT&T UNIX 9,000
1997 Tanenbaum Minix 62,000
1999 Torvalds Linux 1,000,000
2000 Cutler et al. Windows NT 28,000,000
TUG 2007: Practicing TEX
![Page 38: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/38.jpg)
Example: table with pause
\begin{frame}
\frametitle{Software complexity}
\setbeamercovered{dynamic}
\renewcommand{\arraystretch}{1.2}
\begin{tabular}{c|c|c|c}
Date & Developer & OS & Lines of C\\ \hline \hline
1976 & Thompson/Ritchie & AT\&T UNIX & 9,000 \\ \hline \pause
1997 & Tanenbaum & Minix & 62,000 \\ \hline \pause
1999 & Torvalds & Linux & 1,000,000 \\ \hline \pause
2000 & Cutler {\em et al.} & Windows NT & 28,000,000 \\ \hline \hline
\end{tabular}
\end{frame}
TUG 2007: Practicing TEX
![Page 39: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/39.jpg)
Frames and overlays
I A frame consists of one or more overlays
I Dynamic effects can be achieved by using overlays
I Inserting \pause is one way to create a new overlay
TUG 2007: Practicing TEX
![Page 40: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/40.jpg)
Possible objections to using TEX
I I’ve heard TEX and LATEX are not WYSIWYG
TEX is a mark-up language
I LATEX is not installed on my computerProText, TEXLive, TEXShop
I I don’t know who to ask for helpTEX Users Group – www.tug.orgNews group – comp.text.texGoogle search
TUG 2007: Practicing TEX
![Page 41: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/41.jpg)
Possible objections to using TEX
I I’ve heard TEX and LATEX are not WYSIWYGTEX is a mark-up language
I LATEX is not installed on my computerProText, TEXLive, TEXShop
I I don’t know who to ask for helpTEX Users Group – www.tug.orgNews group – comp.text.texGoogle search
TUG 2007: Practicing TEX
![Page 42: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/42.jpg)
Possible objections to using TEX
I I’ve heard TEX and LATEX are not WYSIWYGTEX is a mark-up language
I LATEX is not installed on my computer
ProText, TEXLive, TEXShop
I I don’t know who to ask for helpTEX Users Group – www.tug.orgNews group – comp.text.texGoogle search
TUG 2007: Practicing TEX
![Page 43: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/43.jpg)
Possible objections to using TEX
I I’ve heard TEX and LATEX are not WYSIWYGTEX is a mark-up language
I LATEX is not installed on my computerProText, TEXLive, TEXShop
I I don’t know who to ask for helpTEX Users Group – www.tug.orgNews group – comp.text.texGoogle search
TUG 2007: Practicing TEX
![Page 44: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/44.jpg)
Possible objections to using TEX
I I’ve heard TEX and LATEX are not WYSIWYGTEX is a mark-up language
I LATEX is not installed on my computerProText, TEXLive, TEXShop
I I don’t know who to ask for help
TEX Users Group – www.tug.orgNews group – comp.text.texGoogle search
TUG 2007: Practicing TEX
![Page 45: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/45.jpg)
Possible objections to using TEX
I I’ve heard TEX and LATEX are not WYSIWYGTEX is a mark-up language
I LATEX is not installed on my computerProText, TEXLive, TEXShop
I I don’t know who to ask for helpTEX Users Group – www.tug.orgNews group – comp.text.texGoogle search
TUG 2007: Practicing TEX
![Page 46: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/46.jpg)
Example: list with pause
\begin{frame}[fragile]
\frametitle{Possible Objections To Using \TeX}
\setbeamercovered{invisible}
\begin{itemize}
\setlength{\itemsep}{2ex}
\item I’ve heard \TeX\ and \LaTeX\ are not WYSIWYG\\ \pause
{\color{BrickRed} \TeX\ is a mark-up language} \pause
\item \LaTeX\ is not installed on my computer\\ \pause
{\color{BrickRed} ProText, \TeX Live, \TeX Shop} \pause
\item I don’t know who to ask for help\\ \pause
{\color{BrickRed} \TeX\ Users Group -- {\tt www.tug.org}\\
News group -- {\tt comp.text.tex}\\
Google search}
\end{itemize}
\end{frame}
TUG 2007: Practicing TEX
![Page 47: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/47.jpg)
Possible objections to using TEX
I I’ve heard TEX and LATEX are not WYSIWYGTEX is a mark-up language
I LATEX is not installed on my computerProText, TEXLive, TEXShop
I I don’t know who to ask for helpTEX Users Group – www.tug.orgNews group – comp.text.texGoogle search
TUG 2007: Practicing TEX
![Page 48: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/48.jpg)
Possible objections to using TEX
I I’ve heard TEX and LATEX are not WYSIWYGTEX is a mark-up language
I LATEX is not installed on my computerProText, TEXLive, TEXShop
I I don’t know who to ask for helpTEX Users Group – www.tug.orgNews group – comp.text.texGoogle search
TUG 2007: Practicing TEX
![Page 49: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/49.jpg)
Possible objections to using TEX
I I’ve heard TEX and LATEX are not WYSIWYGTEX is a mark-up language
I LATEX is not installed on my computerProText, TEXLive, TEXShop
I I don’t know who to ask for helpTEX Users Group – www.tug.orgNews group – comp.text.texGoogle search
TUG 2007: Practicing TEX
![Page 50: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/50.jpg)
Possible objections to using TEX
I I’ve heard TEX and LATEX are not WYSIWYGTEX is a mark-up language
I LATEX is not installed on my computerProText, TEXLive, TEXShop
I I don’t know who to ask for helpTEX Users Group – www.tug.orgNews group – comp.text.texGoogle search
TUG 2007: Practicing TEX
![Page 51: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/51.jpg)
Example: list with onslide
\begin{frame}[fragile]
\frametitle{Possible objections to using \TeX}
\begin{itemize}
\setlength{\itemsep}{2ex}
\item I’ve heard \TeX\ and \LaTeX\ are not WYSIWYG\\
\onslide<2-> {{\color{BrickRed} \TeX\ is a mark-up language}}
\item \LaTeX\ is not installed on my computer\\
\onslide<3-> {{\color{BrickRed} ProText, \TeX Live, \TeX Shop}}
\item I don’t know who to ask for help\\
\onslide<4-> {{\color{BrickRed} \TeX\ Users Group -- {\tt www.tug.org}\\
News group -- {\tt comp.text.tex}\\
Google search}}
\end{itemize}
\end{frame}
TUG 2007: Practicing TEX
![Page 52: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/52.jpg)
Versions of onslide
onslide Hidden behavior depends on\setbeamercovered{...}
onslide+ Hidden text is always invisible
onslide* Slide is typeset as if hidden text was not present
TUG 2007: Practicing TEX
![Page 53: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/53.jpg)
Example: list with onslide+
I I’ve heard TEX and LATEX are not WYSIWYG
TEX is a mark-up language
I LATEX is not installed on my computer
ProText, TEXLive, TEXShop
I I don’t know who to ask for help
TEX Users Group – www.tug.orgNews group – comp.text.texGoogle search
TUG 2007: Practicing TEX
![Page 54: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/54.jpg)
Example: list with onslide+
I I’ve heard TEX and LATEX are not WYSIWYGTEX is a mark-up language
I LATEX is not installed on my computer
ProText, TEXLive, TEXShop
I I don’t know who to ask for help
TEX Users Group – www.tug.orgNews group – comp.text.texGoogle search
TUG 2007: Practicing TEX
![Page 55: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/55.jpg)
Example: list with onslide+
I I’ve heard TEX and LATEX are not WYSIWYGTEX is a mark-up language
I LATEX is not installed on my computerProText, TEXLive, TEXShop
I I don’t know who to ask for help
TEX Users Group – www.tug.orgNews group – comp.text.texGoogle search
TUG 2007: Practicing TEX
![Page 56: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/56.jpg)
Example: list with onslide+
I I’ve heard TEX and LATEX are not WYSIWYGTEX is a mark-up language
I LATEX is not installed on my computerProText, TEXLive, TEXShop
I I don’t know who to ask for helpTEX Users Group – www.tug.orgNews group – comp.text.texGoogle search
TUG 2007: Practicing TEX
![Page 57: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/57.jpg)
Example: list with onslide*
I I’ve heard TEX and LATEX are not WYSIWYG
I LATEX is not installed on my computer
I I don’t know who to ask for help
TUG 2007: Practicing TEX
![Page 58: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/58.jpg)
Example: list with onslide*
I I’ve heard TEX and LATEX are not WYSIWYGTEX is a mark-up language
I LATEX is not installed on my computer
I I don’t know who to ask for help
TUG 2007: Practicing TEX
![Page 59: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/59.jpg)
Example: list with onslide*
I I’ve heard TEX and LATEX are not WYSIWYGTEX is a mark-up language
I LATEX is not installed on my computerProText, TEXLive, TEXShop
I I don’t know who to ask for help
TUG 2007: Practicing TEX
![Page 60: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/60.jpg)
Example: list with onslide*
I I’ve heard TEX and LATEX are not WYSIWYGTEX is a mark-up language
I LATEX is not installed on my computerProText, TEXLive, TEXShop
I I don’t know who to ask for helpTEX Users Group – www.tug.orgNews group – comp.text.texGoogle search
TUG 2007: Practicing TEX
![Page 61: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/61.jpg)
Overlay specifications
I Overlays are numbered 1, 2, 3, . . . ,N
I An overlay specification defines a sequence of numbers
I Examples:I <2>I <2-4>I <2->I <1,3,5,7,9>I <-3,8->
I Some LATEX commands can accept an overlay specificationI \textbf<2->{bold text}I \emph<3,5>{emphasized text}I {\color<4>{RoyalBlue} blue}
TUG 2007: Practicing TEX
![Page 62: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/62.jpg)
Tic-tac-toe via tabular
O X XX O OX O X
TUG 2007: Practicing TEX
![Page 63: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/63.jpg)
Tic-tac-toe via tabular
O X
X
X O OX O X
TUG 2007: Practicing TEX
![Page 64: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/64.jpg)
Tic-tac-toe via tabular
O X
X
X
O
OX O X
TUG 2007: Practicing TEX
![Page 65: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/65.jpg)
Tic-tac-toe via tabular
O X
X
X
O
OX O
X
TUG 2007: Practicing TEX
![Page 66: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/66.jpg)
Tic-tac-toe via tabular
O X
X
X
O O
X O
X
TUG 2007: Practicing TEX
![Page 67: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/67.jpg)
Tic-tac-toe via tabular
O X
XX O O
X O
X
TUG 2007: Practicing TEX
![Page 68: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/68.jpg)
Tic-tac-toe via tabular
O X
XX O O
X
O X
TUG 2007: Practicing TEX
![Page 69: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/69.jpg)
Tic-tac-toe via tabular
O
X XX O O
X
O X
TUG 2007: Practicing TEX
![Page 70: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/70.jpg)
Tic-tac-toe via tabular
O X XX O O
X
O X
TUG 2007: Practicing TEX
![Page 71: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/71.jpg)
Tic-tac-toe via tabular
O X XX O OX O X
TUG 2007: Practicing TEX
![Page 72: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/72.jpg)
Example: tic-tac-toe via tabular
\begin{frame}
\frametitle{Tic-tac-toe via {\tt tabular}}
\setbeamercovered{invisible}
{\Huge
\begin{center}
\begin{tabular}{c|c|c}
\onslide<9->{O} & \onslide<8->{X} & \onslide<2->{X} \\ \hline
\onslide<6->{X} & \onslide<3->{O} & \onslide<5->{O} \\ \hline
\onslide<10->{X} & \onslide<7->{O} & \onslide<4->{X}
\end{tabular}
\end{center}
}
\end{frame}
TUG 2007: Practicing TEX
![Page 73: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/73.jpg)
Tic-tac-toe via multiple graphics files
XOXOX
O
XO
X
TUG 2007: Practicing TEX
![Page 74: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/74.jpg)
Tic-tac-toe via multiple graphics files
X
OXOX
O
XO
X
TUG 2007: Practicing TEX
![Page 75: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/75.jpg)
Tic-tac-toe via multiple graphics files
XO
XOX
O
XO
X
TUG 2007: Practicing TEX
![Page 76: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/76.jpg)
Tic-tac-toe via multiple graphics files
XOX
OXO
XO
X
TUG 2007: Practicing TEX
![Page 77: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/77.jpg)
Tic-tac-toe via multiple graphics files
XOXO
XO
XO
X
TUG 2007: Practicing TEX
![Page 78: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/78.jpg)
Tic-tac-toe via multiple graphics files
XOXOX
O
XO
X
TUG 2007: Practicing TEX
![Page 79: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/79.jpg)
Tic-tac-toe via multiple graphics files
XOXOX
O
XO
X
TUG 2007: Practicing TEX
![Page 80: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/80.jpg)
Tic-tac-toe via multiple graphics files
XOXOX
O
X
O
X
TUG 2007: Practicing TEX
![Page 81: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/81.jpg)
Tic-tac-toe via multiple graphics files
XOXOX
O
XO
X
TUG 2007: Practicing TEX
![Page 82: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/82.jpg)
Tic-tac-toe via multiple graphics files
XOXOX
O
XO
XTUG 2007: Practicing TEX
![Page 83: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/83.jpg)
Example: multiple graphics files
\usepackage{xmpmulti}
...
\begin{frame}
\frametitle{Tic-tac-toe via multiple graphics files}
\setbeamercovered{invisible}
\begin{center}
\multiinclude[format=pdf,graphics={width=3in}]{game}
\end{center}
\end{frame}
XO
game-0.pdf game-1.pdf game-2.pdf
TUG 2007: Practicing TEX
![Page 84: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/84.jpg)
Highlighting items of a list
I Practical
I TEX
I 2005
TUG 2007: Practicing TEX
![Page 85: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/85.jpg)
Highlighting items of a list
I Practical
I TEX
I 2005
TUG 2007: Practicing TEX
![Page 86: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/86.jpg)
Highlighting items of a list
I Practical
I TEX
I 2005
TUG 2007: Practicing TEX
![Page 87: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/87.jpg)
Example: multiple overlay specifications
\begin{frame}
\frametitle{Highlighting items of a list}
\setbeamercovered{dynamic}
\begin{itemize}
\setlength{\itemsep}{2ex}
\item<1-> {\color<1>{BrickRed} Practical}
\item<2-> {\color<2>{BrickRed} \TeX}
\item<3-> {\color<3>{BrickRed} 2005}
\end{itemize}
\end{frame}
TUG 2007: Practicing TEX
![Page 88: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/88.jpg)
Other themes
I The Beamer package supplies many themes
I For example, place the following in the preamble:\usepackage{beamerthemesplit}
\usetheme{Berkeley}
\usecolortheme{dolphin}
TUG 2007: Practicing TEX
![Page 89: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/89.jpg)
Beamer byExample
AndrewMertzWilliamSlough Beamer by Example
Andrew MertzWilliam Slough
Mathematics and Computer Science DepartmentEastern Illinois University
June 15, 2005
Practical TEX 2005
TUG 2007: Practicing TEX
![Page 90: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/90.jpg)
Beamer byExample
AndrewMertzWilliamSlough
Overview
Benefits of Using BeamerExamples
A tiny exampleBasic frame ingredients
\begin{frame}, \frametitle, \end{frame}Static frame contents
Lists, mathematics, tables, verbatim text, graphicsColors and tables via xcolor
Two columnsIncremental frame contents
Tables and lists with \pause
Lists with \onslide
Tic-tac-toe with \onslide and multiple graphics filesHighlighting items of a list
Ornaments: Fonts and ThemesProducing N-up output with pdfjam and pdfpagesPitfallsReferences
Practical TEX 2005
TUG 2007: Practicing TEX
![Page 91: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/91.jpg)
Handouts, pdfjam, and pdfpages
I Beamer output can be created without overlay effects:\documentclass[handout,xcolor=pdftex,dvipsnames,table]{beamer}
I Placing handout:0 in an overlay specification prevents theaffected text from appearing on handouts. For example,2 + 2 = \onslide+<2- | handout:0>{4}$
2 + 2 =
4
I The pdfpages package can be used to generate an N-upversion from an overlay-free presentation
I pdfjam is a Unix shell script to automate the use of pdfpages
TUG 2007: Practicing TEX
![Page 92: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/92.jpg)
Handouts, pdfjam, and pdfpages
I Beamer output can be created without overlay effects:\documentclass[handout,xcolor=pdftex,dvipsnames,table]{beamer}
I Placing handout:0 in an overlay specification prevents theaffected text from appearing on handouts. For example,2 + 2 = \onslide+<2- | handout:0>{4}$
2 + 2 = 4
I The pdfpages package can be used to generate an N-upversion from an overlay-free presentation
I pdfjam is a Unix shell script to automate the use of pdfpages
TUG 2007: Practicing TEX
![Page 93: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/93.jpg)
Pitfalls
I Beamer’s verbatim environment
I Multiple processing steps
I Switching themes after content is established
I Frame numbering
I Temptation to exert fine control
TUG 2007: Practicing TEX
![Page 94: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/94.jpg)
Credits and acknowledgments
beamer Till Tantau
mpmulti Klaus Guntermann
pdfjam David Firth
pdfpages Andreas Matthias
xcolor Uwe Kern
TUG 2007: Practicing TEX
![Page 95: Beamer and TikZ Workshop - Duke Universitypfister.ee.duke.edu/links/workshop_beamer.pdf · Morning overview: Beamer I Benefits of using Beamer I Examples I A tiny example I Basic](https://reader030.fdocuments.us/reader030/viewer/2022041117/5f2ccf14a0fef549e8448a3e/html5/thumbnails/95.jpg)
References
I Beamer: latex-beamer.sourceforge.net
I TEX Live: www.tug.org/texlive/
I TEX Shop: www.uoregon.edu/~koch/texshop/texshop.html
I ProTEXt : www.tug.org/protext/
I pdfpages: www.ctan.org/tex-archive/help/Catalogue/entries/pdfpages.html
I pdfjam: www2.warwick.ac.uk/fac/sci/statistics/staff/academic/firth/software/pdfjam
TUG 2007: Practicing TEX