-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_EN.tex
1149 lines (860 loc) · 48.4 KB
/
main_EN.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
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Presentation template and short Beamer example/tutorial.
%% Vincent Labatut 2017-19 <[email protected]>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% setup Beamer
\documentclass[10pt, % default is 11pt, use 10pt for more compact slides
% handout, % collapse all overlays (=animations) and video-invert console text
english, % presentation language (theme supports only french & english)
xcolor=table, % colors in the tables
envcountsect, % include section number in theorem numbers
aspectratio=43 % format: only 16:9 (169) and 4:3 (43) are supported
]{beamer}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% setup the theme
% \usepackage{au/sty/beamerthemeAU} % no option at all
\usepackage[light]{au/sty/beamerthemeAU} % the "light" option only changes the title and section pages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% setup side notes
\usepackage{pgfpages} % comment all 3 below lines to hide notes
%\setbeameroption{show notes} % alternate content and note slides
%\setbeameroption{show only notes} % only note slides
%\setbeameroption{show notes on second screen=right} % dualscreen: right, left, top, bottom
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% name of the biblatex file
\addbibresource{biblio.bib}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% title and subtitle of the presentation (the latter is optional)
\title[Short Title] % leave empty for no title in footer
{Here is a presentation with a very long title aiming at filling several lines in the title page}
\subtitle{It is also possible to define a relatively long subtitle such as this one} % leave empty if no subtitle
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% date of the presentation (leave empty for no date, default is today)
\date[Short date] % leave empty for no date in footer
{\today}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% authors and their affiliations (the latter is optional)
\author[Short author] % leave empty for no author in footer
{FirstnameA~LastnameA\inst{1} \and \underline{FirstnameB~LastnameB}\inst{2} \and FirstnameC~LastnameC\textsuperscript{1,2}}
\institute[] % (short affiliation not used in this theme)
{\inst{1} Computer Science Lab, Avignon University -- LIA EA 4128 \texttt{\{firstname.lastname\}@univ-avignon.fr}
\and \inst{2} Institute of Disruptive Innovation, University of Excellence \texttt{\{firstname.lastname\}@univ-excell.fr}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% optional: additional logo (ex. lab)
\titlegraphic{\includegraphics[width=3cm,]{images/lia_logo.pdf}}
% if you want several logos, put them in a box
% \titlegraphic{\parbox{3cm}{\hspace {0.5cm}\includegraphics[width=2.5cm,]{images/ceri_logo.pdf}\newline\includegraphics[width=3cm,]{images/lia_logo.pdf}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%% title page
\begin{frame}
\titlepage
\end{frame}
%%% presentation
\begin{frame}
\label{frm:first}
\frametitle{Presentation}
This is an unofficial adaptation of the official template of \href{http://univ-avignon.fr/}{Avignon Université}, originally proposed only in \href{https://en.wikipedia.org/wiki/Microsoft\_PowerPoint}{MS PowerPoint} and \href{https://en.wikipedia.org/wiki/LibreOffice\#Included\_applications}{LO Impress} formats at the following address (authentication required):
\url{https://e-doc.univ-avignon.fr/maison-de-la-communication/charte-graphique-de-luniversite/}
\vspace{0.25cm}
This presentation file also illustrates how to use basic \href{https://en.wikipedia.org/wiki/Beamer_(LaTeX)}{Beamer} features, assuming the reader already knows how to use \LaTeX{}. A more complete (and general) \LaTeX{} tutorial (in French) can be found here:
\url{https://www.overleaf.com/latex/templates/modele-rapport-uapv/pdbgdpzsgwrt}
It is also a report template for the same institution.
\vspace{0.25cm}
The \LaTeX{} source code contains additional details under the form of comments.
\vspace{0.25cm}
A French version of these slides can be produced by compiling \texttt{main\_FR.tex} instead of \texttt{main\_EN.tex}.
\end{frame}
%%% outline of the presentation
\begin{frame}{Outline}
\tableofcontents
% [hideallsubsections] % un-comment this line to hide sub-sections
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Basics Features}
\label{sec:basics}
\sectionframe
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Class, Pages \& Sections}
%%%
\begin{frame}
\frametitle{Beamer Class \& AU Theme}
The original Beamer class takes a number of options, among which:
\begin{itemize}
\item \texttt{handout}: document rendered for printing (disables overlays, dark backgrounds, etc.);
\item regular font size: default is \texttt{11pt};
\end{itemize}
\vspace{0.25cm}
The AU Beamer theme proposed here, \texttt{beamerthemeAU}, also has an option \texttt{light}, which changes the background of the title and section pages.
\vspace{0.25cm}
The \textit{aspect ratio} of the slides can be controled through parameter \texttt{aspectratio}. This theme supports two options: \texttt{43} (4:3, the default value), and \texttt{169} (16:9).
\end{frame}
%%%
\begin{frame}
\frametitle{Pages : It is possible to have long titles spanning two lines, like here}
In Beamer, one page of the presentation is called a \textit{frame}, and can be defined through the \texttt{frame} environment.
\vspace{0.25cm}
The title and subtitle of a page are set using the \texttt{\textbackslash{}title} and \texttt{\textbackslash{}subtitle} commands, respectively. The subtitle can be omitted, as in this page. See next page for an example of subtitle.
\vspace{0.25cm}
The \texttt{frame} environment has a number of options, including:
\begin{itemize}
\item \texttt{plain}: to remove all decorations;
\item \texttt{allowframebreaks}: to split automatically long content over several pages (eg. bibliography, Section~\ref{sec:biblio});
% \item \texttt{shrink}: compact text for verbose pages; % this theme does not support this option
\item \texttt{fragile}: when using verbatim environments (eg. \texttt{listings}, Page~\ref{frm:sourcecode});
\item Vertical alignment: \texttt{c} (center), \texttt{t} (top) or \texttt{b} (bottom).
\end{itemize}
\end{frame}
%%%
\begin{frame}
\frametitle{Sections}
\framesubtitle{It is possible to add a subtitle below the title, which can also span two lines if needed}
Sections and subsections are handled like in regular \LaTeX{} documents, i.e. using the \texttt{\textbackslash{}section} and \texttt{\textbackslash{}subsection} commands, respectively.
\vspace{0.25cm}
Using the command \texttt{\textbackslash{}tableofcontents}, it is possible to automatically fill a page with the table of contents. The option \texttt{hideallsubsections} allows including only sections (and not subsections).
\vspace{0.25cm}
The command \texttt{\textbackslash{}sectionframe} can be used to insert a page containing only the title of the current section, eg. Section~\ref{sec:basics}.
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Text Formatting}
%%%
\begin{frame}
\frametitle{Text Formatting}
\framesubtitle{Standard Commands}
Like in regular \LaTeX{} documents, it is possible to define \textit{italic} (\texttt{\textbackslash{}textit}) or \textbf{bold} (\texttt{\textbackslash{}textbf}) text, or \textit{\textbf{both}} (by combining these commands).
\vspace{0.25cm}
One can also use a \texttt{monospaced} font (\texttt{\textbackslash{}texttt}).
\vspace{0.25cm}
It is also possible to use the \texttt{\textbackslash{}alert} command, which is specific to Beamer, in order to add some color, like here: \alert{Alert!}
% paragraphs
% to leave space between paragraphs: \smallskip, \medskip, & \bigskip
\end{frame}
%%%
\begin{frame}
\frametitle{Text Formatting}
\framesubtitle{Theme-Specific Commands}
Command \texttt{\textbackslash{}textsc}, which allows formatting the text using smaller upper-case letters (a.k.a. \textit{small caps}) has no effect, because the font used by the theme does not support small caps. However, the theme proposes command \texttt{\textbackslash{}fauxsc} in order to simulate this effect: \fauxsc{This is how the text looks like when using this command}.
\vspace{0.25cm}
The middle dot used in French for gender-inclusive writting can be obtained thanks to command \texttt{\textbackslash{}textperiodcentered}, or the shorter \texttt{\textbackslash{}tpc}. For instance: chercheur\textperiodcentered{}se\tpc{}s. The user can alternatively directly insert the character by copying and pasting this instance: ``·''.
\vspace{0.25cm}
The theme contains commands for matching \textit{check} and \textit{cross marks}: \cmark{} (\texttt{\textbackslash{}cmark\{\}}) and \xmark{} (\texttt{\textbackslash{}xmark\{\}}).
\end{frame}
%%%
\begin{frame}
\frametitle{Quotations}
One can quote text using the \texttt{verse} environment, e.g.
\begin{verse}
Quotation, n: The act of repeating erroneously the words of another. \\
\vspace{-0.5cm}
\begin{flushright}--A. Bierce\end{flushright}
\end{verse}
Or the \texttt{quote} environment:
\begin{quote}
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life. \\
\begin{flushright}--T. Pratchett\end{flushright}
\end{quote}
\end{frame}
%%%
\begin{frame}
\frametitle{Mathematical Expressions}
\textit{In-line} equations are defined with \texttt{\$}, e.g. \texttt{\$f(x) = ax + b\$} is rendered as $f(x)=ax + b$.
\vspace{0.25cm}
\textit{Off-line} equations, which are numbered, are inserted using the \texttt{equation} environment, e.g.
\begin{equation}
\label{equ:affine}
f(x) = ax + b.
\end{equation}
Command \texttt{\textbackslash{}nonumber} prevents the numbering of the off-line equations, e.g.
\begin{equation}
\label{equ:rayleigh}
r(\mathbf{x},\mathbf{M}) = \frac{\mathbf{x}^\top \mathbf{M} \mathbf{x}}{\mathbf{x}^\top \mathbf{x}}. \nonumber
\end{equation}
% Binomial coefficient:
% \binom{n}{k}
% Parentheses:
% Sizes: \big \Big \bigg \Bigg
% Types: ( ) [ ] \langle \rangle | \|
%
% See: https://www.overleaf.com/learn/latex/Brackets_and_Parentheses
% Symbols
% Empty set: \varnothing
%
% See: https://oeis.org/wiki/List_of_LaTeX_mathematical_symbols
% Formatting
% Field: \mathbb{}
% Gras: \mathbf{}
% Caligraphed: \mathcal{}
% Cases
% \begin{cases}
% 1 & \text{if } x > 3 \\
% 0 & \text{otherwise}
% \end{cases}
% Style
% Offline: \displaystyle
% Online: \textstyle
% Tight: \scriptstyle
% Tighter: \scriptscriptstyle
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Columns, Blocks \& Lists}
%%%%
\begin{frame}
\frametitle{Columns}
\begin{columns}[T,totalwidth=\textwidth] %
\begin{column}{0.33\textwidth}
Using the \texttt{columns} and \texttt{column} environments (cf. this page's source code), it is possible to split a page in several independent columns.
This can ease defining the structure of the page.
\end{column}
\begin{column}{0.33\textwidth}
For \texttt{columns}, options \texttt{t}, \texttt{b}, \texttt{c}, \texttt{T} control the vertical alignment, and \texttt{totalwidth} the global width (see \href{https://tex.stackexchange.com/a/51509/31360}{this page} for more details).
The width of each column can be specified through the parameter of \texttt{column}.
\end{column}
\begin{column}{0.33\textwidth}
It is possible to put text, but also images in columns.
\begin{figure}[H]
\centering
% for some XeTeX-related reason, it is necessary to use the \XeTeXLinkBox command when associating a hyperlink to an image
\href{http://univ-avignon.fr}{\XeTeXLinkBox{\includegraphics[scale=1]{au/backgrounds/au_col_logo.pdf}}}
\vspace{-0.5cm}
\caption{Logo of Avignon Université}
\label{fig:AUlogo}
\end{figure}
\end{column}
\end{columns}
% % empty column template
% \begin{columns}[T,totalwidth=\textwidth] %
% \begin{column}{0.5\textwidth}
% xxxx
% \end{column}
% \begin{column}{0.5\textwidth}
% xxxx
% \end{column}
% \end{columns}
\end{frame}
%%%%
\begin{frame}
\frametitle{Blocks}
\label{frm:blocks}
Blocks are specific to Beamer, and allow highlighting points of interest. There are three types of blocks, each one withi its own colors:
\begin{block}{Regular}
\texttt{block} environment: used most of the time.
\end{block}
\begin{alertblock}{Alert}
\texttt{alertblock} environment: to highlight particularly important points.
\end{alertblock}
\begin{exampleblock}{\smaller[2] Example}
\smaller[2]
\texttt{exampleblock} environment: to show some concrete illustrations of the presented concepts.
\end{exampleblock}
One can reduce block size by using commands changing the font size, e.g. \texttt{\textbackslash{}smaller[2]}, as above with the example block (see source code).
in order to center a formula in a block
% \begin{block}{My block}
% My formula is:
% \centering
% $y = ax + b$,
% \raggedright
% and here is the rest of the text.
% \end{block}
% or just use an equation environment
% convenient commands
% bar on top of some expression: \overline (betterm than \bar)
% list of math symbols: https://oeis.org/wiki/List_of_LaTeX_mathematical_symbols
\end{frame}
%%%%
\begin{frame}
\frametitle{Lists}
Lists are defined as in \LaTeX{} documents, using the \texttt{\textbackslash{}item} command and one of the three existing environments:
\begin{columns}[T,onlytextwidth]
\begin{column}{0.33\textwidth}
\texttt{itemize}:
\begin{itemize}
\item Rock;
\begin{itemize}
\item Paper;
\begin{itemize}
\item Scissors.
\end{itemize}
\end{itemize}
\end{itemize}
\end{column}
\begin{column}{0.33\textwidth}
\texttt{enumerate}:
\begin{enumerate}
\item First;
\begin{enumerate}
\item Second;
\begin{enumerate}
\item Third.
\end{enumerate}
\end{enumerate}
\end{enumerate}
\end{column}
\begin{column}{0.33\textwidth}
\texttt{description}:
\begin{description}
\item[Yin] Yang.
\item[Hot] Cold.
\end{description}
\end{column}
\end{columns}
% to control the space between the list items
% \begin{itemize}
% \setlength{\itemsep}{-0.1cm} % for the first level only, must be repeated at each level
% \item Bla bla bla.
% \end{itemize}
% to change the starting number in a numbered list
% \begin{enumerate}
% \setcounter{enumi}{3} % the list will start at number 4
% \item Bla bla bla.
% \end{enumerate}
\vspace{0.25cm}
Note the use of the \texttt{columns} and \texttt{column} environments in this page.
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Side Notes}
%%%%
\begin{frame}
\frametitle{Side Notes}
\framesubtitle{Defining Notes}
It is possible to associate textual notes to each slide, using the \texttt{\textbackslash{}note} command and specifying a comment as parameter. Notes can be defined:
\note{This is a note. It appears first in the corresponding text slide. }
\begin{itemize}
\item \textit{Inside} a \texttt{frame} environment: all notes contained in the same frame are gathered on the same text slide.
\note[item]{This note appears as an item in a list placed at the end of the text slide.}
\item \textit{Outside} frames: each note constitutes a single text slide.
\end{itemize}
\note{This note appears second. }
\vspace{0.25cm}
\note[item]{This is a second item in the list.}
The \texttt{\textbackslash{}note} command has two options \texttt{item} (inside frames) and \texttt{itemize} (outside), both allowing to automatically organize comments as a list in the produced text slide. See the notes associated to this page.
\note[item]{And a third list item.}
\note{We finish with this comment, which will be placed \textit{before} the list. Note that notes are compatible with overlays, see Section~\ref{sec:animations}.}
\end{frame}
%%%%
\begin{frame}
\label{frm:dispnotes}
\frametitle{Side Notes}
\framesubtitle{Displaying Notes}
\vspace{0.25cm}
A number of Beamer options allow controlling how notes are shown:
\begin{itemize}
\item \texttt{hide notes} (default): notes are not shown in the slides.
\item \texttt{show notes}: shows notes in additional text slides inserted between regular slides.
\item \texttt{show only notes}: shows only these additional text slides, and not the regular ones.
\item \texttt{show notes on second screen=right} (or \texttt{left}, \texttt{top}, \texttt{bottom}): take advantage of package \href{https://ctan.org/pkg/pdfpages?lang=en}{\texttt{pgfpages}} to enlarge the slides so that notes can be shown on a second screen (and therefore hidden to the audience). An appropriate software is then required to display the presentation, such as \href{http://impressive.sourceforge.net/}{Impress!ve} or \href{http://dspdfviewer.danny-edel.de/}{Dual-Screen PDF Viewer}.
\end{itemize}
\textbf{Note:} You can show the notes associated to the previous slide by setting the option accordingly at the begining of this document.
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Floats \& Cross-References}
\sectionframe
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Figures \& Tables}
%%%%
\begin{frame}
\frametitle{Figures}
Figures can be inserted using the \texttt{figure} environment, as in regular \LaTeX{} documents.
\begin{figure}[H]
\centering
\includegraphics[scale=0.05]{images/lia_logo.pdf}
\vspace{-0.5cm}
\caption{Logo of the Computer Science Lab of Avignon Université}
\label{fig:LIAlogo}
\end{figure}
\vspace{0.25cm}
For an image stored in a \textit{file} (JPEG, BMP, PDF, PNG, etc.), as above, one uses the \texttt{\textbackslash{}includegraphics} command.
% vertical bar to separate side-by-side figures (see p.\label{sli:Diagrammes} for an example)
% \rulesep
% To define the position of a figure using absolute coordinates:
% \begin{tikzpicture}[remember picture,overlay]
% \node[xshift=0cm,yshift=-1.5cm] at (current page.center) {\resizebox{0.8\linewidth}{!}{\input{images/02/shakespeare_inter.tex}}};
% \end{tikzpicture}
% see also: https://tex.stackexchange.com/a/89592/31360
\end{frame}
%%%%
\begin{frame}
\label{sli:Diagrams}
\frametitle{Diagrams}
Besides image files, it is also possible to insert \textit{diagrams} into figures, thanks to the \href{https://ctan.org/pkg/pgf?lang=en}{\texttt{TikZ}} package:
\vspace{-0.20cm}
\begin{figure}[H]
\centering
\resizebox{0.35\linewidth}{!}{\input{diagrams/graph.tex}}
\hspace{0.25cm}\rulesep\hspace{0.25cm}
\resizebox{0.45\linewidth}{!}{\input{diagrams/classdiag.tex}}
\vspace{-0.10cm}
\caption{Examples of \textit{graph} (left) and \textit{class diagram} (right).}
\label{fig:diagrams}
\end{figure}
\vspace{-0.50cm}
The left diagram was designed manually, whereas the right one was produced using \href{http://dia-installer.de}{Dia}, an open-source WYSIWYG software able to export diagrams as \texttt{TikZ} code.
% force a diagram to be only as large as the slide
% \resizebox{\textwidth}{!}{\input{mydiagram.tex}}
% in order to draw graphs (networks): tikz-network package
% https://ctan.org/pkg/tikz-network?lang=en
\end{frame}
%%%%
\begin{frame}
\frametitle{Tables}
Similarly to figures, tables can be inserted like in regular \LaTeX{} documents, using the \texttt{table} environment.
\begin{table}[H]
\centering
\rowcolors{1}{fgVeryLightRed}{}
\begin{tabular}{l r}
\hline
\rowcolor{fgLightRed}
\textbf{City} & \textbf{Population} \\
\hline
Avignon, FR & 92,130 \\
Avignon, QC & 15,246 \\
Avignonet-Lauragais, FR & 1,443 \\
Avignon-lès-Saint-Claude, FR & 390 \\
Avignonet, FR & 194 \\
\hline
\end{tabular}
\caption{Population of a selection of cities.}
\label{tab:population}
\end{table}
\vspace{-0.25cm}
If the table is too wide, it can be put in a \texttt{\textbackslash{}resizebox} command, e.g. \texttt{\textbackslash{}resizebox\{\textbackslash{}textwidth\}\{!\}\{<mytable>\}}.
% force the table to be only as large as the slide
% \resizebox{\textwidth}{!}{%
% \rowcolors{1}{fgVeryLightRed}{}
% \begin{tabular}{...}
% \hline
% \rowcolor{fgLightRed}
% ...
% \hline
% ...
% \hline
% \end{tabular}
% }
% partial horizontal line (covering only certain colums):
% \cline{2-6} % covers columns 2 to 6
% warning: changing the color of the row or cell is affected by this type of line
% cell spanning multiple columns
% \multicolumn{nbr of cols}{alignment}{cell content}
% cell spanning multiple rows
% \multirow{nbr of rows}{width (* for current width)}{cell content}
% if the first value is negative, the cell spans upwards; which can be usefull when adding background color to the table. see https://tex.stackexchange.com/a/171785/31360
\vspace{0.25cm}
\textbf{Note:} Some argue that one can directly use the \texttt{tabular} environment, as captions are not really necessary in such presentations.
\end{frame}
%%%%
\begin{frame}
\frametitle{CSV-based Tables}
Instead of manually defining the content of a table, it is possible to automatically and dynamically retrieve it from a CSV file, thanks to the \href{https://ctan.org/pkg/csvsimple?lang=en}{\texttt{csvsimple}} package:
\begin{table}[H]
\centering
\rowcolors{1}{fgVeryLightRed}{}
\begin{tabular}{l l l l r}
\hline
\rowcolor{fgLightRed}
\textbf{Given Name} & \textbf{Patronymic} & \textbf{Family Name} & \textbf{Sex} & \textbf{Age} \\
\hline
\csvreader[head to column names, late after line=\\]
{data/karamazov.csv}{}
{\firstname & \middlename & \lastname & \sex & \age}
\hline
\end{tabular}
\caption{Table retrieved from CSV file \texttt{data/karamazov.csv}.}
\label{tab:csv}
\end{table}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Algorithms \& Listings}
%%%%
\begin{frame}
\frametitle{Algorithms}
It is possible to present algorithms as pseudo-code, thanks to the \texttt{algorithm2e} environment based on the \href{https://ctan.org/pkg/algorithm2e?lang=en}{\texttt{algorithm2e}} package:
\begin{algorithm2e}[H]
\DontPrintSemicolon % hide semi colons when rendering
\KwData{$\ell$: list} % algorithm inputs
\KwResult{$m$: maximum} % algorithm outputs
\BlankLine % skip a line
\tcp{Initialization} % comment
$m \leftarrow -\infty$\; % basic instruction: don't forget the ending \;
\BlankLine
\tcp{Main loop}
\For{$i \leftarrow 1$ to length$(\ell)$}{%
\If{$\ell[i] > m$}{%
$m \leftarrow \ell[i]$\; \label{lne:example}
}
}
% there are many commands for various types of blocks,
% see the package documentation for more details
% https://ctan.org/pkg/algorithm2e?lang=en
\caption{Compute the maximum of a list.}
\label{alg:max}
\end{algorithm2e}
\end{frame}
%%%%
\begin{frame}[fragile]
\frametitle{Source Code}
\label{frm:sourcecode}
One can insert properly formatted source code, thanks to the \texttt{lstlisting} environment proposed in the \href{https://ctan.org/pkg/listings?lang=en}{\texttt{listings}} package:
\begin{lstlisting}[language=Java,caption={Hello World Java applet.},captionpos=b,label={lst:hello}]
// Hello.java
import javax.swing.JApplet;
import java.awt.Graphics;
public class Hello extends JApplet
{ public void paintComponent(Graphics g)
{ g.drawString("Hello: world!", 65, 95);
}
}
\end{lstlisting}
\vspace{0.25cm}
\textbf{Note:} frames containing this environment must be defined using the \texttt{fragile} option.
% To use overlays with listings (or any other verbartim environments), you must use the uncoverenv instead of the command uncover:
% \begin{uncoverenv}
% \begin{lstlisting}[...]
% ...
% \end{lstlisting}
% \end{uncoverenv}
% % to highlight a part of a listing, one must use escape codes like (*@ and @*)
% \begin{lstlisting}[language=Java, escapeinside={(*@}{@*)}]
% bla bla bla
% bla (*@ \hl{bla bla} @*)
% \end{lstlisting}
\end{frame}
%%%%
\begin{frame}[fragile]
\frametitle{File Content \& Console}
This theme includes two additional environments based on the \href{https://ctan.org/pkg/framed?lang=en}{\texttt{framed}} package.
\vspace{0.25cm}
The first one, \texttt{filetext}, is meant to display the content of some text file:
\begin{filetext}[caption={Content of some text file.},label={fil:example}]
First line in the text file; \\
second line, with some highlighting \textcolor{fgRed}{here} and \colorbox{fgRed}{there}; \\
and here's a third line.
\end{filetext}
\vspace{-0.50cm}
The second one, \texttt{consoletext}, aims at displaying text shown in some terminal or console:
\begin{consoletext}[caption={Example of command lines.},label={con:example}]
invite/>mycommand myparameter \& \\
mycommand: command not found \\
invite/>$\blacksquare$
\end{consoletext}
\vspace{-0.50cm}
{\small \textbf{Note:} like for the source code (Page~\ref{frm:sourcecode}), one must select the \texttt{fragile} option when defining a frame that uses one of these environments.}
% To use with overlays, use overlay environments instead of commands (cf. the listings slide).
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Mathematical Elements}
%%%%
\begin{frame}
\frametitle{Mathematical Floats}
Beamer contains a number of predefined environments to handle mathematical concepts: \texttt{theorem}, \texttt{corollary}, \texttt{definition}, \texttt{fact}, \texttt{example}, and \texttt{proof}. They are rendered as blocks (cf. Page~\ref{frm:blocks}):
\begin{theorem}[Jörg Neunhäuserer]
In any subset of $M = \{1, 2, ... , 2m\}$ with at least $m + 1$ elements, there are numbers $a$, $b$ such that $a$ divides $b$ \cite{Neunhauserer2013}.
\label{th:theorem}
\end{theorem}
The option \texttt{envcountsect} of the Beamer class allows including the section number in the theorem (or other similar objects) numbers, as above.
\begin{proof}
Let $\{a_1, . . . , a_{m+1}\} \in M$ and decompose $a_i = 2^{r_i} q_i$, where the $q_i$ are odd numbers. There are only $m$ odd numbers in $M$ hence one $q_i$ appears in the decomposition of two different numbers $a_i$ and $a_j$. Now $a_i$ divides $a_j$ if $a_i < a_j$.
\label{th:proof}
\end{proof}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Cross-References}
%%%
\begin{frame}
\frametitle{General Cross-References}
Cross-references work as in regular \LaTeX{} documents, i.e. using commands \texttt{\textbackslash{}label} and \texttt{\textbackslash{}ref}. For instance: Figure~\ref{fig:LIAlogo}, Table~\ref{tab:population}, Eq.(\ref{equ:affine}), Theorem~\ref{th:theorem}, Page~\ref{frm:first}, Algorithm~\ref{alg:max}, Line~\ref{lne:example} (in an algorithm), Listing~\ref{lst:hello}, File~\ref{fil:example}, Console~\ref{con:example}.
\vspace{0.25cm}
Hyperlinks are defined as in regular \LaTeX{} documents too, using package \href{https://ctan.org/pkg/hyperref?lang=en}{hyperref}, and in particular its commands \texttt{\textbackslash{}href} and \texttt{\textbackslash{}url} (e.g. Page~\ref{frm:first}).
\vspace{0.25cm}
Footnotes can be inserted using the traditional \texttt{\textbackslash{}footnote} command, like here\footnote{Some footnote.}.
\end{frame}
%%%
\begin{frame}
\frametitle{Bibliographical References}
This Beamer theme is set to use \href{https://ctan.org/pkg/biblatex?lang=en}{\texttt{BibLaTeX}} and \href{http://biblatex-biber.sourceforge.net/}{Biber} (instead of the traditional \href{http://www.bibtex.org/}{BibTeX}), which solves all sorts of diacritic-related problems (e.g. presence of accents, cedillas and such in author names or article titles).
\vspace{0.20cm}
The BibTeX file itself is defined as usual, see \texttt{biblio.bib} for an example. One can use the classic categories of bibliographic entries:
\begin{table}[H]
\small
\centering
\rowcolors{1}{fgVeryLightRed}{}
\begin{tabular}{l l r}
\hline
\rowcolor{fgLightRed}
\textbf{Nature of the reference} & \textbf{BibTeX type} & \textbf{Examples}\\
\hline
Journal article & \texttt{@Article} & \cite{Fortunato2010, Cossu2016} \\
Conference article & \texttt{@InProceedings} & \cite{Wei1989, Mauttone2008} \\
Monograph & \texttt{@Book} & \cite{Wolsey1998, Masuda2016} \\
Monograph chapter & \texttt{@InBook} & \cite{Mainzer2007a, Reichardt2009a} \\
Edited book & \texttt{@Collection} & \cite{Pastor-Satorras2003a, Brandes2005} \\
Book chapter & \texttt{@InCollection} & \cite{Danon2007, Labatut2012a} \\
Technical report & \texttt{@TechReport} & \cite{Rosvall2009a, Paraskevopoulos2013} \\
PhD thesis & \texttt{@PhDThesis} & \cite{Wong1978, Gerbaud2010} \\
\hline
\end{tabular}
\vspace{-0.25cm}
\caption{Main categories of bibliographical entries.}
\label{tab:bibtex}
\end{table}
\end{frame}
%%%
\begin{frame}
\frametitle{Short bibliographical citations}
There are various ways to cite bibliographic references with BibLaTeX.
The main ones are:
\begin{itemize}
\item The classic \texttt{\textbackslash{}cite}, or equivalently (in this specific case) \texttt{\textbackslash{}parencite}, just inserts the bibliographic code: \cite{Cossu2016};
\item Command \texttt{\textbackslash{}textcite} additionally mentions the authors' names: \textcite{Cossu2016};
\item Command \texttt{\textbackslash{}citeauthor} cites only the authors' names: \citeauthor{Cossu2016}.
\end{itemize}
\end{frame}
%%%
\begin{frame}
\frametitle{Long bibliographical citations}
It is also possible to insert full references right here:
\begin{itemize}
\item Command \texttt{\textbackslash{}fullcite} inserts the full reference right away: \fullcite{Cossu2016};
\item Command \texttt{\textbackslash{}footfullcite} does the same, but as a footnote\footfullcite{Cossu2016}.
\end{itemize}
Note that this class supports the \texttt{hal} field in BibLaTeX files, which allows referring to \href{https://hal.archives-ouvertes.fr/}{HAL}-hosted preprints (see the above example).
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Overlays \& Animations}
\label{sec:animations}
\sectionframe
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Introduction to Overlays}
%%%%
\begin{frame}
\frametitle{Notion of Overlay}
Overlays allow progressively uncovering various parts of a page, instead of showing everything at once. They are quite similar (albeit more limited) to the animations proposed by MS Powerpoint or LO Impress.
\vspace{0.25cm}
Beamer offers two ways of hiding parts of a page:
\begin{itemize}
\item \textit{Covered} text appears as some sort of watermark;
\item \textit{Invisible} text is completely hidden.
\end{itemize}
\vspace{0.25cm}
Each step defined to uncover the \texttt{frame} results in the generation of a specific slide in the final presentation. Put differently, with overlays, one \texttt{frame} is shown as a sequence of several slides.
% to only display certain overlays in handout mode, use the "handout" option:
% item<1-|handout:1->
\end{frame}
%%%%
\begin{frame}
\frametitle{Pauses}
The simplest way to use overlays is to place the \texttt{\textbackslash{}pause} command wherever one wants to stop displaying the page content. The rest of the content is then covered.
\vspace{0.25cm}
For instance, here is a pause: \texttt{\textbackslash{}pause} \pause. And here is the end of the paragraph. To be precise, this additional text is on a \textit{different slide}, but on the \textit{same page}: the page number in the footer has not changed.
\vspace{0.25cm}
\visible<3>{Note that, when covered, the above text was rendered as some sort of watermark. This can be helpful, for instance, if the speaker does not remember what comes after a \texttt{\textbackslash{}pause}.}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Overlay Specifications}
%%%%
\begin{frame}
\frametitle{Absolute Overlay Specifications}
\framesubtitle{Description}
Beamer redefines certain standard \LaTeX{} commands and environments in order for them to accept additional parameters called \textit{overlay specifications}. These allow assigning numbers to various elements constituting the page. After rendering, these elements appear one after the other, in the specified order --which, again, results in the generation of several slides for this page.
\vspace{0.25cm}
Formally, these parameters are mentioned between angle brackets, e.g. \texttt{<3>} means the element appears at the third slide (of the considered page). \visible<2->{In order to keep the element visible at the subsequent slides, it is necessary to add a hyphen: \texttt{<3->}.} \visible<3->{It is also possible to make the element disappear at some later slide, e.g. \texttt{<3-5>}.} \visible<4->{Finally, one can combine such times ranges using commas, e.g. \texttt{<3-5,7-10,15>}.}
\end{frame}
%%%%
\begin{frame}
\frametitle{Absolute Overlay Specifications}
\framesubtitle{Examples}
The \texttt{\textbackslash{}item} command accepts overlay specifications, for instance:
\begin{itemize}
\item<1> \texttt{\textbackslash{}item<1>}
\item<2-3> \texttt{\textbackslash{}item<2-3>}
\item<3-> \texttt{\textbackslash{}item<3->}
\item<2,4> \texttt{\textbackslash{}item<2,4>}
\end{itemize}
\vspace{0.25cm}
\visible<5->{Notice how the position of the items is fixed, and independent from whether the other items are shown or not.}
\vspace{0.25cm}
\visible<6->{Overlay specifications do not necessarily affect visibility, \textbf<7>{e.g. \texttt{\textbackslash{}textbf<7>}} \textcolor<8>{fgRed}{or \texttt{\textbackslash{}textcolor<8>}}.}
\end{frame}
%%%%
\begin{frame}
\frametitle{Relative Overlay Specifications}
\framesubtitle{Basic Operators}
Instead of explicitly giving slide numbers in overlay specifications, it is possible to proceed \textit{incrementally} using operator \texttt{+}. This symbol is replaced by the current value of the slide counter, \textit{then} this counter is incremented by $1$. For instance, let $C$ and $C'$ be the current and updated counter values, and $S$ be the slide in which the element appears:
{\vspace{-0.10cm}\small\begin{itemize}
\item<+-> \texttt{\textbackslash{}item<+->}: \makebox[1.5cm][l]{$C=1$,} \makebox[2.5cm][l]{$S=1$,} \makebox[2.5cm][l]{$C'=1+1=2$.}
\item<+-> \texttt{\textbackslash{}item<+->}: \makebox[1.5cm][l]{$C=2$,} \makebox[2.5cm][l]{$S=2$,} \makebox[2.5cm][l]{$C'=2+1=3$.}
\item<+-> \texttt{\textbackslash{}item<+->}: \makebox[1.5cm][l]{$C=3$,} \makebox[2.5cm][l]{$S=3$,} \makebox[2.5cm][l]{$C'=3+1=4$.}
\end{itemize}}
\vspace{0.10cm}
When using \texttt{.} instead of \texttt{+}, this symbol is replaced by the current counter value \textit{minus one}, and this counter is \textit{not} modified. Basically, this allows displaying simultaneously several elements:
{\vspace{-0.10cm}\small\begin{itemize}
\item<+-> \texttt{\textbackslash{}item<+->}: \makebox[1.5cm][l]{$C=4$,} \makebox[2.5cm][l]{$S=4$,} \makebox[2.5cm][l]{$C'=4+1=5$.}
\item<.-> \texttt{\textbackslash{}item<.->}: \makebox[1.5cm][l]{$C=5$,} \makebox[2.5cm][l]{$S=5-1=4$,} \makebox[2.5cm][l]{$C'=5$.}
\item<+-> \texttt{\textbackslash{}item<+->}: \makebox[1.5cm][l]{$C=5$,} \makebox[2.5cm][l]{$S=5$,} \makebox[2.5cm][l]{$C'=5+1=6$.}
\item<.-> \texttt{\textbackslash{}item<.->}: \makebox[1.5cm][l]{$C=6$,} \makebox[2.5cm][l]{$S=6-1=5$,} \makebox[2.5cm][l]{$C'=6$.}
\end{itemize}}
\end{frame}
%%%%
\begin{frame}
\frametitle{Relative Overlay Specifications}
\framesubtitle{Offsets}
One can also specify an \textit{offset} after \texttt{+} or \texttt{.}, between parentheses, which will be used to modify the slide counter. Note that this offset can be positive, but also negative.
\vspace{0.25cm}
Here are some examples:
\small{\begin{itemize}
\item<+-> \makebox[2.25cm][l]{\texttt{\textbackslash{}item<+->}:} \makebox[1.5cm][l]{$C=1$,} \makebox[2.75cm][l]{$S=1$,} \makebox[2.5cm][l]{$C'=1+1=2$.}
\item<+(1)-> \makebox[2.25cm][l]{\texttt{\textbackslash{}item<+(1)->}:} \makebox[1.5cm][l]{$C=2$,} \makebox[2.75cm][l]{$S=2+1=3$,} \makebox[2.5cm][l]{$C'=2+1=3$.}
\item<+-> \makebox[2.25cm][l]{\texttt{\textbackslash{}item<+->}:} \makebox[1.5cm][l]{$C=3$,} \makebox[2.75cm][l]{$S=3$,} \makebox[2.5cm][l]{$C'=3+1=4$.}
\item<+(2)-> \makebox[2.25cm][l]{\texttt{\textbackslash{}item<+(2)->}:} \makebox[1.5cm][l]{$C=4$,} \makebox[2.75cm][l]{$S=4+2=6$,} \makebox[2.5cm][l]{$C'=4+1=5$.}
\item<+-> \makebox[2.25cm][l]{\texttt{\textbackslash{}item<+->}:} \makebox[1.5cm][l]{$C=5$,} \makebox[2.75cm][l]{$S=5$,} \makebox[2.5cm][l]{$C'=5+1=6$.}
\item<+(-1)-> \makebox[2.25cm][l]{\texttt{\textbackslash{}item<+(-1)->}:} \makebox[1.5cm][l]{$C=6$,} \makebox[2.75cm][l]{$S=6-1=5$,} \makebox[2.5cm][l]{$C'=6+1=7$.}
\item<.(1)-> \makebox[2.25cm][l]{\texttt{\textbackslash{}item<.(1)->}:} \makebox[1.5cm][l]{$C=7$,} \makebox[2.75cm][l]{$S=7-1+1=7$,} \makebox[2.5cm][l]{$C'=7$.}
\item<+-> \makebox[2.25cm][l]{\texttt{\textbackslash{}item<+->}:} \makebox[1.5cm][l]{$C=7$,} \makebox[2.75cm][l]{$S=7$,} \makebox[2.5cm][l]{$C'=7+1=8$.}
\end{itemize}}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Overlay Commands}
%%%%
\begin{frame}
\frametitle{Main Overlay Commands}
\framesubtitle{Description}
There are also several Beamer-specific commands to define overlays. They take the form \texttt{\textbackslash{}xxxxx<y>\{zzzz\}}, where \texttt{xxxxx} is the command, \texttt{y} is an overlay specification, and \texttt{zzzz} is the targeted content.
\vspace{0.25cm}
The main three such commands aim at showing the specified content on the specified slides, and hiding it on the other slides. They differ in the way they hide this content:
\begin{itemize}
\item \texttt{\textbackslash{}visible}: the hidden content is completely \textit{invisible}.
\item \texttt{\textbackslash{}uncover}: the hidden content is \textit{covered}.
\item \texttt{\textbackslash{}only}: the hidden content is outright \textit{removed}.
\end{itemize}
\end{frame}
%%%%
\begin{frame}[t]
\frametitle{Main Overlay Commands}
\framesubtitle{Examples}
Here is an illustration:
\only<2>{This text appears on the 2nd slide using \texttt{\textbackslash{}only}.}
\uncover<3>{This text appears on the 3rd slide using \texttt{\textbackslash{}uncover}. It replaces the previous text, since it was inserted using \texttt{\textbackslash{}only}).}
\only<4>{This text appears on the 4th slide using \texttt{\textbackslash{}only}. It is located after the space corresponding to the previous text, which was inserted with \texttt{\textbackslash{}uncover}.}
\only<5>{This text appears on the 5th slide also using \texttt{\textbackslash{}only}, in place of the previous text.}
\visible<6>{This text appears on the 6th slide using \texttt{\textbackslash{}visible}, in place of the previous text.}
\visible<7>{Finally, this text appears on the 7th slide also using \texttt{\textbackslash{}visible}, and only after the space left by the previous text.}
\end{frame}
%%%%
\begin{frame}
\frametitle{Other Overlay Commands}
The \texttt{\textbackslash{}invisible} command is simply the opposite of \texttt{\textbackslash{}visible}: it makes the specified content completely invisible on the specified slides, and shows it on the other slides.
\vspace{0.25cm}
The \texttt{\textbackslash{}onslide} command is quite generic. It takes an additional optional parameter called \textit{modifier}, which can be \texttt{+} or \texttt{*}. Basically:
\begin{itemize}
\item<1-> \texttt{\textbackslash{}onslide} behaves like \texttt{\textbackslash{}uncover};
\item<2-> \texttt{\textbackslash{}onslide+} behaves like \texttt{\textbackslash{}visible};
\item<3-> \texttt{\textbackslash{}onslide*} behaves like \texttt{\textbackslash{}only}.
\end{itemize}
\vspace{0.25cm}