-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.tex
362 lines (264 loc) · 10.2 KB
/
main.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
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
% Welcome! This is the unofficial University of Udine beamer template.
% See README.md for more informations about this template.
% This style has been developed following the "Manuale di Stile"
% (Style Manual) of the University of Udine. You can find the
% manual here: https://www.uniud.it/it/ateneo-uniud/ateneo-uniud/identita-visiva/manuali-immagine-stile/manuale-stile
% Note: for some reason, the RGB values specified in the manual
% do NOT render correctly in Beamer, so they have been redefined
% for this document using the high level chromo-optic deep neural
% quantistic technology offered by Microsoft Paint's color picker.
% We defined four theme colors: UniBrown, UniBlue, UniGold
% and UniOrange. For example, to write some uniud-brownish
% text, just use: \textcolor{UniBrown}{Hello!}
% Note that [usenames,dvipsnames] is MANDATORY due to compatibility
% issues between tikz and xcolor packages.
\documentclass[usenames,dvipsnames]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{verbatim}
\usetheme{uniud}
%%% Bibliography
\usepackage[style=authoryear,backend=biber]{biblatex}
\addbibresource{bibliography.bib}
% Author names in publication list are consistent
% i.e. name1 surname1, name2 surname2
% See https://tex.stackexchange.com/questions/106914/biblatex-does-not-reverse-the-first-and-last-names-of-the-second-author
\DeclareNameAlias{author}{first-last}
%%% Suppress biblatex annoying warning
\usepackage{silence}
\WarningFilter{biblatex}{Patching footnotes failed}
%%% Some useful commands
% pdf-friendly newline in links
\newcommand{\pdfnewline}{\texorpdfstring{\newline}{ }}
% Fill the vertical space in a slide (to put text at the bottom)
\newcommand{\framefill}{\vskip0pt plus 1filll}
\title[University of Udine Unofficial Beamer Theme]{On The Explosion of Large Death Stars}
\date[May 1977]{May 25, 1977}
\author[Luke Skywalker]{
Luke Skywalker, Ph.D.
\pdfnewline
\texttt{luke.skywalker@uniud.it}
}
\institute{Department of Physics, University of Udine}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{Outline}
\tableofcontents
\end{frame}
\section{Before you start}
\begin{frame}{Overleaf users}
\begin{alertblock}{Warning}
You can ignore this slide if you're \textbf{not} working with Overleaf.
\end{alertblock}
\vskip 0.5cm
Overleaf, Beamer and Biber do not always get along well together. For this reason, if you make a mistake while writing this presentation, in the drop-down error message you'll \textbf{always} get Biber-related error messages.
\vskip 0.5cm
Luckily, you just have to click on ``\texttt{go to first error/warning}'' and the UI will scroll to the line containing your mistake.
\end{frame}
\begin{frame}[fragile]
\frametitle{Compiling}
\begin{alertblock}{Warning}
You can ignore this slide if you're working with Overleaf.
\end{alertblock}
To compile this deck you'll need the \texttt{biber} package. Probably your \TeX editor already supports it; if not, you will easily find online the instructions to install it.
\vskip 0.5cm
If you're not using an editor, you can compile this presentation using the command line by running:
\begin{verbatim}
$ pdflatex main.tex
$ biber main.bcf
$ pdflatex main.tex
$ pdflatex main.tex
\end{verbatim}
\end{frame}
\section{Colors}
\begin{frame}{Colors}
For this template we defined four colors, following the Style Manual of the University of Udine:
\begin{itemize}
\item \textcolor{white}{\marker{\texttt{UniOrange}}}
\item \textcolor{white}{\marker[UniBlue]{\texttt{UniBlue}}}
\item \textcolor{white}{\marker[UniBrown]{\texttt{UniBrown}}}
\item \textcolor{white}{\marker[UniGold]{\texttt{UniGold}}}
\end{itemize}
\vskip 0.5cm
You can use these colors as you want in your presentation. For example, you can \textbf{\textcolor{UniGold}{color the text in gold}} by writing \texttt{\textbackslash\{UniGold\}\{my gold text\}}.
\vskip 0.5cm
We also redefined many of the most common \LaTeX{} and Beamer commands, like \texttt{itemize}, \texttt{block}, etc. You will see samples of these commands in the following slides.
\end{frame}
\section{Blocks}
\begin{frame}
\frametitle{This is a page with a title and a subtitle}
\framesubtitle{And also some blocks.}
\begin{block}{Goal of the mission}
Shoot in the Death Star's exhaust port and destroy it before the it can fire on the Rebel base.
\end{block}
\begin{alertblock}{Take care!}
TIE Fighters may chase you while approaching the target.
\end{alertblock}
\begin{exampleblock}{Use the force you must}
Remember your training with Obi-Wan, and use the Force to make the perfect shoot.
\end{exampleblock}
\end{frame}
\section{Enumerates, itemizes and description}
\subsection{Enumerates and itemizes}
\begin{frame}{Enumerates and itemizes}
This is an example of \texttt{itemize}.
\begin{itemize}
\item A long time ago in a galaxy far, far away...
\end{itemize}
And this is an example of \texttt{enumerate}.
\begin{enumerate}
\item Go to the Death Star.
\item Find the exhaust port.
\item Make the perfect shot.
\item Become an hero.
\end{enumerate}
\end{frame}
\subsection{Description}
\begin{frame}[fragile]
\frametitle{Description}
This is an example of \texttt{description}.
\begin{description}
\item<2->[Vader] \emph{I am} your father.
\item<1->[Luke] No. No! That's not true! \textbf{That's impossible!}
\end{description}
\begin{uncoverenv}<3>
\vskip 0.5cm
And while we're here, let's have a look to \texttt{verbatim} as well, to see how we made items appear in arbitrary order:
\vskip 0.5cm
\begin{verbatim}
\begin{description}
\item<2->[This is the first item] one
\item<1->[This is the second item] two
\end{description}
\end{verbatim}
\end{uncoverenv}
\end{frame}
\section{Maths}
\begin{frame}{Maths}
A formula will look like this:
\begin{center}
$x^2 + y^2 = z^2$
\end{center}
You can number equations as well:
\begin{equation}
1+1=2
\end{equation}
\begin{equation}
1+1=2 \tag{custom label!}
\end{equation}
\vskip 0.5cm
If you want to use the default \LaTeX{} math fonts, just go to \texttt{beamerfontthemeuniud.sty} and uncomment the line containing `\texttt{\textbackslash usefonttheme[onlymath]\{serif\}}'.
\end{frame}
\begin{frame}{Theorems}
The usual \texttt{theorem}, \texttt{corollary}, \texttt{definition}, \texttt{definitions}, \texttt{fact}, \texttt{example} and \texttt{examples} blocks are available as well.
\begin{theorem}
There exists an infinite set.
\end{theorem}
\begin{proof}
This follows from the axiom of infinity.
\end{proof}
\begin{example}[Natural Numbers]
The set of natural numbers is infinite.
\end{example}
\end{frame}
\section{Other blocks}
\begin{frame}{Other blocks}
Here we display examples of \texttt{abstract}, \texttt{verse}, \texttt{quotation}, and \texttt{quote}.
\vskip 0.5cm
\begin{abstract}
This is an abstract.
\end{abstract}
\begin{verse}
This is a verse.
\end{verse}
\begin{quotation}
This is a quotation.
\raggedleft -Han Solo
\end{quotation}
\begin{quote}
A quote this is.
\raggedleft -Yoda
\end{quote}
\end{frame}
\section{Bibliography and Publications}
\begin{frame}[fragile]
\frametitle{Bibliography}
You can cite an article
\begin{itemize}
\item normally using \texttt{\textbackslash cite}, e.g.: (\cite{article1})
\item or display the full citation using \texttt{\textbackslash fullcite}, e.g.: \fullcite{article1}
\end{itemize}
\vskip 0.5cm
Look at the code of the following slide to see how to automatically split the bibliography on many slides. You can also use \texttt{\textbackslash nocite\{*\}} to display the non-cited publications as well.
\end{frame}
\begin{frame}[t,allowframebreaks]
\frametitle{Bibliography}
\nocite{*} % will display the non-cited publications as well. Useful for a publication list.
\printbibliography
\end{frame}
\section{Bonus Commands}
\begin{frame}[fragile]
\frametitle{Framecard}
You can display a frame with a colored background and a huge text in the center using the command \texttt{\textbackslash framecard}.
\vskip 0.5cm
For example, you can write:
\begin{verbatim}
\framecard{A SECTION\\TITLE}
\end{verbatim}
This will display a frame with a orange background and the phrase "A SECTION TITTLE" in the center. You can also use a custom color with \texttt{\textbackslash framecard}:
\begin{verbatim}
\framecard{A SECTION\\TITLE}
\framecard[UniBlue]{A SECTION TITLE\\
WITH A CUSTOM COLOR}
\end{verbatim}
You can see the results of the commands above in the following slides.
\end{frame}
\framecard{A SECTION\\TITLE}
\framecard[UniBlue]{A SECTION TITLE\\WITH A CUSTOM COLOR}
\begin{frame}[fragile]
\frametitle{Framepic}
You can display a frame with a background image using the command \texttt{\textbackslash framepic}. The image will be \textbf{adapted vertically} to fit the the frame.
For example, you can write:
\begin{verbatim}
\framepic{graphics/darth}{
\framefill
\textcolor{white}{Luke,\\I am your supervisor}
\vskip 0.5cm
}
\end{verbatim}
Alternatively, to make the background 50\% transparent, you can write \texttt{\textbackslash framepic[0.5]\{graphics/darth\}...}
You can see the results of the commands above in the following slides.
\end{frame}
\framepic{graphics/darth}{
\framefill
\textcolor{white}{Luke,\\I am your supervisor}
\vskip 0.5cm
}
\framepic[0.5]{graphics/darth}{
\vfill
\begin{flushright}
\textcolor{red}{\textbf{Right-aligned text with\\Semi-transparent background}}
\end{flushright}
}
\begin{frame}[t,fragile,allowframebreaks]
\frametitle{Other bonus commands}
We provide two other bonus commands:
\begin{description}
\item[\texttt{pdfnewline}] you can use \texttt{\textbackslash pdfnewline} to avoid the annoying \texttt{hyperref} related warnings when using newlines in the document's title, author, etc. For example, in this presentation the author is defined as:
\begin{verbatim}
\author[Luke Skywalker]{
Luke Skywalker, Ph.D.
\pdfnewline
\texttt{luke.skywalker@uniud.it}
}
\end{verbatim}
\item[\texttt{marker}] you can use \texttt{\textbackslash marker} to highlight some text. The default color is \marker{orange}, but you can also \marker[UniBlue]{use a custom color}. For example:
\begin{verbatim}
\marker{Default color}
\marker[UniBlue]{Custom Color}
\end{verbatim}
\item[\texttt{framefill}] you can use \texttt{\textbackslash framefill} to put the text at the bottom of a slide by filling all the vertical space.
\end{description}
\end{frame}
\end{document}