sample.tex 9.23 KB
Newer Older
1
2
3
\documentclass[aspectratio=169]{beamer}
\usepackage[square,numbers]{natbib}
\bibliographystyle{apalike}
Henrik Korsgaard's avatar
Henrik Korsgaard committed
4
\title[AU LaTeX theme]{Imagine the joy of creating AU template presentations in LaTeX}
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
\date[]{27th of April, 2019}
\author[korsgaard@cs.au.dk]{Henrik Korsgaard}
\institute{DEPARTMENT OF COMPUTER SCIENCE} % Type in A
\usetheme{aarhusuniversity}

\begin{document}

\begin{frame}
\maketitle
\end{frame}

\begin{frame}{Outline}
\tableofcontents
\end{frame}

\section{Background}

\begin{frame}{Motivation}
\begin{itemize}
    \item I use \LaTeX\ in most of my work for writing and dissemination.
    \item I need a solid template for my teaching and talks that fit my writing environment(s).
    \item The official Aarhus University PowerPoint template is well-designed and consistent. 
   \item So, I've created a \LaTeX Beamer theme that closely resemble to the official Aarhus University PowerPoint theme.
\end{itemize}
\end{frame}

\begin{frame}{Notable style differences}
\begin{enumerate}
    \item Default black text replaced with the AU dark blue color as default.
    \item Moved author name and email up under title on front page.
    \item Replaced date and author title in footer with slide counter and presentation short title.
    \item Replaced the circle bullet with triangle for itemized lists
\end{enumerate}
\end{frame}

\begin{frame}[AUMagenta]{Disclaimer and credit}
\begin{enumerate}
    \item I'm not a \LaTeX\ or Beamer prodigy, so stuff may break and be structured and designed unidiomatically.
    \item The theme has not been developed in consultation with others at AU.
    \item I have gotten substantial inspiration and re-used the Logo files from the other AU \LaTeX\ templates (see https://medarbejdere.au.dk/en/administration/communication/guidelines/design/latextemplates/)
    \item Questions and comments can be submitted to \insertshortauthor\ or the Gitlab.au.dk repository.
\end{enumerate}
\end{frame}

\section{Download and use}
\begin{frame}[fragile]{Download and use}

{\bf Download and ``Installation''}
\begin{enumerate}
    \item Download https://gitlab.au.dk/henrikkorsgaard/au-beamer-template
    \begin{itemize}
        \item Locally: Unzip and copy to the folder where you create presentations
        \item Overleaf: Unzip and upload to Overleaf project
    \end{itemize}
\end{enumerate}
{\bf Use}
\begin{itemize}
    \item Locally: Compile with xelatex (and bibtex for bibligraphy)
    \item Overleaf: Set the latex compiler to xelatex in the menu
    \begin{enumerate}
        \item Set document class \verb=\documentclass[aspectratio=169]{beamer}=
        \item Set theme \verb=\usetheme{aarhusuniversity}=
    \end{enumerate}
\end{itemize}
\end{frame}

\section{Basic design and features}
\begin{frame}[fragile]{Generating the title page}%here fragile is necessary in order to use the \verbatim environment
\begin{description}[Institution]
\item[Title] \verb=\title[short]{full}= sets the presentation title. `Full' is for the main title page. `Short' title is inserted in the running footer. 
\item[Author] \verb=\author[email]{name}= sets the presentation author. `Name' is the full author name. `Email' is reserved for contact email on the title page.
\item[Date] \verb=\date{date}= inserts the date in the title page footer. This field can also be used for, e.g. location or event information.
\item[Institution] \verb=\institute{department}= inserts the department name under the AU logo in the footer.
\end{description}
\end{frame}

\begin{frame}[fragile]{Creating frames}%here fragile is necessary in order to use the \verbatim environment
\begin{columns}
\begin{column}{0.5\textwidth}
   \begin{itemize}
        \item The \verb=\begin{frame}= command creates the frame environment, see full example to the right.
       \item Options are for setting frame labels or template specific frame types -- see next slide and the examples section 
       \item Examine the main.tex file and Beamer class for more \LaTeX\ code examples
    \end{itemize}
\end{column}
\begin{column}{0.45\textwidth}  %%<--- here
    \verb=\begin{frame}[options]{title}=\\
        \hspace{1em}\dots content \dots\\
    \verb=\end{frame}=
\end{column}
\end{columns}
\end{frame}

\begin{frame}[AUDark]{Frame style [options]}
\begin{description}[AUCleanDark]
\item[AUDark] generates a frame with a dark blue background and white text similar to this slide.
\item[AUGreen] generates a frame with a green background and white text.
\item[AUMagenta] generates a frame with a magenta background and white text.
\item[AUClean] generates a frame without a footer.
\item[AUDarkClean] generates a frame with a dark blue background and without a footer.
\end{description}
\end{frame}

\begin{frame}[fragile]{Using the AUPassata font}
\begin{description}
\item[Regular] This is the normal AU Passata font
\item[Bold]  \verb=\bf{}= \textbf{activates AU Passata Bold}
\item[Italics] \verb=\textit= or \verb=\emph= \textit{activates AU Passata Regular Oblique}
\item[Light] \verb=\textlight{}= \textlight{Activate the AU Passata Light}
\end{description}
\end{frame}

\section{Examples}

\begin{frame}[fragile]{Columns}
\begin{columns}
\begin{column}{0.45\textwidth}
   It is very easy to make a two-column design for a slide, e.g. for inserting additional text, images, quotes or examples in the right-hand column.\\
   \vspace{1em}
   The right-hand example illustrates how to do this with the columns environment. A column width of \verb=0.45\textwidth= fit the template.
\end{column}
\begin{column}{0.45\textwidth}
    \verb=\begin{columns}=\\
        \hspace{1em}\verb=\begin{column}{width}=\\
        \hspace{2em}\dots content \dots\\
        \hspace{1em}\verb=\end{column}=
        \hspace{1em}\verb=\begin{columns}=\\
        \hspace{1em}\verb=\begin{column}{0.45\textwidth}=\\
        \hspace{2em}\dots content \dots\\
        \hspace{1em}\verb=\end{column}=\\
    \verb=\end{columns}=
\end{column}
\end{columns}
\end{frame}

\begin{frame}{Lists: Enumerate and Itemize}
\begin{columns}
\begin{column}{0.45\textwidth}
    \begin{enumerate}
        \item Enumerated lists
        \item use standard numbering 
        \begin{enumerate}
            \item Lists can be embedded 
            \item just as in \LaTeX
    \end{enumerate}
    \end{enumerate}
\end{column}
\begin{column}{0.45\textwidth}
    \begin{itemize}
        \item Itemized lists
        \item are ideal for bullet content
        \begin{enumerate}
            \item You can mix embedded lists
            \item just as in \LaTeX
        \end{enumerate}
    \end{itemize}
\end{column}
\end{columns}
\end{frame}

\begin{frame}[AUDark]{Lists: Description}
\begin{description}
\item[What] The template support the use of descriptive lists
\item[Why] These are useful for when listing concepts or positions etc.
\item[When] Or to summarize deadlines, multiple slides or other key information.
\end{description}

\end{frame}
\begin{frame}{Images}
\begin{figure}[h]
\centering
\includegraphics[width=0.7\textwidth]{images/donald_knuth.png}
\caption{XKCD: Donald Knuth (\url{https://xkcd.com/163/})}
\end{figure}
\end{frame}

\begin{frame}{Tables}
\centering
We can make tables just as in \LaTeX\ documents, see e.g. table \ref{tab:cutlery}.
\begin{table}[]
\centering
\begin{tabular}{| c | c | c | c |}
\hline
 \bf{Location} & \bf{Forks} & \bf{Knives} & \bf{Spoons} \\ 
 \hline
 In drawer & 6 & 87837 & 787 \\ 
  \hline
 In use & 7 & 78 & 5415 \\
  \hline
 In the dishwasher & 545 & 778 & 7507 \\
 \hline
\end{tabular}
\caption{Cutlery overview}
\label{tab:cutlery}
\end{table}   
\end{frame}

\begin{frame}[fragile]{References}
\begin{columns}
\begin{column}{0.5\textwidth}
We can use citations as usual using \verb=\cite{<key>}= with style options from the \verb=natbib= package.\\
\vspace{0.5em}
When using citations, e.g. \cite{tantau2004user, mertz2005beamer}, we need to generate the reference list in a frame somewhere \verb=\bibliography{<bib file>}= command.
\end{column}
\begin{column}{0.45\textwidth}
Example of the bibligraphy list\\
\vspace{1em}
\bibliography{references}
\vspace{1em}
Note, that with long reference lists, it is necessary to add the \verb=allowframebreaks= to the frame option list.
\end{column}
\end{columns}
\end{frame}

\begin{frame}[AUDark]{Example of the [AUDark] slide option}
\end{frame}

\begin{frame}[AUGreen]{Example of the [AUGreen] slide option}
\end{frame}

\begin{frame}[AUMagenta]{Example of the [AUMagenta] slide option}
\end{frame}

\begin{frame}[AUClean]{Example of the [AUClean] slide option}
\centering
If you omit the slide title, it will be empty as well!
\end{frame}

\begin{frame}[AUDarkClean]{}
\centering
\huge Example of the [AUDarkClean] slide option without footer and in this case and empty title
\end{frame}

\section{Final notes}
\begin{frame}[fragile]{Known Issues}
    \begin{itemize}
        \item The command \verb=\insertinstitute= do not cooperate with \verb=\MakeUppercase=. Hence, \verb=\institute{department}= does not auto capitalize the department name. This needs to be done manually.
        \item I have not yet figured out how to deliver this as a standalone package and solve issues related to installing AU Passate.
    \end{itemize}
\end{frame}

\begin{frame}[AUDark]{Feedback}
    \begin{itemize}
        \item Write \insertauthor\ at \insertshortauthor\\
        \item Post an issue on https://gitlab.au.dk/henrikkorsgaard/au-beamer-template
    \end{itemize}
\end{frame}

\end{document}