/
beamer-example.tex
217 lines (145 loc) · 3.95 KB
/
beamer-example.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
\documentclass{beamer}
%\usetheme{split}
\usetheme{Malmoe}
%fonts:
%\usepackage[math]{anttor}
\usepackage[T1]{fontenc}
\usepackage{kpfonts}
\usepackage{float,subfig}
\usepackage{wrapfig}
\usepackage{tikz,pgfplots}
%\usepackage{beamerthemesplit} // Activate for custom appearance
\title{A Presentation on Presentations Using Beamer}
\author{ J. Alexander Branham \& Henry Pascoe}
\institute{The University of Texas at Austin}
\date{\today}
\begin{document}
\frame{\titlepage}
\section{Introduction}
\begin{frame}
\frametitle{What is Beamer?}
\begin{itemize}
\item Beamer is similar to Microsoft PowerPoint
\pause
\item It makes nice looking slides
\end{itemize}
\end{frame}
\begin{frame}
\frametitle
you can also add math to your slides with ease:
\[y=mx+b\]
\end{frame}
\begin{frame}
\frametitle{Errors}
Sometimes (often even) LaTeX will give you errors
\begin{itemize}
\item When this happens there are a few things to check
\begin{itemize}
\item did you make sure to put dollar signs around symbols?
\item did you end all of your environments?
\item look at the error message, often it will give you a line number where the error is.
\item commenting things out until it will compile is a nice way to find errors.
\end{itemize}
\end{itemize}
\end{frame}
\section{Figures}
\frame{\frametitle{You can also make figures}
\begin{figure}[t]\centering
\begin{tikzpicture}[scale=1.2][font=\tiny]
\node at (.5,5.15) {1};
\node at (-.3,4.6) {$a$};
\node at (1.3,4.6) {$\neg a$};
\draw[,-] (.5,5)--(-1,4);
\draw[,-] (.5,5)--(2,4);
\node at (-1,3.85) {2};
\node at (2,3.85) {2};
\draw[] (-1,3.7)--(-1.4,3);
\draw[] (-1,3.7)--(-.6,3);
\draw[very thick] (-1.1,3.5) to [out=270, in=-90] (-.9,3.5);
\node at (-1,3.2) {$s$};
\node at (-1.4,2.9) {0};
\node at (-.6,2.9) {$r_2$};
\draw[] (2,3.7)--(1.6,3);
\draw[] (2,3.7)--(2.4,3);
\draw[very thick] (1.9,3.5) to [out=270, in=-90] (2.1,3.5);
\node at (2,3.2) {$s$};
\node at (1.6,2.9) {0};
\node at (2.4,2.9) {$r_2$};
\node at (2, 2.7) {1};
\node at (-1, 2.7) {1};
\draw[] (-1,2.5)--(-1.4,1.8);
\draw[] (-1,2.5)--(-.6,1.8);
\draw[very thick] (-1.1,2.3) to [out=270, in=-90] (-.9,2.3);
\node at (-1,2) {$e$};
\node at (-1.4,1.7) {0};
\node at (-.6,1.7) {$r_1 + s$};
\draw[] (2,2.5)--(1.6,1.8);
\draw[] (2,2.5)--(2.4,1.8);
\draw[very thick] (2.1,2.3) to [out=270, in=-90] (1.9,2.3);
\node at (2,2) {$e$};
\node at (1.6,1.7) {0};
\node at (2.4,1.7) {$r_1 + s$};
\draw[, -] (-1,1.2)--(-2, .3);
\draw[, -] (-1, 1.2)--(0, .3);
\node at (-1, 1.4) {T};
\node at (-1.7, .8) {c};
\node at (-.3, .8) {$\neg c$};
\draw[, -] (2,1.2)--(1, .3);
\draw[, -] (2, 1.2)--(3, .3);
\node at (2, 1.4) {T};
\node at (1.3, .8) {c};
\node at (2.7, .8) {$\neg c$};
%(a,c)
\node at (-2.2, .1) {$r_1 + s -e$,};
\node at (-2.2, -.1) {$r_2-s$,};
\node at (-2.2, -.3) {$l$};
%(a, not c)
\node at (-.3, .1) {$r_1+s-e-\beta_1-a$,};
\node at (-.3, -.1) {$r_2-s-\beta_2$,};
\node at (-.3, -.3) {$(1-q)(b)$};
%(not a, c)
\node at (1.1, .1){$r_1+s-e$,};
\node at (1, -.1){$r_2-s$,};
\node at (1, -.3){$l$};
%(not a, not c)
\node at (3, .1){$r_1+s-e-\beta_1$,};
\node at (3, -.1){$r_2-s-\beta_2$,};
\node at (3, -.3){$(1-q)(b)$};
\end{tikzpicture}
\end{figure}
}%end frame
\section{Tables}
\begin{frame}
\frametitle{Tables}
You can also make tables:
\begin{table}[ht]
\caption{Nonlinear Model Results}
% title of Table
\centering
% used for centering table
\begin{tabular}{c c c c}
% centered columns (4 columns)
\hline
\hline %inserts double horizontal lines
Case & Method\#1 & Method\#2 & Method\#3\\[0.5ex]
% inserts table
%heading
\hline
% inserts single horizontal line
1 & 50& 837 & 970\\
% inserting body of the table
2 & 47 & 877 & 230\\
3 & 31 & 25 & 415\\
4 & 35 & 144 & 2356\\
5 & 45 & 300 & 556\\[1ex]
% [1ex] adds vertical space
\hline
%inserts single line
\end{tabular}
\end{table}
\end{frame}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End: