-
Notifications
You must be signed in to change notification settings - Fork 0
/
vzg-slides.tex
205 lines (174 loc) · 4.79 KB
/
vzg-slides.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
% requires:
% texlive-lang-german
% ...
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(handout)$handout,$endif$$if(beamer)$ignorenonframetext,$endif$]{$documentclass$}
\usepackage{longtable}
%\usepackage{etex}
%\reserveinserts{28}
$if(theme)$
\usetheme{$theme$}
$endif$
$if(colortheme)$
\usecolortheme{$colortheme$}
$endif$
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\usepackage{tikz}
\usetikzlibrary{positioning,arrows.meta,matrix}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\usepackage{fixltx2e} % provides \textsubscript
\ifxetex
\usepackage{fontspec,xltxtra,xunicode}
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
%%% VZG TODO:
% \setmainfont{Calibri}
\setmainfont{DejaVu Serif}
\else
\ifluatex
\usepackage{fontspec}
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\else
\usepackage[utf8]{inputenc}
\fi
\fi
$if(natbib)$
\usepackage{natbib}
\bibliographystyle{plainnat}
$endif$
$if(biblatex)$
\usepackage{biblatex}
$if(biblio-files)$
\bibliography{$biblio-files$}
$endif$
$endif$
$if(listings)$
\usepackage{listings}
$endif$
$if(highlighting-macros)$
$highlighting-macros$
$endif$
$if(verbatim-in-note)$
\usepackage{fancyvrb}
$endif$
$if(fancy-enums)$
\usepackage{enumerate}
$endif$
$if(tables)$
\usepackage{ctable}
\usepackage{float} % provides the H option for float placement
$endif$
$if(url)$
\usepackage{url}
$endif$
$if(graphics)$
\usepackage{graphicx}
$endif$
%% VZG:
\setlength\itemsep {\dimexpr\itemsep + 0.5em\relax}
\definecolor{links}{HTML}{1D1366}
\hypersetup{colorlinks,linkcolor=,urlcolor=links}
%\setbeamertemplate{items}[ball]
\setbeamertemplate{caption}{\insertcaption}
\definecolor{VZGblau}{RGB}{49,97,163}
%\newtranslation[to=ngerman]{Section}{Abschnitt}
\defbeamertemplate{section page}{mine}[1][]{%
\centering
\begin{beamercolorbox}[sep=8pt,center,#1]{section title}
\usebeamerfont{section title}\insertsection\par
\end{beamercolorbox}
}
\setbeamertemplate{section page}[mine]
\usebackgroundtemplate{
\begin{tikzpicture}[remember picture, overlay]
\node[inner sep=0] at (current page.center) {
\includegraphics[width=\paperwidth,height=\paperheight]{vzg-slides-background.png}
};
\node[anchor=south west,text=white,xshift=20mm,yshift=0.5mm] at (current page.south west)
{\footnotesize
$if(shorttitle)$$shorttitle$$else$$title$$endif$$if(date)$ ($date$)$endif$
};
% \node[anchor=east,text=white,yshift=-31.5mm] at (current page.east)
% {\scriptsize \insertframenumber};
\end{tikzpicture}
}
\addtobeamertemplate{title page}{
\begin{tikzpicture}[remember picture, overlay]
\node[inner sep=0] at (current page.center) {
\includegraphics[width=\paperwidth,height=\paperheight]{vzg-slides-titlebackground.png}
};
\end{tikzpicture}
}
\setbeamercolor{structure}{fg=VZGblau}
\setbeamerfont{title}{size=\huge}
\setbeamerfont{subtitle}{size=\Large} %,fg=black}
\setbeamercolor{subtitle}{fg=black}
\setbeamercolor{author}{fg=VZGblau}
\setbeamercolor{date}{fg=VZGblau}
\setbeamerfont{section title}{size=\huge}
% to support begin/end sections with Pandoc syntax
\let\pandocbegin\begin
\let\pandocend\end
% Comment these out if you don't want a slide with just the
% part/section/subsection/subsubsection title:
\AtBeginPart{\frame{\partpage}}
\AtBeginSection{\frame{\sectionpage}}
\AtBeginSubsection{\frame{\subsectionpage}}
\AtBeginSubsubsection{\frame{\subsubsectionpage}}
$if(strikeout)$
\usepackage[normalem]{ulem}
% avoid problems with \sout in headers with hyperref:
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
$endif$
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
\setlength{\emergencystretch}{3em} % prevent overfull lines
$if(numbersections)$
$else$
\setcounter{secnumdepth}{0}
$endif$
$if(verbatim-in-note)$
\VerbatimFootnotes % allows verbatim text in footnotes
$endif$
$if(lang)$
\usepackage[$lang$]{babel}
$else$
%\usepackage{babel}
$endif$
$if(title)$\title{$title$}$endif$
$if(subtitle)$\subtitle{$subtitle$}$endif$
$if(institute)$\institute{$institute$}$endif$
$if(author)$
\author{$for(author)$$author.name$$sep$ \and $endfor$}
$endif$
$if(date)$
\date{$if(place)$$place$, $endif$$date$}
$endif$
% remove navigation bar
\setbeamertemplate{navigation symbols}{}
% bottom margin
\setbeamertemplate{footline}{\vspace{8mm}}
\begin{document}
$if(title)$ { \frame{\titlepage} } $endif$
$if(toc)$
\begin{frame}{Übersicht}
\tableofcontents[hideallsubsections]
\end{frame}
$endif$
$body$
$if(natbib)$
$if(biblio-files)$
$if(biblio-title)$
$if(book-class)$
\renewcommand\bibname{$biblio-title$}
$else$
\renewcommand\refname{$biblio-title$}
$endif$
$endif$
\bibliography{$biblio-files$}
$endif$
$endif$
$if(biblatex)$
\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
$endif$
\end{document}