upload of Lukas' files

This commit is contained in:
Meik Hellmund 2021-06-17 19:55:59 +02:00
parent bfa73da928
commit 7cc5fead1f
7 changed files with 982 additions and 4 deletions

66
.gitignore vendored Normal file
View File

@ -0,0 +1,66 @@
## Core latex/pdflatex auxiliary files:
*.aux
*.lof
*.log
*.lot
*.fls
*.out
*.toc
*.fmt
*.fot
*.cb
*.cb2
.*.lb
## Intermediate documents:
*.dvi
## Bibliography auxiliary files (bibtex/biblatex/biber):
*.bbl
*.bcf
*.blg
*-blx.aux
*-blx.bib
*.run.xml
## Build tool auxiliary files:
*.fdb_latexmk
*.synctex
*.synctex(busy)
*.synctex.gz
*.synctex.gz(busy)
*.pdfsync
## Build tool directories for auxiliary files
# latexrun
latex.out/
## Auxiliary and intermediate files from other packages:
# algorithms
*.alg
*.loa
# amsthm
*.thm
# beamer
*.nav
*.pre
*.snm
*.vrb
# makeidx
*.idx
*.ilg
*.ind
# minted
_minted*
*.pyg
# auto folder when using emacs and auctex
./auto/*
*.el
# emacs
*~
.#*

View File

@ -1,6 +1,5 @@
# leipzig-theme # leipzig-theme
A beamer theme that conforms to the corporate design of the University of Leipzig.
# leipzig-theme
A beamer theme that conforms to the corporate design of the University of Leipzig. Originally created by Lukas Gienapp at https://github.com/lgienapp/leipzig-theme
Originally created by Lukas Gienapp at https://github.com/lgienapp/leipzig-theme

679
beamerthemeleipzig.sty Normal file
View File

@ -0,0 +1,679 @@
%---------------------------------------------------------------------
% Name : beamerthemeleipzig.sty
% Author : Lukas Gienapp
% Version : 1.0
% Created on : 02.04.2018
% Last Edited on : 04.10.2018
% License : This file may be distributed and/or modified under
% the GNU Public License.
% Description : Beamer theme that complies with the corporate
% design of the Leipzig University, with a few
% modifications to fit beamer. It is partly based on the
% HSRM theme by Benjamin Weiss
% (https://github.com/hsrmbeamertheme/hsrmbeamertheme)
%---------------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Structure %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Setup
% - Basic
% - Requirements
% - Package options
% Fonts
% - Specification
% - Titlepage
% - Header & Footer
% - Section
% - Thankspage
% - Content
% - Captions
% - Footnotes
% - Description
% - Itemization
% Colors
% - Base colors
% - Base styles
% - Palettes
% - Frame title
% - Title page
% - Thanks page
% - Header & Footer
% - Blocks
% - Frame Number
% - Footnotes
% - Description
% - Itemization
% - Bibliography
% Inner Theme
% - Definitions
% - Thanks page
% - Section page
% - Title page
% - Itemize
% - Description
% - Enumeration
% - Blocks
% - Figures
% - Tables
% - Footnotes
% - Captions
% Outer Theme
% - Head line
% - Foot line
% - Frame title
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Setup %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%---------------------------------------------------------------------
% Basic
%---------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerthemeleipzig}[2018/04/04 Leipzig theme]
%---------------------------------------------------------------------
% Requirements
%---------------------------------------------------------------------
\RequirePackage{tikz}
\RequirePackage{eso-pic}
%---------------------------------------------------------------------
% Package Options
%---------------------------------------------------------------------
\newif\if@doSans
\@doSansfalse
\DeclareOption{noserifmath}{\@doSanstrue}
\newif\if@doSectionPage
\@doSectionPagefalse
\DeclareOption{nosectionpages}{\@doSectionPagetrue}
\ProcessOptions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Fonts %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%---------------------------------------------------------------------
% Specification
%---------------------------------------------------------------------
\if@doSans%
% sans serif math %
\usepackage[no-math]{fontspec}%
\setmainfont{Arial}%
\else%
% serif math %
\usepackage{fontspec}%
\usefonttheme[onlymath]{serif}%
\fi%
\newfontfamily\Light{Arial}%
\newfontfamily\Bold{Arial-Bold}%
\setsansfont{Arial}%
\renewcommand\UrlFont{\Bold}%
%---------------------------------------------------------------------
% Titlepage
%---------------------------------------------------------------------
\setbeamerfont{title}{family=\Bold,size=\LARGE}%
\setbeamerfont{subtitle}{family=\Light,size=\large}%
\setbeamerfont{date}{size=\normalsize}%
\setbeamerfont{author}{size=\normalsize}%
\setbeamerfont{institute}{size=\normalsize}%
%---------------------------------------------------------------------
% Header & Footer
%---------------------------------------------------------------------
\setbeamerfont{header title}{family=\Bold, size=\scriptsize}%
\setbeamerfont{header subtitle}{family=\Light, size=\scriptsize}%
\setbeamerfont{footer}{family=\Light, size=\scriptsize}%
\setbeamerfont{frame number}{family=\Light, size=\scriptsize}%
%---------------------------------------------------------------------
% Section
%---------------------------------------------------------------------
\setbeamerfont{section title}{size=\LARGE}%
%---------------------------------------------------------------------
% Thankspage
%---------------------------------------------------------------------
\setbeamerfont{thanks title}{family=\Bold,size=\Large}%
\setbeamerfont{thanks author}{family=\Bold,size=\large}%
\setbeamerfont{thanks text}{family=\Light,size=\normalsize}%
%---------------------------------------------------------------------
% Content
%---------------------------------------------------------------------
\setbeamerfont{frame title}{family=\Bold,size=\Large}%
\setbeamerfont{block title}{family=\Bold,size=\large}%
\setbeamerfont{block title alerted}{family=\Bold,size=\large}%
\setbeamerfont{alerted text}{family=\Bold}%
%---------------------------------------------------------------------
% Captions
%---------------------------------------------------------------------
\setbeamerfont{caption name}{family=\Bold}%
%---------------------------------------------------------------------
% Footnotes
%---------------------------------------------------------------------
\setbeamerfont{footnote}{family=\Light, size=\scriptsize}%
%---------------------------------------------------------------------
% Description
%---------------------------------------------------------------------
\setbeamerfont{description item}{family=\Bold, size=\normalsize}%
%---------------------------------------------------------------------
% Itemization
%---------------------------------------------------------------------
\setbeamerfont{itemization item}{family=\Light, size=\normalsize}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Colors %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%---------------------------------------------------------------------
% Base Colors
%---------------------------------------------------------------------
\definecolor{leipzigDarkRed}{RGB}{176,47,44}%
\definecolor{leipzigLightRed}{RGB}{214,66,66}%
\definecolor{leipzigLightBlue}{RGB}{138,194,209}%
\definecolor{leipzigLightGrey}{RGB}{201,201,201}%
\definecolor{leipzigDarkGrey}{RGB}{38,42,49}%
%---------------------------------------------------------------------
% Base Styles
%---------------------------------------------------------------------
\setbeamercolor{normal text}{fg=leipzigDarkGrey,bg=}%
\setbeamercolor{structure}{fg=leipzigDarkGrey,bg=}%
\setbeamercolor{alerted text}{fg=leipzigDarkRed,bg=}%
\setbeamercolor{example text}{fg=leipzigLightBlue,bg=}%
%---------------------------------------------------------------------
% Palettes
%---------------------------------------------------------------------
\setbeamercolor{palette primary}{fg=leipzigDarkGrey,bg=}%
\setbeamercolor{palette secondary}{fg=leipzigDarkGrey,bg=leipzigLightGrey}%
\setbeamercolor{palette tertiary}{fg=leipzigDarkRed,bg=leipzigLightGrey}%
\setbeamercolor{palette quaternary}{fg=white, bg=leipzigDarkGrey}%
%---------------------------------------------------------------------
% Frame Title
%---------------------------------------------------------------------
\setbeamercolor{frame title}{parent = palette primary}%
%---------------------------------------------------------------------
% Titlepage
%---------------------------------------------------------------------
\setbeamercolor{title}{parent=normal text}%
\setbeamercolor{subtitle}{parent=normal text}%
\setbeamercolor{institute}{parent=normal text}%
%---------------------------------------------------------------------
% Thankspage
%---------------------------------------------------------------------
\setbeamercolor{thankstitle}{parent=normal text}%
\setbeamercolor{thankstext}{parent=normal text}%
%---------------------------------------------------------------------
% Header & Footer
%---------------------------------------------------------------------
\setbeamercolor{headline}{parent=palette primary}%
\setbeamercolor{footline}{parent=palette primary}%
%---------------------------------------------------------------------
% Blocks
%---------------------------------------------------------------------
\setbeamercolor{block title}{bg = leipzigLightGrey,fg = leipzigDarkGrey}%
\setbeamercolor{block body}{bg = leipzigLightGrey!40,fg = leipzigDarkGrey}%
\setbeamercolor{block title alerted}{bg = leipzigDarkRed,fg = white}%
\setbeamercolor{block title example}{bg = leipzigLightBlue,fg = leipzigDarkGrey}%
\setbeamercolor{block body alerted}{bg = leipzigDarkRed!40,fg = leipzigDarkGrey}%
\setbeamercolor{block body example}{bg = leipzigLightBlue!40,fg = leipzigDarkGrey}%
%---------------------------------------------------------------------
% Frame Number
%---------------------------------------------------------------------
\setbeamercolor{frame number}{fg = leipzigDarkRed, bg=}%
%---------------------------------------------------------------------
% Footnotes
%---------------------------------------------------------------------
\setbeamercolor{footnote}{fg=leipzigDarkGrey!70, bg=}%
%---------------------------------------------------------------------
% Description
%---------------------------------------------------------------------
\setbeamercolor{description item}{fg=leipzigDarkRed,bg=}%
%---------------------------------------------------------------------
% Itemization
%---------------------------------------------------------------------
\setbeamercolor{itemize item}{fg=leipzigDarkRed,bg=}%
\setbeamercolor{itemize subitem}{fg=leipzigDarkRed,bg=}%
\setbeamercolor{itemize subsubitem}{fg=leipzigDarkRed,bg=}%
%---------------------------------------------------------------------
% Bibliography
%---------------------------------------------------------------------
\setbeamercolor{bibliography entry author}{fg=, bg=}%
\setbeamercolor{bibliography entry title}{fg=, bg=}%
\setbeamercolor{bibliography entry location}{fg=, bg=}%
\setbeamercolor{bibliography entry note}{fg=, bg=}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Inner theme %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%---------------------------------------------------------------------
% Definitions
%---------------------------------------------------------------------
\def\beamer@leipzig@location{}%
\newcommand{\location}[1]{\def\beamer@leipzig@location{#1}}%
\def\beamer@leipzig@thankstitle{Vielen Dank!}%
\newcommand{\thankstitle}[1]{\def\beamer@leipzig@thankstitle{#1}}%
\def\beamer@leipzig@address{}%
\newcommand{\address}[1]{\def\beamer@leipzig@address{#1}}%
\def\beamer@leipzig@email{}%
\newcommand{\email}[1]{\def\beamer@leipzig@email{#1}}%
\def\beamer@leipzig@phone{}%
\newcommand{\phone}[1]{\def\beamer@leipzig@phone{#1}}%
\def\beamer@leipzig@website{www.uni-leipzig.de}%
\newcommand{\website}[1]{\def\beamer@leipzig@website{#1}}%
%---------------------------------------------------------------------
% Thanks Page
%---------------------------------------------------------------------
\newcommand{\makethanks}{%
\ifbeamer@inframe\thankspage%
\else%
{%
\AddToShipoutPictureBG*{%
\hbox to \paperwidth{%
\hfill
\resizebox{!}{\paperheight}{%
\begin{tikzpicture}
\path [fill=leipzigDarkRed] (14.4,0)--(16,9)--(16,0)--cycle;
\path [fill=leipzigLightBlue] (10.5,0)--(16,0)--(16,3)--cycle;
\path [clip] (14.4,0)--(16,9)--(16,0)--cycle;
\path [fill=leipzigLightRed] (10.5,0)--(16,0)--(16,3)--cycle;
\end{tikzpicture}
}%
\hspace{-.35cm} % Get rid of right margin on BG
}%
}%
\frame[plain,noframenumbering]{\thankspage}
}%
\fi%
}%
\newcommand{\thankspage}{\usebeamertemplate{thankspage}}
\setbeamertemplate{thankspage}{%
\begin{minipage}[c][\paperheight]{.75\paperwidth}
\vbox to .25\paperheight{\vfill\hbox{\hspace{-8mm}\includegraphics[height=20mm]{logo}}\vfill}%
\vbox to .75\paperheight{
\vfill
\ifx\beamer@leipzig@thankstitle\@empty%
\else%
{\usebeamerfont{thanks title}\usebeamercolor[fg]{title}\MakeUppercase{\beamer@leipzig@thankstitle}\par}%
\vspace*{3ex}
\fi%
\ifx\insertauthor\@empty%
\else%
{\usebeamerfont{thanks author}\usebeamercolor[fg]{thanks text}\insertauthor\par}%
\fi%
\ifx\insertinstitute\@empty%
\vspace*{2ex}
\else%
{\usebeamerfont{thanks text}\usebeamercolor[fg]{thanks text}\insertinstitute\par}%
\vspace*{2ex}
\fi%
\ifx\beamer@leipzig@address\@empty%
\else%
{\usebeamerfont{thanks text}\usebeamercolor[fg]{thanks text}\beamer@leipzig@address\par}%
\fi%
\ifx\beamer@leipzig@phone\@empty%
\vspace*{2ex}
\else%
{\usebeamerfont{thanks text}\usebeamercolor[fg]{thanks text}\beamer@leipzig@phone\par}%
\vspace*{2ex}
\fi%
\ifx\beamer@leipzig@email\@empty%
\else%
{\usebeamerfont{thanks text}\usebeamercolor[fg]{thanks text}\href{mailto:\beamer@leipzig@email}{\beamer@leipzig@email}\par}%
\fi%
\ifx\beamer@leipzig@website\@empty%
\else%
{\usebeamerfont{thanks text}\usebeamercolor[fg]{thanks text}\href{\beamer@leipzig@website}{\beamer@leipzig@website}\par}%
\fi%
\vfill}%
\end{minipage}
}
%---------------------------------------------------------------------
% Section Page
%---------------------------------------------------------------------
\newcommand{\insertsectionHEAD}{%
\expandafter\insertsectionHEADaux\insertsectionhead}
\newcommand{\insertsectionHEADaux}[3]{\MakeUppercase{#3}
}
\if@doSectionPage\@empty%
\else%
\AtBeginSection[]{%
\AddToShipoutPictureBG*{%
\hbox to \paperwidth{
\hfill
\resizebox{!}{\paperheight}{%
\begin{tikzpicture}
\path [fill=leipzigDarkRed] (10,9)--(16,9)--(16,0)--(14,0)--cycle;
\path [fill=leipzigLightBlue] (10.6,0)--(16,0)--(16,9)--(14.6,9)--cycle;
\path [clip] (10,9)--(16,9)--(16,0)--(14,0)--cycle;
\path [fill=leipzigLightRed] (10.6,0)--(16,0)--(16,9)--(14.6,9)--cycle;
\path [fill=leipzigDarkRed] (15,0)--(16,0)--(16,2.25)--cycle;
\end{tikzpicture}
}
\hspace{-.35cm}
}
}
\begin{frame}[plain]
\vbox to \paperheight{\vfil\hbox{\usebeamerfont{section title}{\insertsectionHEAD}}\vfil}%
\end{frame}
}
\fi%
%---------------------------------------------------------------------
% Title Page
%---------------------------------------------------------------------
\renewcommand{\maketitle}{%
\ifbeamer@inframe\titlepage
\else%
{%
\AddToShipoutPictureBG*{%
\hbox to \paperwidth{
\hfill
\resizebox{!}{\paperheight}{%
\begin{tikzpicture}
\path [fill=leipzigDarkRed] (14.4,0)--(16,9)--(16,0)--cycle;
\path [fill=leipzigLightBlue] (10.5,0)--(16,0)--(16,3)--cycle;
\path [clip] (14.4,0)--(16,9)--(16,0)--cycle;
\path [fill=leipzigLightRed] (10.5,0)--(16,0)--(16,3)--cycle;
\end{tikzpicture}
}
\hspace{-.35cm}
}
}
\frame[plain,noframenumbering]{\titlepage}
}
\fi%
}
\renewcommand{\titlepage}{\usebeamertemplate{titlepage}}
\setbeamertemplate{titlepage}{%
\begin{minipage}[c][\paperheight]{.75\paperwidth}
\vbox to .25\paperheight{\vfill\hbox{\hspace{-8mm}\includegraphics[height=20mm]{logo}}\vfill}%
\vbox to .75\paperheight{
\vfill
\ifx\insertsubtitle\@empty%
\else%
{%
\usebeamerfont{subtitle}
\usebeamercolor[fg]{subtitle}
\insertsubtitle\par
}%
\vspace*{1ex}
\fi%
\ifx\inserttitle\@empty%
\else%
{%
\usebeamerfont{title}
\usebeamercolor[fg]{title}
\inserttitle\par
}%
\vspace*{4ex}
\fi%
\ifx \beamer@leipzig@location\@empty%
\else%
{%
\usebeamerfont{institute}
\usebeamercolor[fg]{institute}
\beamer@leipzig@location,
}%
\fi%
\ifx\insertdate\@empty%
\else%
{%
\usebeamerfont{date}
\usebeamercolor[fg]{date}
\insertdate\par
}%
\fi%
\ifx\insertauthor\@empty%
\else%
{%
\usebeamerfont{author}
\usebeamercolor[fg]{author}
\insertauthor\par
}%
\vspace*{2ex}
\fi%
\ifx\inserttitlegraphic\@empty%
\else%
\includegraphics[height=.8cm]{\inserttitlegraphic}
\fi%
\vfill
}%
\end{minipage}
}
%---------------------------------------------------------------------
% Itemize
%---------------------------------------------------------------------
\setbeamertemplate{itemize item}{}
\setbeamertemplate{itemize subitem}{-}
\setbeamertemplate{itemize subsubitem}{\textbullet}
\setlength{\parskip}{0.5em}
%---------------------------------------------------------------------
% Description
%---------------------------------------------------------------------
% Intentionally blank
%---------------------------------------------------------------------
% Enumeration
%---------------------------------------------------------------------
% Intentionally blank
%---------------------------------------------------------------------
% Blocks
%---------------------------------------------------------------------
\newlength{\beamer@leipzig@blocksep}
\newlength{\beamer@leipzig@blockdp}
\newlength{\beamer@leipzig@blockleftskip}
\newlength{\beamer@leipzig@blockrightskip}
\setlength{\beamer@leipzig@blocksep}{0.5ex}
\setlength{\beamer@leipzig@blockdp}{0.6ex}
\setlength{\beamer@leipzig@blockrightskip}{0.5ex}
\setlength{\beamer@leipzig@blockleftskip}{0.5ex}
% Basic block
\setbeamertemplate{block begin}{%
\setbeamercolor{item}{parent=block body}
\par\vskip\medskipamount%
\begin{beamercolorbox}[
sep=\beamer@leipzig@blocksep,
dp=\beamer@leipzig@blockdp,
leftskip=\beamer@leipzig@blockleftskip,
rightskip=\beamer@leipzig@blockrightskip
]{block title}
\usebeamerfont*{block title}\insertblocktitle%
\end{beamercolorbox}%
{\parskip0pt\par}%
{\nointerlineskip\vskip-0.5pt}%
\usebeamerfont{block body}%
\begin{beamercolorbox}[
sep=\beamer@leipzig@blocksep,
dp=\beamer@leipzig@blockdp,
leftskip=\beamer@leipzig@blockleftskip,
rightskip=\beamer@leipzig@blockrightskip,
vmode
]{block body}%
}
\setbeamertemplate{block end}{%
\end{beamercolorbox}\vskip\smallskipamount
}
% Alerted Block
\setbeamertemplate{block alerted begin}{%
\setbeamercolor{item}{parent=block body alerted}
\par\vskip\medskipamount%
\begin{beamercolorbox}[
sep=\beamer@leipzig@blocksep,
dp=\beamer@leipzig@blockdp,
leftskip=\beamer@leipzig@blockleftskip,
rightskip=\beamer@leipzig@blockrightskip
]{block title alerted}
\usebeamerfont*{block title alerted}\insertblocktitle%
\end{beamercolorbox}%
{\parskip0pt\par}%
{\nointerlineskip\vskip-0.5pt}%
\usebeamerfont{block body alerted}%
\begin{beamercolorbox}[
sep=\beamer@leipzig@blocksep,
dp=\beamer@leipzig@blockdp,
leftskip=\beamer@leipzig@blockleftskip,
rightskip=\beamer@leipzig@blockrightskip,
vmode
]{block body alerted}%
}%
\setbeamertemplate{block alerted end}{%
\end{beamercolorbox}\vskip\smallskipamount
}%
% Example block
\setbeamertemplate{block example begin}{%
\par\vskip\medskipamount%
\begin{beamercolorbox}[
sep=\beamer@leipzig@blocksep,
dp=\beamer@leipzig@blockdp,
leftskip=\beamer@leipzig@blockleftskip,
rightskip=\beamer@leipzig@blockrightskip
]{block title example}
\usebeamerfont*{block title example}\insertblocktitle%
\end{beamercolorbox}%
{\parskip0pt\par}%
{\nointerlineskip\vskip-0.5pt}%
\usebeamerfont{block body example}%
\begin{beamercolorbox}[
sep=\beamer@leipzig@blocksep,
dp=\beamer@leipzig@blockdp,
leftskip=\beamer@leipzig@blockleftskip,
rightskip=\beamer@leipzig@blockrightskip,
vmode
]{block body example}%
}%
\setbeamertemplate{block example end}{%
\end{beamercolorbox}\vskip\smallskipamount
}%
%---------------------------------------------------------------------
% Figures
%---------------------------------------------------------------------
% Intentionally blank
%---------------------------------------------------------------------
% Tables
%---------------------------------------------------------------------
% Intentionally blank
%---------------------------------------------------------------------
% Footnotes
%---------------------------------------------------------------------
\setbeamertemplate{footnote}{%
\parindent 0em\noindent%
\raggedright
\usebeamerfont{footnote}
\usebeamercolor{footnote mark}
\hbox to 0.8em{\hfil\insertfootnotemark}
\usebeamercolor{footnote text}
\insertfootnotetext\par%
\vspace{0.75cm}
}
%---------------------------------------------------------------------
% Captions
%---------------------------------------------------------------------
\setbeamertemplate{caption label separator}{: }
\setbeamertemplate{caption}[numbered]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Outer theme %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%---------------------------------------------------------------------
% Headline
%---------------------------------------------------------------------
\setbeamertemplate{headline}{%
\begin{beamercolorbox}[
wd=\textwidth,ht=4ex,
dp=1.5ex,
rightskip=1cm
]{headerline}%
\ifx\insertsectionhead\@empty%
\rule[.5\ht\strutbox]{0.8cm}{0.6pt}\hspace{1mm}
\usebeamerfont{header title}\insertshorttitle\hfill
\else%
\rule[.5\ht\strutbox]{0.8cm}{0.6pt}\hspace{1mm}
\usebeamerfont{header title}
\insertshorttitle
\hspace{1mm}
\usebeamerfont{header subtitle}|
\hspace{1mm}
\insertsectionhead\hfill
\fi%
\end{beamercolorbox}%
\vspace*{-4ex}%
}%
%---------------------------------------------------------------------
% Footline
%---------------------------------------------------------------------
\usenavigationsymbolstemplate{}
\setbeamertemplate{footline}{%
\begin{beamercolorbox}[
wd=\textwidth,
ht=4ex,dp=1.5ex,
leftskip=1cm,
rightskip=1cm
]{footer}%
\usebeamerfont{footer}
\vbox{
\hbox to 0.99\linewidth{\textcolor{leipzigDarkRed}{\rule{0.98\linewidth}{0.6pt}\hfill}}%
\vspace{1mm}%
\hbox to 0.99\linewidth{
%\includegraphics[height=5mm]{wordmark.pdf}
\insertinstitute
\hfill
%\textcolor{leipzigDarkRed}{\insertframenumber\,/\,\inserttotalframenumber} % optional
\textcolor{leipzigDarkRed}{\insertframenumber}
\hspace{.001\linewidth}
}%
}%
\end{beamercolorbox}%
}
%---------------------------------------------------------------------
% Frame Title
%---------------------------------------------------------------------
\setbeamertemplate{frametitle}{%
\begin{beamercolorbox}[
wd=\paperwidth,
leftskip=1cm,
rightskip=1cm,
ht=5ex,dp=1.5ex
]{frame title}%
\usebeamerfont{frame title}\insertframetitle%
\end{beamercolorbox}%
}
\mode
<all>

5
bibliography.bib Normal file
View File

@ -0,0 +1,5 @@
@misc{BeamerManual,
title = {{The beamer class} - User Guide for version 3.50.},
howpublished = {\url{http://tug.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf}},
note = {Accessed: 2018-04-05}
}

BIN
leipzig_theme.pdf Normal file

Binary file not shown.

BIN
logo.pdf Normal file

Binary file not shown.

229
main.tex Normal file
View File

@ -0,0 +1,229 @@
\documentclass[noserifmath,aspectratio=169]{beamer}
\usetheme{leipzig}
\usepackage{booktabs}
\newcommand{\themename}{\textbf{leipzig}~}
\title[Leipzig]{Leipzig}
\subtitle[Beamer Theme]{Beamer theme}
\author{Author}
\institute{Institute}
\date{\today}
\titlegraphic{}
\location{Leipzig}
\thankstitle{Thank You!}
\address{Beethovenstraße 15, 04107 Leipzig}
\email{example@uni-leipzig.de}
\phone{+49 1234 5678910}
%\website{}
\begin{document}
\maketitle
\begin{frame}{Table of contents}
\setbeamertemplate{section in toc}[sections numbered]
\tableofcontents[hideallsubsections]
\end{frame}
\section{Introduction}
\begin{frame}[fragile]{Leipzig}
The \themename theme is a Beamer theme that complies with the corporate design of the Leipzig University.
Enable the theme by loading
\begin{verbatim}
\documentclass{beamer}
\usetheme{leipzig}
\end{verbatim}
Note that this package only works with XeTeX/XeLaTeX, as it depends on \texttt{fontspec}.
\end{frame}
\section{Elements}
\begin{frame}[fragile]{Package Options}
\begin{description}
\item[\texttt{noserifmath}] displays math using Arial
\item[\texttt{nosectionpages}] hides section pages.
\item[\texttt{aspectratio=169}] to enable 16:9 aspect ratio (default is 4:3)
\end{description}
\end{frame}
\begin{frame}[fragile]{Title Page Macros}
The usual title page macros such as author, date, title and subtitle are supported.
Additional options include:
\begin{itemize}
\item short title for use in the header: \verb+\title[short title]{long title}+ (analogous for subtitle)
\item institution for use in the footer: \\ \verb+\institute{institution}+
\item additional graphics on the title page: \\ \verb+\titlegraphic{filename}+
\item location of the talk: \verb+\location{location}+
\end{itemize}
\end{frame}
\begin{frame}[fragile]{Thanks Page Macros}
A ``Thank You!''-Page can be displayed using \verb+\makethanks+. The displayed information can be specified using:
\begin{itemize}
\item \verb+\thankstitle{}+ for a customized thank-you text, default is ``Vielen Dank''
\item \verb+\address{}+
\item \verb+\email{}+
\item \verb+\phone{}+
\item \verb+\website{}+ - default is \texttt{www.uni-leipzig.de}, leave empty to disable
\end{itemize}
\end{frame}
\begin{frame}[fragile]{Typography}
\begin{verbatim}
You can \emph{emphasize} text, \alert{accent}
parts or show \textbf{bold} results.
\end{verbatim}
\begin{center}becomes\end{center}
You can \emph{emphasize} text, \alert{accent} parts or show \textbf{bold} results.\footnote{Footnotes work as well.}
\end{frame}
\begin{frame}{Font features}
\begin{itemize}
\item Regular
\item \textit{Italic}
\item \textbf{Bold}
\item \textbf{\textit{Bold Italic}}
\item \texttt{Monospace}
\item \texttt{\textit{Monospace Italic}}
\item \texttt{\textbf{Monospace Bold}}
\item \texttt{\textbf{\textit{Monospace Bold Italic}}}
\end{itemize}
\end{frame}
\begin{frame}{Lists}
\begin{columns}[T,onlytextwidth]
\column{0.33\textwidth}
Items
\begin{itemize}
\item Item \item Item \item Item
\end{itemize}
\column{0.33\textwidth}
Enumerations
\begin{enumerate}
\item First \item Second \item Last
\end{enumerate}
\column{0.33\textwidth}
Descriptions
\begin{description}
\item[Caption] Text
\item[Caption] Text
\item[Caption] Text
\end{description}
\end{columns}
\end{frame}
\begin{frame}{Figures}
\begin{figure}
\begin{tikzpicture}[scale=1]
\colorlet{col1}{alerted text.fg!80}
\colorlet{col2}{alerted text.fg!60}
\colorlet{col3}{alerted text.fg!40}
\colorlet{col4}{alerted text.fg!20}
\draw [help lines] (-4.25,-1.25) grid (4.25,1.5);
\draw [help lines,step=0.25cm] (-2.99,0) grid (2.99,0.99);
\begin{scope}[smooth,draw=gray!20,y=0.3989422804cm]
\filldraw [fill=col3] plot[id=f1,domain=-3:-2] function {exp(-x*x/2)}
-- (-2,0) -- (-3,0) -- cycle;
\filldraw [fill=col2] plot[id=f2,domain=-2:-1] function {exp(-x*x/2)}
-- (-1,0) -- (-2,0) -- cycle;
\filldraw [fill=col1] plot[id=f3,domain=-1:0] function {exp(-x*x/2)}
-- (0,0) -- (-1,0) -- cycle;
\filldraw [fill=col1] plot[id=f4,domain=0:1] function {exp(-x*x/2)}
-- (1,0) -- (0,0) -- cycle;
\filldraw [fill=col2] plot[id=f5,domain=1:2] function {exp(-x*x/2)}
-- (2,0) -- (1,0) -- cycle;
\filldraw [fill=col3] plot[id=f6,domain=2:3] function {exp(-x*x/2)}
-- (3,0) -- (2,0) -- cycle;
\draw[black] plot[id=f7,domain=-4.25:4.25,samples=100]
function {exp(-x*x/2)};
\end{scope}
\draw[->] (-4.25,0) -- (4.25,0) node [right] {$x$};
\foreach \pos/\label in {-3/$-3\sigma$,-2/$-2\sigma$,-1/$-\sigma$,
1/$\sigma$,2/$2\sigma$,3/$3\sigma$}
\draw (\pos,0) -- (\pos,-0.1) (\pos cm,-3ex) node
[anchor=base,fill=white,inner sep=1pt] {\label};
\draw (-0.1,1) -- (.1,1) node [right,fill=white,inner sep=1pt] {$\sigma$};
\foreach \pos/\percent/\height in {1/34/0.5,2/14/0.25,3/2/0.125,4/0.1/0.1}
{
\node[text=col\pos,anchor=base,yshift=2pt,xshift=-0.625cm,
inner sep=1pt] at (\pos,\height) {$\percent\%$};
\node[text=col\pos,anchor=base,yshift=2pt,xshift=.625cm,
inner sep=1pt] at (-\pos,\height) {$\percent\%$};
}
\end{tikzpicture}
\caption{Standard deviation from \href{http://texample.net/tikz/examples/standard-deviation/}{texample.net}.}
\end{figure}
\end{frame}
\begin{frame}{Tables}
\begin{table}
\caption{Largest cities in the world (source: Wikipedia)}
\begin{tabular}{@{} lr @{}}
\toprule
City & Population\\
\midrule
Mexico City & 20,116,842\\
Shanghai & 19,210,000\\
Peking & 15,796,450\\
Istanbul & 14,160,467\\
\bottomrule
\end{tabular}
\end{table}
\end{frame}
\begin{frame}{Blocks}
Three different block environments are pre-defined.
\begin{block}{Default}
Block content.
\end{block}
\begin{alertblock}{Alert}
Block content.
\end{alertblock}
\begin{exampleblock}{Example}
Block content.
\end{exampleblock}
\end{frame}
\begin{frame}{Math}
\begin{equation*}
\frac{1}{\sigma\sqrt{2\pi}}\exp\biggl(\frac{-x^2}{2\sigma^2}\biggr)
\end{equation*}
\end{frame}
\begin{frame}[fragile]{Citations}
For a general introduction to creating slides with Beamer, refer to the Beamer manual.\cite{BeamerManual}
To split your bibliography into multiple frames, use the \verb+[allowframebreaks]+ option.
\end{frame}
\makethanks
\section{References}
\begin{frame}[allowframebreaks]
\bibliographystyle{plain}
\bibliography{bibliography.bib}
\end{frame}
\section{Appendix}
\begin{frame}{Appendix}
Things that differ in the \LaTeX~ version compared to the original \texttt{.pptx} style:
\begin{itemize}
\item the footer does not include the university wordmark, as a vector-based graphic file of such is not obtainable from the university
\item the frame titles are not converted to uppercase, as this introduces a bug with the \texttt{[allowframebreaks]} option
\end{itemize}
\end{frame}
\end{document}