-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamer-advice.tex
314 lines (290 loc) · 9.37 KB
/
beamer-advice.tex
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
\documentclass{beamer}
% Step one: Pick a theme!
\usetheme{Ilmenau}
% Available themes are:
% AnnArbor, Antibes, Bergen, Berkeley, Berlin, Boadilla, boxes,
% CambridgeUS, Copenhagen, Darmstadt, default, Dresden, Frankfurt,
% Goettingen, Hannover, Ilmenau, JuanLesPins, Luebeck, Madrid, Malmoe,
% Marburg, Montpellier, PaloAlto, Pittsburgh, Rochester, Singapore,
% Szeged, Warsaw
% Want to customize the color? Use the following command. Beaver
% matches pretty well with Huntingdon's colors :)
\usecolortheme{beaver}
% albatross, beaver, beetle, crane, default, dolphin, dove, fly, lily,
% orchid, rose, seagull, seahorse, sidebartab, structure, whale,
% wolverine
% Use the listings package for including code (in this case, LaTeX).
% If you don't include any code, then you needn't worry about it. If
% you do, you can either look up the listings package or simply use
% the verbatim package. Either way, come see me and I'll show you
% how. The several lines following includes the listing packages and
% defines some nice defaults (lifted from
% http://en.wikibooks.org/wiki/LaTeX/Source_Code_Listings)
\usepackage{listings}
\definecolor{mygreen}{rgb}{0,0.6,0}
\definecolor{mygray}{rgb}{0.5,0.5,0.5}
\definecolor{mymauve}{rgb}{0.58,0,0.82}
\lstset{backgroundcolor=\color{white}, basicstyle=\footnotesize,
breakatwhitespace=false, breaklines=true, captionpos=b,
commentstyle=\color{mygreen}, deletekeywords={},
escapeinside={@}{@},
extendedchars=true, frame=single,
keywordstyle=\color{blue}, language={[LaTeX]TeX},
morekeywords={\mathbb,\mathcal,\mathfrak}, numbers=left, numbersep=5pt,
numberstyle=\tiny\color{mygray}, rulecolor=\color{black},
showspaces=false, showstringspaces=false, showtabs=false,
stringstyle=\color{mymauve}, tabsize=2, title=\lstname}
% The following lets you include URLs in a \url{...}.
% \usepackage{url}
\begin{document}
\title[Beamer]{A Beamer Example}
\subtitle{With code!}
\author[C. Curry]{Clinton Curry}\institute{Huntingdon
College}
\date[2013/04/07]{Capstone Class\\April 7, 2013}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{Outline}
\tableofcontents
\end{frame}
\section{How to get started}
\begin{frame}[fragile]{How to begin}
Every Beamer presentation should start something like
\begin{lstlisting}
\documentclass{beamer}
... % preamble goes here
\begin{document}
\title{Your Title}
\author{Your Name}
\begin{frame}
\titlepage
\end{@@frame}
... % Your presentation goes here
\end{document}
\end{lstlisting}
\end{frame}
\begin{frame}[fragile]{Making Frames}
A \textbf{frame} is a unit of display -- roughly, one per slide.
You use the \verb|frame| environment to create them. Remember to
give your frames a title!
Put a \verb|frame| environment between your \verb|\begin{document}|
and \verb|\end{document}|.
\begin{lstlisting}[language={[LaTeX]TeX}]
\begin{frame}{Making Frames}
A \textbf{frame} is a unit of display -- roughly,
one per slide. You use the \verb|frame| environment
to create them. Remember to give your frames a
title!
\end{@@frame}@%Had to do this, otherwise I got an error...@
\end{lstlisting}
\end{frame}
\begin{frame}[fragile]{Table of Contents}
Right after your title slide, it is useful to include a frame with
the table of contents. (You'll have to compile your document a
couple of times after updating a section name for the table of
contents to change.)
\begin{lstlisting}
\begin{frame}{Outline}
\tableofcontents
\end{@@frame}
\end{lstlisting}
\end{frame}
\begin{frame}[fragile]{Sectioning}
You can use the \verb|\section| and \verb|\subsection| commands as
usual. These make the sections in your talk, and show up on your
table of contents slide.
\end{frame}
\section{Math Commands}
\begin{frame}[fragile]{Math!}
You can do the same kinds of mathematically wondrous things that you
could do before. These include:
\begin{itemize}
\item Inline math expressions: $e^{100} \approx 2.69 \times
10^{43}$.
\begin{lstlisting}
$e^{100} \approx 2.69 \times 10^{43}$
\end{lstlisting}
\item Displayed math expressions:
\[ \int_{-\infty}^\infty e^{-x^2}\,dx = \sqrt{\pi} \]
\begin{lstlisting}
\[
\int_{-\infty}^\infty e^{-x^2}\,dx = \sqrt{\pi}
\]
\end{lstlisting}
\end{itemize}
\end{frame}
\begin{frame}[fragile]{\AmS-\LaTeX commands}
You also have all \verb|amsmath|,\verb|amsthm|, \verb|amsfonts|, and
\verb|amssymb| commands available to you. See the documentation:
\begin{itemize}
\item \href{ftp://ftp.ams.org/pub/tex/doc/amsmath/amsldoc.pdf}{amsldoc.pdf}
\item \href{ftp://ftp.ams.org/pub/tex/doc/amscls/amsthdoc.pdf}{amsthdoc.pdf}
\end{itemize}
\end{frame}
\begin{frame}{\texttt{amsthm} commands}
\begin{lemma}
\LaTeX{} is cool.
\end{lemma}
\begin{proof}
Apparent from observation.
\end{proof}
\begin{theorem}
Beamer is cool!
\end{theorem}
\begin{proof}[Proof by name-calling]
Anyone who disagrees is a dweeb.
\end{proof}
\end{frame}
\begin{frame}[fragile]{\texttt{amsthm} commands}
The \verb|lemma|, \verb|theorem|, \verb|corollary|, and \verb|proof|
commands are automatically defined.
\begin{lstlisting}
\begin{lemma}
\LaTeX{} is cool.
\end{lemma}
\begin{proof}
Apparent from observation.
\end{proof}
\begin{theorem}
Beamer is cool!
\end{theorem}
\begin{proof}[Proof by name-calling]
Anyone who disagrees is a dweeb.
\end{proof}
\end{lstlisting}
\end{frame}
\begin{frame}[fragile]{amsfonts}
You have \verb|\mathbb|, \verb|\mathrm|, \verb|\mathbf|,
\verb|\mathcal|, and \verb|\mathfrac|, as usual.
\begin{itemize}
\item Normal math: $ABCDEFGHIJKLMNOPQRSTUVWXYZ$
\item \verb|\mathbb|: $\mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
\item \verb|\mathbf|: $\mathbf{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
\item \verb|\mathcal|: $\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
\item \verb|\mathfrak|: $\mathfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
\item \verb|\mathrm|: $\mathrm{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
\end{itemize}
\end{frame}
\begin{frame}[fragile]{amsfonts}
\begin{lstlisting}
\begin{itemize}
\item Normal math: $ABCDEFGHIJKLMNOPQRSTUVWXYZ$
\item \verb|\mathbb|: $\mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
\item \verb|\mathbf|: $\mathbf{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
\item \verb|\mathcal|: $\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
\item \verb|\mathfrak|: $\mathfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
\item \verb|\mathrm|: $\mathrm{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
\end{itemize}
\end{lstlisting}
\end{frame}
\begin{frame}[fragile]{amssymb}
You can use all of the many special-purpose symbols defined by
\texttt{amssymb}, which you can find in the
\href{http://mirrors.ctan.org/info/symbols/comprehensive/symbols-letter.pdf}{\color{blue}Comprehensive
\LaTeX{} Symbol List}.
\end{frame}
\begin{frame}[fragile]{amsmath}
You can use the many excellent facilities of the \verb|amsmath|
package. This includes
\begin{itemize}
\item the \verb|\text| command, to include text in math mode;
\item the \verb|align| environment, to line up equations like
\begin{align*}
(x+1)(x-1) &= x(x-1) + 1(x-1) & \text{distribute}\\
&= x^2 - x + x - 1 & \text{distribute}\\
&= x^2 - 1 & \text{combine}
\end{align*} and
\item matrices like
\[
\begin{pmatrix}
1 & 3 & 5\\
4 & 7 & -1
\end{pmatrix}
\begin{bmatrix}
9 \\ 5 \\3
\end{bmatrix} =
\begin{bmatrix}
(9)(1)+(5)(3)+(3)(5)\\
(9)(4)+(5)(7)+(3)(-1)
\end{bmatrix}
=
\begin{bmatrix}
39\\68
\end{bmatrix}
\]
\end{itemize}
\end{frame}
\begin{frame}[fragile]{amsmath}
\begin{lstlisting}
% Alignment occurs on ampersands
\begin{align*}
(x+1)(x-1) &= x(x-1) + 1(x-1) & \text{distribute}\\
&= x^2 - x + x - 1 & \text{distribute}\\
&= x^2 - 1 & \text{combine}
\end{align*}
% pmatrix uses parentheses, bmatrix uses
% square brackets
\[
\begin{pmatrix}
1 & 3 & 5\\
4 & 7 & -1
\end{pmatrix}
\]
\end{lstlisting}
\end{frame}
\begin{frame}[fragile]{Pausing}
Using the \verb|\pause| command, you can hold off on showing
something until appropriate.
\pause
\begin{center}
\Huge Like this!
\end{center}
\pause
\begin{lstlisting}
Using the \verb|\pause| command, you can hold off on showing something until appropriate.
\pause
\begin{center}
\Huge Like this!
\end{center}
\end{lstlisting}
\end{frame}
\section{Various pretty things}
\begin{frame}[fragile]{Pictures}
Pictures can be included with the \verb|\includegraphics| command;
this can be used for PNG, JPEG, or PDF files.
\begin{center}
\includegraphics[height=2in]{TFZsuperellipse-crop.pdf}
\end{center}
\end{frame}
\begin{frame}[plain]
\begin{center}
\includegraphics[height=3.5in]{TFZsuperellipse-crop.pdf}
\end{center}
\end{frame}
\begin{frame}[fragile]{Pictures}
\begin{lstlisting}
\begin{center}
\includegraphics[height=2in]{filename.pdf}
\end{center}
\end{lstlisting}
The entire slide is only about 3.5 inches tall. You can get the full
height by using the [plain] option on the frame:
\begin{lstlisting}
\begin{frame}[plain]{Title here}
\begin{center}
\includegraphics[height=3.5in]{filename.pdf}
\end{center}
\end{@@frame}
\end{lstlisting}
\end{frame}
\begin{frame}{Further Information}
Another tutorial is available from
\href{http://www.uncg.edu/cmp/reu/presentations/Charles\%20Batts\%20-\%20Beamer\%20Tutorial.pdf}{\color{blue}here}
(credit to Charles Batts).
\bigskip
If you really want to drink from the firehose, check out
\href{http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf}%
{\color{blue}the beamer user guide}.
\end{frame}
\end{document}