Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gmcninch-tufts
GitHub Repository: gmcninch-tufts/2024-Sp-Math190
Path: blob/main/docs/course-assets/latex-examples/beamer-example.tex
903 views
1
\documentclass{beamer}
2
%\documentclass[trans]{beamer}
3
4
% use the 'trans' to produce "transperencies"; really this means: something you
5
% would *print*. -- The \pause command does nothing when the option
6
% [trans] is used.
7
8
\usepackage{palatino}
9
\usepackage{mathpazo}
10
11
\usepackage{graphicx}
12
%\graphicspath{ {./} }
13
14
%%------------------------------------------------------------
15
%% some "theorem" commands
16
17
\newtheorem{cor}[theorem]{Corollary}
18
\newtheorem{prop}[theorem]{Proposition}
19
20
\theoremstyle{remark}
21
\newtheorem{rem}[theorem]{Remark}
22
23
24
%%------------------------------------------------------------
25
26
\mode<presentation>
27
{
28
\usetheme{Malmoe}
29
% other options include
30
% \usetheme{Rochester}
31
% \usetheme{boxes}
32
% or ...
33
34
\setbeamercovered{transparent}
35
}
36
37
\usepackage[english]{babel}
38
39
\usefonttheme{serif}
40
\useinnertheme{rectangles}
41
42
\title{Example of a beamer presentation}
43
\subtitle[]{(Illustrating some usage)}
44
45
\date{March 10, 2024}
46
47
\author[] % (optional, use only with lots of authors)
48
{George McNinch}
49
\institute% (optional, but mostly needed)
50
{
51
Department of Mathematics\\
52
Tufts University
53
}
54
55
%\subject{Talks}
56
% This is only inserted into the PDF information catalog. Can be left
57
% out.
58
59
% Remove ("comment out") the following code if you do not want the
60
% table of contents to pop up at the beginning of each subsection:
61
62
\AtBeginSection[]
63
{
64
\begin{frame}%<beamer>
65
\frametitle{Outline}
66
\tableofcontents[currentsection]
67
\end{frame}
68
}
69
70
71
% If you wish to uncover everything in a step-wise fashion, uncomment
72
% the following command:
73
74
%\beamerdefaultoverlayspecification{<+->}
75
76
\begin{document}
77
78
\begin{frame}
79
\titlepage
80
\end{frame}
81
82
83
%% I've commented this out since the "pre-section" table of contents will anyhow appear...
84
%%
85
% \begin{frame}
86
% \frametitle{Overview}
87
% \tableofcontents
88
% % You might wish to add the option [pausesections]
89
% \end{frame}
90
91
\section{Beamer warmup}
92
93
\begin{frame}
94
\frametitle{Beamer concepts}
95
96
\begin{itemize}
97
\item A slide is the basic unit for a \emph{Beamer} slide-show.
98
\pause
99
100
\item I've organized this document with \emph{sections}; each section contains a few \emph{frames.}
101
\pause
102
103
\item When the \textsc{LaTeX} file is \emph{compiled} (say, in \textsc{Overleaf}) the output
104
is a PDF file that has (at least) a page corresponding to each frame.
105
\end{itemize}
106
107
\end{frame}
108
109
\begin{frame}
110
\frametitle{Beamer concepts, p.2}
111
112
\begin{itemize}
113
\item In fact, if there are \texttt{\textbackslash pause} commands
114
with a frame, \textsc{LaTeX} will produce multiple pages for the
115
frame, with material following the \texttt{\textbackslash pause}
116
\emph{greyed out}.
117
\pause
118
\item Using an application for document display, you can use the
119
resulting PDF to accompany a presentation.
120
\end{itemize}
121
\end{frame}
122
123
\section{Graphs}
124
\begin{frame}
125
\frametitle{Definition of a graph}
126
Let's give an example of an \emph{itemized list}: \pause
127
\begin{itemize}
128
\item A \emph{graph} \(G = (V,E)\) consists of a set \(V\) of \emph{vertices} and a set \(E\)
129
of \emph{edges.}
130
\pause
131
\item If \(G\) is a \emph{directed graph} then \(E\) is a subset of
132
the Cartesian product \(V \times V\). An element \(e = (v,w) \in E\)
133
represents an edge \emph{from} the vertex \(v\) \emph{to} the
134
vertex \(w\). \pause
135
\item If \(G\) is an \emph{undirected graph}, then edges may be
136
represented in the form \(e = [v,w]\) where \(v,w \in V\) are
137
vertices, and where \([v,w] = [w,v]\).
138
\end{itemize}
139
140
\end{frame}
141
142
\begin{frame}
143
\frametitle{Labeled graphs}
144
145
\begin{itemize}
146
\item If \(G = (V,E)\) is a graph, a labeling of \(G\) is determined by a function
147
\(f:E \to \mathbb{R}\); thus \(f\) assigns a real number to each edge of the graph.
148
\pause
149
\item here is an example of a directed, labeled graph.
150
151
\vfil
152
%% we only display the graphics on the "second slide" i.e. after
153
%% the first pause. This is a bit of a hack, but I don't right now
154
%% know a better approach.
155
\begin{center}
156
\only<2>{\includegraphics[scale=.3]{graph-example}}
157
\end{center}
158
%% you could just include the graphics without worrying about the \pause's;
159
%% just comment the above lines and uncomment the following ones:
160
161
%\begin{center}
162
% \includegraphics[scale=.3]{graph-example}}
163
%\end{center}
164
\end{itemize}
165
166
\end{frame}
167
168
169
170
\end{document}
171
172
173