5-Beamer.tex (5486B)
1 \documentclass[11pt]{beamer} 2 \usetheme{Madrid} 3 \usepackage[utf8]{inputenc} 4 \usepackage{amsmath, amssymb, amsfonts, amsthm} 5 \usepackage{xcolor} 6 7 \usepackage{tikz-cd} 8 9 \author[\texttt{sebastiano.tronto@uni.lu}]{Sebastiano Tronto} 10 \title{Presentations in LaTeX with Beamer} 11 \logo{\includegraphics[scale=0.1]{img/unilu.jpg}} 12 %\institute{University of Luxembourg} 13 14 \newcommand{\bs}{\textbackslash} 15 16 \date{2021-03-26} 17 18 \begin{document} 19 20 \begin{frame} 21 \titlepage 22 \end{frame} 23 24 \begin{frame}{Why presentation with LaTeX?} 25 Pros: 26 27 \vspace{0.2cm} 28 \begin{itemize} 29 \item Easy to include formulas and theorems 30 \item Portability: \texttt{pdf} = \textbf{portable} document format 31 \item Very fast to get ``good enough'' results (subjective) 32 \end{itemize} 33 34 \vspace{0.5cm} 35 Cons: 36 37 \vspace{0.2cm} 38 \begin{itemize} 39 \item Advanced animations not possible with pdf 40 \item Lack of other presentation-specific features 41 \end{itemize} 42 \end{frame} 43 44 \begin{frame}{Structure of a Beamer document} 45 \includegraphics[scale=0.35]{img/beamer.png} 46 \end{frame} 47 48 \begin{frame}{The \texttt{frame} environment} 49 \texttt{\bs begin\{frame\}[options]\{Title\} \,\dots\, \bs end\{frame\}} 50 51 \vspace{0.5cm} 52 Useful options: 53 \begin{itemize} 54 \item \texttt{plain}: no bars on bottom or side 55 \item \texttt{shrink}: content is shrunk to fit in the slide 56 \item \texttt{fragile}: when you have \texttt{tikzpicture}, 57 \texttt{listings} or similar 58 \end{itemize} 59 \end{frame} 60 61 \begin{frame}{Basic animations} 62 \begin{itemize} 63 \item \texttt{\bs pause} for a simple break 64 65 \vspace{0.3cm} 66 \item \texttt{\bs only<start-(end)>\{\emph{stuff}\}} to show 67 \emph{\texttt{stuff}} only on some slides 68 69 Shortcut for lists: \texttt{\bs item<\dots>} or 70 \texttt{\bs begin\{itemize\}[<+->]} 71 72 \vspace{0.3cm} 73 \item Optional: 74 \texttt{\bs setbeamercovered\{transparent\}} (see end of slides) 75 76 \vspace{0.3cm} 77 \item \texttt{\bs uncover<\dots>} does not take space when invisible 78 \end{itemize} 79 \end{frame} 80 81 \begin{frame}{Theorems and lists} 82 \begin{theorem} This is a Theorem \end{theorem} 83 \begin{proof} With proof \end{proof} 84 85 \begin{itemize} 86 \item \texttt{theorem}, \texttt{proof} and \texttt{definition} already 87 included with beamer. 88 \item Define new theorems as usual (they get a box automatically) 89 \end{itemize} 90 \end{frame} 91 92 \begin{frame}[fragile]{Custom blocks} 93 94 { 95 \setbeamercolor{block title}{fg=blue,bg=green} 96 \setbeamercolor{block body}{fg=black,bg=pink!50} 97 \begin{block}{A custom block, with ugly colors} 98 \begin{verbatim} 99 { 100 \setbeamercolor{block title}{fg=blue,bg=green} 101 \setbeamercolor{block body}{fg=black,bg=pink!50} 102 103 \begin{block}{A custom block, with ugly colors} 104 ... 105 \end{block} 106 } 107 \end{verbatim} 108 \end{block} 109 } 110 \end{frame} 111 112 113 \begin{frame}{Multiple columns} 114 \begin{columns} 115 \column{0.3\textwidth} 116 \texttt{\bs begin\{columns\}} 117 118 \texttt{\qquad\bs column\{\emph{width}\}} 119 120 \texttt{\qquad(stuff)} 121 122 \texttt{\qquad\bs column\{\emph{width}\}} 123 124 \texttt{\qquad(more stuff)} 125 126 \texttt{\qquad\qquad\vdots} 127 128 \texttt{\bs end\{columns\}} 129 \column{0.7\textwidth} 130 \begin{itemize} 131 \item \texttt{\emph{width}} is a length (example: 132 \texttt{0.7\bs textwidth}) 133 \item Example: picture on the left, text on the right 134 \item Not specific to Beamer 135 \item Alternative: \texttt{tabular} 136 \end{itemize} 137 \end{columns} 138 139 \end{frame} 140 141 \begin{frame}{Some advice} 142 \begin{itemize} 143 \item Do not prepare too many slides (1-2 minutes per slide) 144 \item Do not write too much in each slide (split if necessary) 145 \item Pictures and \texttt{itemize}s are great, sentences are not 146 \item Animations are ok (but are they worth the effort?) 147 \end{itemize} 148 \end{frame} 149 150 \begin{frame}{Examples} 151 Three examples will follow: 152 \begin{itemize} 153 \item A horrible slide 154 \item A better slide with the same content 155 \item A better better slide that took a little more time to write 156 \end{itemize} 157 \end{frame} 158 159 \begin{frame}{Diophantine equations (bad)} 160 Diophantine equations are a very old problem, dating back to Diophantus of 161 Alexandria (III century A.D.). 162 163 Despite this, they are still today a very hard problem, and there is 164 no general method or algorithm to solve them. 165 166 A notable example is \emph{Fermat's Last Theorem}, stated for the first time 167 in 1637 but proved to be true only in 1995, after more than 350 years! 168 \end{frame} 169 170 171 \begin{frame}{Diophantine Equations (better)} 172 \begin{itemize} 173 \item Very old problem 174 175 \vspace{0.3cm} 176 \item Very simple formulation, but very hard to solve! 177 178 \vspace{0.3cm} 179 \item ``Fermat's Last Theorem'': stated in 1637 - proved in 1995 180 \end{itemize} 181 \end{frame} 182 183 \setbeamercovered{transparent} 184 \begin{frame}{Diophantine Equations (better better)} 185 \begin{columns} 186 \column{0.45\textwidth} 187 \begin{figure} 188 \begin{center} 189 \includegraphics[scale=0.2]{img/diophantus.jpg} 190 {\footnotesize Diophantus of Alexandria\\ (III century A.D.)} 191 \end{center} 192 \end{figure} 193 \column{0.55\textwidth} 194 \begin{itemize} 195 \item<1-> Very old problem 196 \item<2-> Very simple formulation, but very hard to solve! 197 \item<3-> \emph{Fermat's Last Theorem}: stated in 1637 - proved in 1995 198 \end{itemize} 199 \end{columns} 200 \end{frame} 201 202 203 \end{document}