Add Projektion theme

Signed-off-by: Adrian C. Hinrichs's avatarAdrian C. Hinrichs <adrian.hinrichs@rwth-aachen.de>
parent 3c7304e1
\mode<presentation>
% Yes, these definitions are from the rwth-template
\definecolor{rwth} {RGB}{ 0 84 159}
\definecolor{rwth-75}{RGB}{ 64 127 183}
\definecolor{rwth-50}{RGB}{142 186 229}
\definecolor{rwth-25}{RGB}{199 221 242}
\definecolor{rwth-10}{RGB}{232 241 250}
% All the other colors
% Secondary colors
\definecolor{black} {RGB}{ 0 0 0}
\definecolor{black-75}{RGB}{100 101 103}
\definecolor{grun} {RGB}{ 87 171 39}
\definecolor{grun-75}{RGB}{141 192 96}
\definecolor{grun-50}{RGB}{184 214 152}
\definecolor{grun-25}{RGB}{221 235 206}
\definecolor{grun-10}{RGB}{242 247 236}
\definecolor{rot} {RGB}{204 7 30}
\definecolor{rot-75}{RGB}{216 92 65}
\definecolor{rot-50}{RGB}{230 150 121}
\definecolor{rot-25}{RGB}{243 205 187}
\definecolor{rot-10}{RGB}{250 235 227}
% Main colors
\setbeamercolor*{normal text}{fg=black}
\setbeamercolor*{structure}{fg=rwth}
\setbeamercolor{palette primary}{ use=structure,fg=structure.fg,bg=rwth-50}
\setbeamercolor{palette secondary}{ use=structure,fg=structure.fg,bg=rwth-25}
\setbeamercolor{palette tertiary}{ use=structure,fg=structure.fg,bg=rwth-10}
\setbeamercolor{palette quaternary}{use=structure,fg=structure.fg,bg=rwth-10}
% Sidebar
\setbeamercolor*{sidebar}{parent=palette primary}
\setbeamercolor*{palette sidebar primary}{use=normal text,fg=normal text.fg}
\setbeamercolor*{palette sidebar secondary}{use=structure,fg=structure.fg}
\setbeamercolor*{palette sidebar tertiary}{use=normal text,fg=normal text.fg}
\setbeamercolor*{palette sidebar quaternary}{use=structure,fg=structure.fg}
% Outer structure
\setbeamercolor{frametitle}{fg=black}
\setbeamercolor{title}{fg=black}
\setbeamercolor{subtitle}{fg=black}
\setbeamercolor{author}{fg=black-75}
\setbeamercolor{date}{fg=black}
\setbeamercolor{section}{fg=black}
% Blocks and special text
\setbeamercolor*{block title}{fg=palette primary,bg=palette secondary}
\setbeamercolor{block body}{bg=palette tertiary}
\setbeamercolor*{example text}{fg=grun}
\setbeamercolor{block title example}{bg=grun-25}
\setbeamercolor{block body example}{bg=grun-10}
\setbeamercolor*{alerted text}{fg=rot}
\setbeamercolor{block title alerted}{bg=rot-25}
\setbeamercolor{block body alerted}{bg=rot-10}
% Title page header bar
\setbeamercolor{title page bar}{parent={primary}}
\mode<all>
\mode<presentation>
% We want spacing of 1.5. This are the already calculated
% sizes:
% {16pt}{24pt}
% {18pt}{27pt}
% {20pt}{30pt}
% {22pt}{33pt}
%
% Note that we will not have headers or footers, so we will not set any
% attributes for them
% Current normal font does nothing, but may change
\setbeamerfont{normal text}{size*={22pt}{33pt}}
% Force normal font this way
\AtBeginDocument{\fontsize{22}{33}\selectfont}
% Author is specific for our template!
\setbeamerfont{author}{size*={18pt}{27.6pt}}
\setbeamerfont{title}{size*={50pt}{75pt},series=\bfseries}
\setbeamerfont{frametitle}{size*={50pt}{75pt},series=\bfseries}
\setbeamerfont{itemize item}{size*={22pt}{33pt}}
\setbeamerfont{itemize subitem}{size*={18pt}{27pt}}
\setbeamerfont{itemize subsubitem}{size*={18pt}{27pt}}
\setbeamerfont{enumerate item}{size*={22pt}{33pt}}
\setbeamerfont{enumerate subitem}{size*={18pt}{27pt}}
\setbeamerfont{enumerate subsubitem}{size*={18pt}{27pt}}
\setbeamerfont{itemize/enumerate body}{size*={22pt}{33pt}}
\setbeamerfont{itemize/enumerate subbody}{size*={18pt}{27pt}}
\setbeamerfont{itemize/enumerate subsubbody}{size*={18pt}{27pt}}
\setbeamerfont{block title}{size*={22pt}{33pt}}
% Print alert in bold as not to rely only on color for emphasis
\setbeamerfont{alerted text}{series=\bfseries}
\setbeamerfont{block title alerted}{series=\mdseries}
\mode<all>
\mode<presentation>
\RequirePackage{tikz}
\RequirePackage{calc}
\RequirePackage{ifthen}
\providecommand\inserttitle{}
\providecommand\insertsubtitle{}
\usetikzlibrary{calc}
% #1: Color
% #2: Image path (can be empty))
\newcommand{\prjktn@titlepagebox}[2]{
\tikz[overlay, remember picture] {
\fill[color=#1] ($(current page.north west)$) rectangle
($(current page.north east)+(0,-\titlebarheight)$);
\ifthenelse{\equal{#2}{}}{}{
\node[inner sep=0pt] (picture) at ($(current page.north
west)+(0.5\paperwidth,-.5\titlebarheight)$) {
\includegraphics[width=\paperwidth]{#2}};}
}
}
\newcommand{\prjktn@inversetitlepagebox}[2]{
\tikz[overlay, remember picture] {
\fill[color=#1] ($(current page.south west)$) rectangle
($(current page.north east)+(0,-\titlebarheight)$);
\ifthenelse{\equal{#2}{}}{}{
\node[inner sep=0pt] (picture) at ($(current page.north
west)+(0.5\paperwidth,-.5\titlebarheight)$) {
\includegraphics[width=\paperwidth]{#2}};}
}
}
\newcommand{\prjktn@debug@cross}{
\tikz[overlay, remember picture] {
\draw[color=red] (current page.north)
-- (current page.south);
\draw[color=red] (current page.west)
-- (current page.east);
}
}
\defbeamertemplate*{background}{projektion}{}
%%%
% Title page
%%%
\defbeamertemplate{title page}{projektion}[1][]{
\usebeamercolor{title page bar}
\prjktn@titlepagebox{fg}{}
\tikz[overlay, remember picture]{
% Insert title
\node[anchor=east] (title) at ($(current page.south west)+(0.7\paperwidth,.5\paperheight-.5\titlebarheight)$)
{\usebeamerfont{title}\inserttitle{}};
% Paint Line
\draw[line width=2pt,color=fg] ($(current page.south west)
+ (0.725\paperwidth,.5\paperheight-.5\titlebarheight+.75\titleheight)$)
-- ($(current page.south west)
+ (0.725\paperwidth,.5\paperheight-.5\titlebarheight-.75\titleheight)$);
\usebeamercolor{author}
% Insert author
\node[color=fg,anchor=west, text width=.2\paperwidth] (author) at ($(current page.south west)
+ (0.75\paperwidth,.5\paperheight-.5\titlebarheight)$)
{\usebeamerfont{author}\insertauthor};
}
}
%%%
% Template for final slide
%%%
\defbeamertemplate{final page}{projektion}[2][]{
\usebeamercolor{title page bar}
\prjktn@inversetitlepagebox{fg}{}
\tikz[overlay, remember picture]{
% Insert title
\node (finalOne) at ($(current page.south west)+(0.5\paperwidth,\titlebarheight)$)
{\usebeamerfont{title}#1};
% Insert author
\node[color=white] (finalTwo) at ($(current page.south) + (0,.5\paperheight-.5\titlebarheight)$)
{\usebeamerfont{title}#2};
}
}
%%%
% Items
%%%
\defbeamertemplate*{itemize item}{bullet}{}
\defbeamertemplate*{itemize subitem}{bar}{\textendash}
\defbeamertemplate*{itemize subsubitem}{sq}{\fontsize{8pt}{8pt}\selectfont}
\setbeamertemplate{enumerate item}{\arabic{enumi}.}
\setbeamertemplate{enumerate subitem}{\roman{enumii}.}
\setbeamertemplate{enumerate subsubitem}{\Roman{enumiii}.}
%%%
% Margins
%%%
\setbeamersize{text margin left=\leftmargin}
\setbeamersize{text margin right=\rightmargin}
\mode<all>
\ No newline at end of file
\mode<presentation>
\RequirePackage{calc}
\RequirePackage{graphicx}
\defbeamertemplate*{footertext}{projektion}{}
\defbeamertemplate*{footertextextra}{projektion}{}
\setlength{\headsep}{0pt}
\makeatletter
\newlength\leftmarrr
\setlength{\leftmarrr}{\beamer@leftmargin}
\makeatother
\makeatletter
\define@key{beamerframe}{t}[true]{% top
\beamer@frametopskip=\titleheight\relax%
\beamer@framebottomskip=0pt plus 1fill\relax%
\beamer@frametopskipautobreak=\beamer@frametopskip\relax%
\beamer@framebottomskipautobreak=\beamer@framebottomskip\relax%
\def\beamer@initfirstlineunskip{%
\def\beamer@firstlineitemizeunskip{%
\vskip-\partopsep\vskip-\topsep\vskip-\parskip%
\global\let\beamer@firstlineitemizeunskip=\relax}%
\everypar{\global\let\beamer@firstlineitemizeunskip=\relax}}
}
\makeatother
%%%
% Header
%%%
\defbeamertemplate*{headline}{rwth}{}
%%%
% Frame title
%%%
\defbeamertemplate*{frametitle}{projektion}
{
\usebeamercolor{title page bar}
\vskip\titleheight
\hspace{-1em}
\tikz[baseline=0.5ex]{
\draw[line width=2pt,color=fg] (0,0)--(0,1.25\titleheight);
}
\insertframetitle
}
%%%
% Footer
%%%
\defbeamertemplate*{footline}{projektion}{
\usebeamercolor{title page bar}
\tikz[overlay, remember picture]{
\draw[color=fg,fill] (current page.south west) rectangle ($(current
page.south west)+(\insertframenumber * (\paperwidth/\inserttotalframenumber, .5mm)$)
}
}
\defbeamertemplate*{sidebar left}{projektion}{}
\defbeamertemplate*{sidebar right}{projektion}{}
\setbeamersize{sidebar width left=0pt}
\setbeamersize{sidebar width right=0pt}
\defbeamertemplate*{navigation symbols}{projektion}{}
\mode<all>
\ No newline at end of file
% Projektion-Beamer style.
% Based uppon a PowerPoint-Template by Alexander Bartolomey
%
% Author: Adrian C. Hinrichs
% Version: 2019-09-04
\mode<presentation>
%This template uses a 16:9 paper-format
\geometry{paperwidth=33.867cm,paperheight=19.05cm}
\newlength{\titlepagelinewidth}
\setlength{\titlepagelinewidth}{.75\paperwidth}
\newlength{\titleheight}
\setlength{\titleheight}{1.5cm}
\newlength{\titlebarheight}
\setlength{\titlebarheight}{0.66\paperheight}
\setlength{\rightmargin}{.1\paperwidth}
\setlength{\leftmargin}{.1\paperwidth}
\setlength{\leftmargini}{1em}
\setlength{\leftmarginii}{3em}
\setlength{\leftmarginiii}{3em}
% Load all the parts
\useinnertheme{projektion}
\useoutertheme{projektion}
\usecolortheme{projektion}
\usefonttheme{projektion}
\mode<all>
\ No newline at end of file
% This file provides an example Beamer presentation using the RWTH theme
% showcasing some of the more common options, similar to the Powerpoint version
% 12.11.2014: Revision 1 (Harold Bruintjes, Tim Lange)
% For RWTH, beamer should be loaded with class option t (top)
\documentclass[t]{beamer}
%\usepackage[utf8]{inputenc}
% Use fontspec to get Arial font
% Requires use of XeLaTeX
\usepackage{fontspec}
\setmainfont{Product Sans}
\setsansfont{Product Sans}
% Also force Arial for math for a more consistent look
%\usepackage{unicode-math}
%\setmathfont{Arial}
% German style date formatting (footer)
\usepackage[ddmmyyyy]{datetime}
\renewcommand{\dateseparator}{.}
% Format the captions used for figures etc.
\usepackage[compatibility=false]{caption}
\captionsetup{singlelinecheck=off,justification=raggedleft,labelformat=empty,labelsep=none}
% Load the actual RWTH theme. Suggested is to load the full theme,
% as it requires some specific dimensions
\usetheme{projektion}
% Setup presentation information
\title{Testing:Pytest und Gitlab-CI}
\subtitle{}
\date[RWTH]{Maschinelle Übersetzung\enskip \enskip\today}
\author{Georg,\\Adrian}
\institute[RWTH]{RWTH Aachen University}
% Set the logo to the file `logo`
% It will be scaled automatically
\logo{}
% Uncomment this if you want a TOC at every section start
%\AtBeginSection{\frame{
% \frametitle{Content}
% \tableofcontents[currentsection]
%}}
\begin{document}
% Note: Title pages should be created as plain
% Title page with a blue bar
\setbeamercolor{title page bar}{fg=rwth}
\setbeamertemplate{title page}[projektion]{}
\begin{frame}[plain]
\titlepage
\end{frame}
% Title page with a 1/3rd size picture
%\setbeamercolor{title page bar}{fg=white}
%\setbeamertemplate{title page}[rwth][title_small]{}
%\begin{frame}[plain]
%\titlepage
%\end{frame}
% Title page with a 2/3rd size picture
%\setbeamertemplate{title page}[rwth2][title_large]{}
%\begin{frame}[plain]
%\titlepage
%\end{frame}
% Start a new section (text is displayed on top of a frame)
% Frame with items
\begin{frame}{Inhalt}
\tableofcontents
\end{frame}
\section{Pytest}
\begin{frame}
\frametitle{Pytest}
Auf dieser Folie steht ein Fließtext, auch wenn man dies eigentlich
bei Folien lassen sollte. Da hier aber ein Fließtext sthet, kann
ich die rechten und linken ränder so wie das umbruchverhalten begutachten.
\end{frame}
\begin{frame}{Warum Testing?}
\begin{itemize}
\item \emph{Spontante Desintegration} der Ariane 5
\item \emph{Spontante Desintegration} des Mars Climate Orbiters
\item \emph{Spontante Desintegration} der Delta 3
\end{itemize}
\end{frame}
\begin{frame}{Frame title}
\begin{itemize}
\item First\alert{level}
\begin{itemize}
\item Second level
\begin{itemize}
\item Third level
\end{itemize}
\end{itemize}
\end{itemize}
\end{frame}
\setbeamertemplate{final page}[projektion][Noch Fragen?]{Danke für
eure Aufmerksamkeit!}
\begin{frame}[plain]
\usebeamertemplate{final page}
\end{frame}
\end{document}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment