-
Notifications
You must be signed in to change notification settings - Fork 25
/
sample.tex
248 lines (191 loc) · 6.48 KB
/
sample.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
\documentclass{beamer}
\usetheme{ucl}
%%% Increase the height of the banner: the argument is a scale factor >=1.0
% \setbeamertemplate{banner}[ucl][1.5]
%%% Change the colour of the main banner
%%% The background should be one of the UCL colours (except pink or white):
%%% black,darkpurple,darkred,darkblue,darkgreen,darkbrown,richred,midred,
%%% navyblue,midgreen,darkgrey,orange,brightblue,brightgreen,lightgrey,
%%% lightpurple,yellow,lightblue,lightgreen,stone
% \setbeamercolor{banner}{bg=darkpurple}
% \setbeamercolor{banner}{bg=yellow,fg=black}
%%% Add a stripe behind the banner
% \setbeamercolor{banner stripe}{bg=brightblue,fg=black}
%%% The main structural elements
% \setbeamercolor{structure}{fg=black}
%%% Author/Title/Date and slide number in the footline
% \setbeamertemplate{footline}[author title date]
%%% Puts the section/subsection in the headline
% \setbeamertemplate{headline}[section]
%%% Puts a navigation bar on top of the banner
%%% For this to work correctly, the each \section command needs to be
%%% followed by a \subsection. Requires one extra compile.
% \setbeamertemplate{headline}[miniframes]
%%% Accepts an optional argument determining the width
% \setbeamertemplate{headline}[miniframes][0.3\paperwidth]
%%% Puts the frame title in the banner
%%% Won't work correctly with the above headline templates
% \useoutertheme{ucltitlebanner}
%%% Similar to above, but smaller (and puts subtitle on same line as title)
% \useoutertheme[small]{ucltitlebanner}
%%% Gives block elements (theorems, examples) a border
% \useinnertheme{blockborder}
%%% Sets the body of block elements to be clear
% \setbeamercolor{block body}{bg=white,fg=black}
%%% Include CSML logo on title slide
% \titlegraphic{\includegraphics[width=0.16\paperwidth]{csml_logo}}
%%% Include CSML logo in bottom right corner of all slides
% \logo{\includegraphics[width=0.12\paperwidth]{csml_logo}}
%%% Set a background colour
% \setbeamercolor{background canvas}{bg=lightgrey}
%%% Set a background image
%%% Some sample images are available from the UCL image store:
%%% https://www.imagestore.ucl.ac.uk/home/start
% \setbeamertemplate{background canvas}{%
% \includegraphics[width=\paperwidth]{imagename}}
%%%%%% Some other settings that can make things look nicer
%%% Set a smaller indent for description environment
\setbeamersize{description width=2em}
%%% Remove nav symbols (and shift any logo down to corner)
\setbeamertemplate{navigation symbols}{\vspace{-2ex}}
\title[Short Title]{Title of the Presentation}
\author[Auth. 1 \and Auth.2]{Author 1 \and Author 2}
\institute[UCL]{%
Department of Sample Science \\ %
University College London
}
\date{28th January 2011}
\begin{document}
\begin{frame}
\titlepage%
\end{frame}
\section{Section 1}
\subsection{First subsection}
\begin{frame}
\frametitle{First Slide}
\begin{itemize}
\item 1
\item 2
\pause%
\item \alert{Alert!!}
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Second Slide}
\framesubtitle{with a subtitle}
\begin{alertblock}{Help!}
text here
\begin{itemize}
\item point 1
\end{itemize}
\end{alertblock}
\begin{example}
\begin{itemize}
\item 3
\item 4
\end{itemize}
\end{example}
\end{frame}
%%% Can be a bit much UCL
%%% from here on, remove branding from banners
\setbeamertemplate{banner}[blank]
\section{Section 2}
\subsection{Second subsection}
\frame{
\frametitle{Third Slide}
\begin{enumerate}
\item 1
\item 2
\end{enumerate}
\begin{theorem}
This is a result.
\end{theorem}
\[
x_i = y_i + \varepsilon_i
\]
}
\frame{
\frametitle{Conclusions}
\begin{block}{A block}
An environment inside the block
\begin{description}
\item[The first step:] This is a very long description, and will wrap onto
the next line
\item[Step B:] text
\end{description}
\begin{itemize}
\item a
\item b
\end{itemize}
\end{block}
\begin{itemize}
\item
\item
\item
\item
\item
\item
\item
\end{itemize}
}
%%% Customise the banner using a department headline slogan
\section{Headline customisation}
%%% use department headline template
\setbeamertemplate{headline}[department]
%%% set department and subdepartment
\setbeamertemplate{department}{Department of Sample Science}
\setbeamertemplate{subdepartment}{Subdepartment slogan}
%%% customise the fonts
\setbeamerfont{section in head/foot}{shape=\scshape,size=\scriptsize,series=\bfseries}
\setbeamerfont{subsection in head/foot}{shape=\scshape,size=\tiny,series=\bfseries}
%%% customise the colors
\setbeamercolor{section in head/foot}{fg=white}
\setbeamercolor{subsection in head/foot}{fg=banner.fg!80!banner.bg}
%%% UCL logo can also be customised
\setbeamertemplate{banner}[ucl]
\setbeamercolor{banner}{bg=black}
\setbeamercolor{banner stripe}{bg=brightblue,fg=black}
\begin{frame}
\frametitle{Slide with custom headline}
\end{frame}
%%% Customise the slide counter in the footline
\section{Slide counters}
%%% use footline template
\setbeamertemplate{footline}[author title date]
\setbeamercolor{footline}{use=banner, bg=black, fg=banner.fg!80!banner.bg}
%%% frame/total: show frame number and total number of frames
\begin{frame}{Slide counters}
\framesubtitle{\texttt{frametotal} is the default}
Three templates for the slide counter in the footline are available:
\begin{itemize}
\item \texttt{frametotal} prints the current frame number and the total number (default)
\item \texttt{frameonly} prints the current frame number only
\item \texttt{empty} does not print a slide counter
\end{itemize}
\end{frame}
\setbeamertemplate{slide counter}[frameonly]
\begin{frame}{Slide counters}
\framesubtitle{A slide with \texttt{frameonly} slide counter}
\end{frame}
\setbeamertemplate{slide counter}[empty]
\begin{frame}{Slide counters}
\framesubtitle{A slide with \texttt{empty} slide counter}
\end{frame}
\setbeamertemplate{slide counter}[frameonly][Slide]
\begin{frame}{Slide counters}
\framesubtitle{Optional argument can be printed in front of the current number}
\texttt{frametotal} and \texttt{frameonly} take an optional argument
to be printed in front of the current number (e.g. `Slide').
\end{frame}
\setbeamertemplate{slide counter}[frametotal][Slide]
\begin{frame}{Slide counters}
\framesubtitle{Optional argument with \texttt{frametotal}}
\end{frame}
%%% switch back to plain headline/footline
\setbeamertemplate{banner}[blank]
\setbeamertemplate{headline}[ucl]
\setbeamertemplate{slide counter}[frametotal]
\frame{%
\frametitle{Acknowledgements}
}
\end{document}