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
|
\documentclass[11pt]{beamer}
\usetheme{Madrid}
\usepackage[utf8]{inputenc}
\usepackage{amsmath, amssymb, amsfonts, amsthm}
\usepackage{xcolor}
\usepackage{tikz-cd}
\author[\texttt{sebastiano.tronto@uni.lu}]{Sebastiano Tronto}
\title{Presentations in LaTeX with Beamer}
\logo{\includegraphics[scale=0.1]{img/unilu.jpg}}
%\institute{University of Luxembourg}
\newcommand{\bs}{\textbackslash}
\date{2021-03-26}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{Why presentation with LaTeX?}
Pros:
\vspace{0.2cm}
\begin{itemize}
\item Easy to include formulas and theorems
\item Portability: \texttt{pdf} = \textbf{portable} document format
\item Very fast to get ``good enough'' results (subjective)
\end{itemize}
\vspace{0.5cm}
Cons:
\vspace{0.2cm}
\begin{itemize}
\item Advanced animations not possible with pdf
\item Lack of other presentation-specific features
\end{itemize}
\end{frame}
\begin{frame}{Structure of a Beamer document}
\includegraphics[scale=0.35]{img/beamer.png}
\end{frame}
\begin{frame}{The \texttt{frame} environment}
\texttt{\bs begin\{frame\}[options]\{Title\} \,\dots\, \bs end\{frame\}}
\vspace{0.5cm}
Useful options:
\begin{itemize}
\item \texttt{plain}: no bars on bottom or side
\item \texttt{shrink}: content is shrunk to fit in the slide
\item \texttt{fragile}: when you have \texttt{tikzpicture},
\texttt{listings} or similar
\end{itemize}
\end{frame}
\begin{frame}{Basic animations}
\begin{itemize}
\item \texttt{\bs pause} for a simple break
\vspace{0.3cm}
\item \texttt{\bs only<start-(end)>\{\emph{stuff}\}} to show
\emph{\texttt{stuff}} only on some slides
Shortcut for lists: \texttt{\bs item<\dots>} or
\texttt{\bs begin\{itemize\}[<+->]}
\vspace{0.3cm}
\item Optional:
\texttt{\bs setbeamercovered\{transparent\}} (see end of slides)
\vspace{0.3cm}
\item \texttt{\bs uncover<\dots>} does not take space when invisible
\end{itemize}
\end{frame}
\begin{frame}{Theorems and lists}
\begin{theorem} This is a Theorem \end{theorem}
\begin{proof} With proof \end{proof}
\begin{itemize}
\item \texttt{theorem}, \texttt{proof} and \texttt{definition} already
included with beamer.
\item Define new theorems as usual (they get a box automatically)
\end{itemize}
\end{frame}
\begin{frame}[fragile]{Custom blocks}
{
\setbeamercolor{block title}{fg=blue,bg=green}
\setbeamercolor{block body}{fg=black,bg=pink!50}
\begin{block}{A custom block, with ugly colors}
\begin{verbatim}
{
\setbeamercolor{block title}{fg=blue,bg=green}
\setbeamercolor{block body}{fg=black,bg=pink!50}
\begin{block}{A custom block, with ugly colors}
...
\end{block}
}
\end{verbatim}
\end{block}
}
\end{frame}
\begin{frame}{Multiple columns}
\begin{columns}
\column{0.3\textwidth}
\texttt{\bs begin\{columns\}}
\texttt{\qquad\bs column\{\emph{width}\}}
\texttt{\qquad(stuff)}
\texttt{\qquad\bs column\{\emph{width}\}}
\texttt{\qquad(more stuff)}
\texttt{\qquad\qquad\vdots}
\texttt{\bs end\{columns\}}
\column{0.7\textwidth}
\begin{itemize}
\item \texttt{\emph{width}} is a length (example:
\texttt{0.7\bs textwidth})
\item Example: picture on the left, text on the right
\item Not specific to Beamer
\item Alternative: \texttt{tabular}
\end{itemize}
\end{columns}
\end{frame}
\begin{frame}{Some advice}
\begin{itemize}
\item Do not prepare too many slides (1-2 minutes per slide)
\item Do not write too much in each slide (split if necessary)
\item Pictures and \texttt{itemize}s are great, sentences are not
\item Animations are ok (but are they worth the effort?)
\end{itemize}
\end{frame}
\begin{frame}{Examples}
Three examples will follow:
\begin{itemize}
\item A horrible slide
\item A better slide with the same content
\item A better better slide that took a little more time to write
\end{itemize}
\end{frame}
\begin{frame}{Diophantine equations (bad)}
Diophantine equations are a very old problem, dating back to Diophantus of
Alexandria (III century A.D.).
Despite this, they are still today a very hard problem, and there is
no general method or algorithm to solve them.
A notable example is \emph{Fermat's Last Theorem}, stated for the first time
in 1637 but proved to be true only in 1995, after more than 350 years!
\end{frame}
\begin{frame}{Diophantine Equations (better)}
\begin{itemize}
\item Very old problem
\vspace{0.3cm}
\item Very simple formulation, but very hard to solve!
\vspace{0.3cm}
\item ``Fermat's Last Theorem'': stated in 1637 - proved in 1995
\end{itemize}
\end{frame}
\setbeamercovered{transparent}
\begin{frame}{Diophantine Equations (better better)}
\begin{columns}
\column{0.45\textwidth}
\begin{figure}
\begin{center}
\includegraphics[scale=0.2]{img/diophantus.jpg}
{\footnotesize Diophantus of Alexandria\\ (III century A.D.)}
\end{center}
\end{figure}
\column{0.55\textwidth}
\begin{itemize}
\item<1-> Very old problem
\item<2-> Very simple formulation, but very hard to solve!
\item<3-> \emph{Fermat's Last Theorem}: stated in 1637 - proved in 1995
\end{itemize}
\end{columns}
\end{frame}
\end{document}
|