\documentclass[aspectratio=1610,compress,t]{beamer} % Folien-Version
%\documentclass[aspectratio=1610,compress,t,draft]{beamer} % OHNE BILDER - schneller für Entwurf
%\documentclass[aspectratio=1610,compress,t,handout]{beamer} % Handout

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel} % English only
\usepackage{amsmath,mathtools}

\useoutertheme{infolines} % Basic and small
\beamertemplatenavigationsymbolsempty
\usepackage{template/HeiTemplate}

%%%%% Literatur (biblatex is more powerful than old bibtex)
\usepackage[%
backend=bibtex,% or biber
natbib=true,style=alphabetic,minnames=4,maxnames=99,doi=false,%
]{biblatex}
\addbibresource{example.bib}

\usepackage{template/PimpMyBeamer} % Should come late, as it detects biblatex

%%%% Macros for this document:
%% Tip: Use \kNN{} to have a whitespace after the macro.
\newcommand{\kNN}{\ensuremath{k\text{NN}}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Title page

\setbeamerfont{title}{size=\LARGE} % Adjust if necessary

% \title[Short version]{Long version}
% Navigation elements use the short version
\title[Presentation Template DBS]{%
Presentation Template of the\\
Database Systems Research Group}

% \author[Short version]{Long version}
\author{Erich Schubert}

% \institute[KURZVERSION]{Langversion}
\institute[]{
Database Systems Research, \\
Institute of Computer Science, \\
Heidelberg University \\
\nolinkurl{email@adress}
}

% \date[Short version]{Long version}
\date[2018-04-10]{%
Template DBS \\ %
April 10, 2018, Heidelberg
}

%%%%%%%%%%%%%%%%%%% CONTENTS

\begin{document}

\begin{emptyframe}[noframenumbering]
\maketitle
\end{emptyframe}

% -------------------------------------------

\section{Introduction to LaTeX-Beamer}
\subsection{Structuring}

\begin{frame}
\frametitle{Structuring}

Keywords are usually enough.

\bigskip % Additional spacing
Sometimes you may need an itemization:
\begin{itemize}
  \item with symbols
  \item known as ``death by bullet point''
\end{itemize}

\ldots{} or an enumeration:
\begin{enumerate}
  \item item
  \item item
\end{enumerate}

\end{frame}

% -------------------------------------------
\begin{frame}
\frametitle{Structuring /2}

You can add a pause to a slide.

\pause
\ldots{} but only use this if \emph{really} necessary.

\bigskip
\begin{block}{Example block}
You can also only \highlight<3>{highlight single words}.
\end{block}


\end{frame}

% -------------------------------------------
\subsection{Columns}

\begin{frame}
\frametitle{Columns}

\begin{columns}[T,totalwidth=\linewidth]
\column{.48\linewidth}
With \texttt{\textbackslash{}begin\{columns\}} you can
easily split a page in two halves.

\medskip
Pick the appropriate vertical alignment,\\
e.g., \texttt{T}, \texttt{t}, \texttt{c} or \texttt{b}

\column{.48\linewidth}\centering
You could\\
put a\\
graphic\\
here

\bigskip
or an equation:
$$E=mc^2$$

\end{columns}

\end{frame}

% -------------------------------------------

\subsection{Equation examples}
\begin{frame}
\frametitle{Equation example}

Example text.
%
%%% Equations aligned with &
\begin{align*}
x
&= 1
\\
\sum_{i=1}^n x^2
&= \frac{n^3}{3} + \frac{n^2}{2} + \frac{n}{6}
\\
\intertext{The indicator function is definied here as:}
\mathbb{I}[x\leq 1]
&=
\begin{cases}
1 & \text{if } x\leq 1 \\
0 & \text{otherwise} 
\end{cases}
\end{align*}

\end{frame}

% -------------------------------------------

\subsection{Images}
\begin{frame}
\frametitle{Images}

\begin{columns}[T,totalwidth=\linewidth]
\column{.6\linewidth}
Images work in formats
\texttt{.jpg}, \texttt{.png} and \texttt{.pdf}.

\bigskip
\highlight{Attention:}
Images are usually considered to be stand-alone, copyrighted, works.

\medskip
§60a UrhG allows the use of figures and excerpts in education \emph{to a large extent},\footnotemark{} but:

\medskip
§63 UrhG:
``When a work or part of a work [\ldots]
is duplicated or distributed,
\textbf{you must always clearly indicate the source}.''
(usually, you should name the author, \emph{not just give an URL}!)

\bigskip
Obey copyright laws (i.e., Urheberrecht).

\column{.3\linewidth}\centering
\includegraphics[width=\linewidth]{wikipediacat.jpg}

{\footnotesize Grumpy Cat\\
Source (CC-BY-SA~3.0):\\
Gage Skidmore \cite{wiki:catimage} \par}
\end{columns}

\footnotetext{You need to look up the legislation details yourself,
e.g., on \href{https://www.bmbf.de/de/neues-urheberrechtsgesetz-fuer-die-wissenschaft-4431.html}{www.BMBF.de}}

\end{frame}

% -------------------------------------------

\subsection{Sources}

\begin{frame}
\frametitle{Sources and References}

References should always use BibTeX.

\bigskip
\begin{center}
\highlight{Important:} \emph{Check} all your BibTeX-entries carefully.
\end{center}
\bigskip

Google Scholar -- and publishers -- often generated flawed entries:\\
missing authors, wrong authors, missing fields, wrong syntax, \ldots%
\footnote{Tip: \href{http://dblp.org/}{DBLP} has very reliable BibTeX-entries for much of the literature in our domain.}

\bigskip
With \highlight{web pages} you have to give the \highlight{access date}, and -- if possible --\\
include a \highlight{permanent / archived copy}, because web pages can change at any time.

If you \emph{really} cannot find a \emph{better} source than Wikipedia
(primary sources are always preferrable to meta-sources such as Wikipedia),
then at least use the ``cite this page'' function.\\
But even this function produces flawed BibTeX entries, so fix them.

\end{frame}


% -------------------------------------------

\subsection{Guides}
\begin{frame}
\frametitle{Guides for LaTeX-Beamer}

\begin{block}{The Beamer Class User Guide}
\fullcite{TantauWM11}
\end{block}

\bigskip
A short overview can be found here:

\medskip
\fullcite{enwiki:latex-beamer}

\end{frame}

%% Indicate end of contents
\lastslide\section*{}

% Bibliography
\bibslides

%\emptyBlackFrame % Some like/hate this ..
%\thankYouQuestions % .. others like/hate this

%% Navigation outline at the end
\outline

%%%%%%%%%%%%%%%% Zusatzfolien.
\appendix
\section{Backup Slides}

\begin{frame}
\frametitle{Proof for Theorem 1}

\setbeamertemplate{theorems}[numbered]
\begin{theorem} \label{theorem:notheorem}
Theorem~\ref{theorem:notheorem} is wrong, dude.
\end{theorem}

This probably cannot be decided. \qed

\end{frame}

\restorepagecount % To the value set by \lastslide
\end{document}
