2023-06-12 12:54:25 +00:00
|
|
|
%%%
|
|
|
|
%%% Project: AraCom - LaTeX Template
|
|
|
|
%%% Description: This is the basic LaTeX Template for all AraCom related presentations
|
|
|
|
%%% Version: 1.0
|
|
|
|
%%% Author: Robert Jeutter <robert.jeutter@aracom.de>
|
|
|
|
%%% Maintainer: Robert Jeutter <robert.jeutter@aracom.de>
|
|
|
|
%%% Creation-Date: 07.06.2023
|
|
|
|
%%% Copyright: (c) 2023 Robert Jeutter
|
|
|
|
%%% Images by AraCom IT Service
|
|
|
|
%%%
|
|
|
|
|
|
|
|
\usepackage{multirow}
|
|
|
|
\usepackage{subfigure}
|
|
|
|
\usepackage{etoolbox}
|
|
|
|
\usepackage{tikz}
|
|
|
|
\usepackage{listings}
|
|
|
|
\usepackage{graphicx}
|
|
|
|
\usepackage{xcolor}
|
|
|
|
\usepackage{amsfonts, amsmath, oldgerm, lmodern, animate}
|
|
|
|
\usepackage{verbatim}
|
|
|
|
\usepackage{bm}
|
2023-08-22 08:40:42 +00:00
|
|
|
\usepackage[T1]{fontenc}
|
2023-06-12 12:54:25 +00:00
|
|
|
\graphicspath{{./images/}}
|
|
|
|
|
2023-08-22 08:40:42 +00:00
|
|
|
\RequirePackage{arafont}
|
|
|
|
|
|
|
|
\definecolor{aracomblue}{RGB}{96, 167, 192}
|
2023-06-12 12:54:25 +00:00
|
|
|
\definecolor{aracomgrey}{rgb}{0.9, 0.9, 0.9}
|
|
|
|
|
|
|
|
\setbeamercolor{block title}{fg=white,bg=aracomblue}
|
|
|
|
\setbeamercolor{block body}{fg=white,bg=aracomblue}
|
|
|
|
|
|
|
|
\newcommand{\themecolor}[1]{
|
2023-08-22 08:40:42 +00:00
|
|
|
\setbeamercolor{normal text}{fg=darkgray,bg=white}
|
|
|
|
\setbeamercolor{structure}{fg=aracomblue}
|
|
|
|
\setbeamercolor{block title}{fg=aracomblue,bg=aracomgrey}
|
|
|
|
\setbeamercolor{block body}{fg=darkgray,bg=aracomgrey}
|
2023-06-12 12:54:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
\themecolor{white}
|
|
|
|
\setbeamercolor{title}{fg=aracomblue}
|
|
|
|
\setbeamercolor{author}{fg=black}
|
|
|
|
\setbeamercolor{date}{fg=black}
|
|
|
|
|
2023-08-22 08:40:42 +00:00
|
|
|
\setbeamerfont{author}{size=\scriptsize}
|
|
|
|
\setbeamerfont{date}{size=\tiny}
|
|
|
|
\setbeamerfont{title}{series=\bfseries, size=\fontsize{36}{40}}
|
|
|
|
\setbeamerfont{subtitle}{series=\mdseries,size=\footnotesize}
|
2023-06-12 12:54:25 +00:00
|
|
|
\setbeamerfont{frametitle}{series=\bfseries}
|
|
|
|
\setbeamerfont{framesubtitle}{series=\mdseries}
|
|
|
|
\setbeamerfont{block title}{series=\centering, size=\small}
|
|
|
|
\setbeamerfont{block body}{size=\scriptsize}
|
|
|
|
|
|
|
|
% Code to get prettier boxes
|
|
|
|
\setbeamertemplate{blocks}[rounded, shadow=true]
|
|
|
|
|
|
|
|
% Bullets in several levels
|
|
|
|
\setbeamertemplate{itemize item}{\textbullet}
|
|
|
|
\setbeamertemplate{itemize subitem}{\textemdash}
|
|
|
|
\setbeamertemplate{itemize subsubitem}{\ensuremath{\circ}}
|
|
|
|
|
|
|
|
\newenvironment{colorblock}[3][white]{%
|
2023-08-22 08:40:42 +00:00
|
|
|
\begingroup
|
|
|
|
\setbeamercolor{block title}{fg=#1,bg=#2}
|
|
|
|
\setbeamercolor{block body} {fg=#1,bg=#2}
|
|
|
|
\begin{block}{#3}
|
|
|
|
}{%
|
|
|
|
\end{block}
|
|
|
|
\endgroup
|
2023-06-12 12:54:25 +00:00
|
|
|
}
|
|
|
|
|
2023-08-22 08:40:42 +00:00
|
|
|
% Put the logo in each slide's down right area
|
|
|
|
\pgfdeclareimage[width=0.4\paperwidth]{araLogo}{./images/aracom_Logo-2023-white.png}
|
|
|
|
\renewcommand{\logo}{araLogo}
|
|
|
|
\setbeamertemplate{headline}{\vspace{1ex}\hspace{0.02\paperwidth} \LARGE{AraCom}}
|
2023-06-12 12:54:25 +00:00
|
|
|
|
|
|
|
% Define frame title and subtitle layout
|
|
|
|
\setbeamertemplate{frametitle}{
|
|
|
|
\begin{beamercolorbox}[leftskip=2cm]{frametitle}%
|
2023-08-22 08:40:42 +00:00
|
|
|
\usebeamerfont{frametitle}\insertframetitle\\
|
2023-06-12 12:54:25 +00:00
|
|
|
\usebeamerfont{framesubtitle}\insertframesubtitle%
|
|
|
|
\end{beamercolorbox}
|
|
|
|
}
|
|
|
|
|
|
|
|
% Define the title page
|
|
|
|
\setbeamertemplate{title page}{
|
|
|
|
\vskip0pt plus 1filll
|
2023-08-22 08:40:42 +00:00
|
|
|
\hspace{-12mm}% Pull back the box in an inelegant way - but it works!
|
|
|
|
\begin{beamercolorbox}[wd=0.9\textwidth,sep=10pt,leftskip=8mm]{title}
|
2023-06-12 12:54:25 +00:00
|
|
|
{\usebeamerfont{title}\inserttitle}
|
|
|
|
|
2023-08-22 08:40:42 +00:00
|
|
|
%{\usebeamerfont{subtitle}\insertsubtitle}
|
2023-06-12 12:54:25 +00:00
|
|
|
|
|
|
|
{\usebeamerfont{author}\usebeamercolor[fg]{author}\insertauthor}
|
|
|
|
|
|
|
|
{\usebeamerfont{date}\usebeamercolor[fg]{date}\insertdate}
|
|
|
|
\end{beamercolorbox}
|
2023-08-22 08:40:42 +00:00
|
|
|
\setbeamertemplate{footline}{}
|
|
|
|
\vspace{-.6ex}\hspace{0.57\paperwidth}\pgfuseimage{\logo}
|
2023-06-12 12:54:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
\newcommand{\TikzSplitSlide}[1]{%
|
|
|
|
\rule{0.4\paperwidth}{0pt}%
|
|
|
|
\begin{tikzpicture}
|
|
|
|
\clip (-0.1\paperwidth,-0.5\paperheight) --
|
2023-08-22 08:40:42 +00:00
|
|
|
( 0.5\paperwidth,-0.5\paperheight) --
|
|
|
|
( 0.5\paperwidth, 0.5\paperheight) --
|
|
|
|
( 0.1\paperwidth, 0.5\paperheight) -- cycle;
|
2023-06-12 12:54:25 +00:00
|
|
|
\node at (0.2\paperwidth,0) {%
|
|
|
|
\includegraphics[height=\paperheight]{#1}%
|
|
|
|
};
|
|
|
|
\end{tikzpicture}
|
|
|
|
}
|
|
|
|
|
|
|
|
\renewcommand{\maketitle}{
|
2023-08-22 08:40:42 +00:00
|
|
|
\begingroup
|
2023-06-12 12:54:25 +00:00
|
|
|
\setbeamertemplate{background}{
|
2023-08-22 08:40:42 +00:00
|
|
|
\includegraphics[height=\paperheight]{./images/background.png}
|
2023-06-12 12:54:25 +00:00
|
|
|
}
|
|
|
|
\vspace{-5ex}\hspace{-5ex}\begin{frame}
|
2023-08-22 08:40:42 +00:00
|
|
|
\Large\titlepage%
|
2023-06-12 12:54:25 +00:00
|
|
|
\end{frame}
|
2023-08-22 08:40:42 +00:00
|
|
|
\endgroup
|
2023-06-12 12:54:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
\newenvironment{chapter}[3][]{% Args: image (optional), color, frame title
|
|
|
|
\begingroup
|
|
|
|
\themecolor{blue}
|
2023-08-22 08:40:42 +00:00
|
|
|
\ifstrequal{#2}{aracomblue}{ % Use blue text, else white
|
2023-06-12 12:54:25 +00:00
|
|
|
\setbeamercolor{frametitle}{fg=white}
|
|
|
|
\setbeamercolor{normal text}{fg=white,bg=#2}
|
2023-08-22 08:40:42 +00:00
|
|
|
}{
|
|
|
|
\setbeamercolor{frametitle}{fg=aracomblue}
|
|
|
|
\setbeamercolor{normal text}{fg=aracomblue,bg=#2}
|
2023-06-12 12:54:25 +00:00
|
|
|
}
|
|
|
|
\ifstrempty{#1}{}{\setbeamertemplate{background}{\TikzSplitSlide{#1}}}
|
|
|
|
\setbeamertemplate{frametitle}{%
|
|
|
|
\vspace*{8ex}
|
|
|
|
\begin{beamercolorbox}[wd=0.45\textwidth]{frametitle}
|
|
|
|
\usebeamerfont{frametitle}\insertframetitle\\
|
|
|
|
\usebeamerfont{framesubtitle}\insertframesubtitle%
|
|
|
|
\end{beamercolorbox}
|
|
|
|
}
|
|
|
|
\begin{frame}{#3}
|
2023-08-22 08:40:42 +00:00
|
|
|
\hspace*{0.05\textwidth}%
|
|
|
|
\minipage{0.35\textwidth}%
|
|
|
|
\usebeamercolor[fg]{normal text}%
|
|
|
|
}{%
|
|
|
|
\endminipage%
|
2023-06-12 12:54:25 +00:00
|
|
|
\end{frame}
|
|
|
|
\endgroup
|
|
|
|
}
|
|
|
|
|
|
|
|
\newenvironment{sidepic}[2]{% Args: image, frame title
|
|
|
|
\begingroup
|
|
|
|
\setbeamertemplate{background}{%
|
2023-08-22 08:40:42 +00:00
|
|
|
\hspace*{0.6\paperwidth}%
|
|
|
|
\includegraphics[height=\paperheight]{#1}%
|
2023-06-12 12:54:25 +00:00
|
|
|
}
|
|
|
|
\setbeamertemplate{frametitle}{% Same as normal, but with right skip
|
|
|
|
\vspace*{-3.5ex}
|
|
|
|
\begin{beamercolorbox}[leftskip=2cm,rightskip=0.4\textwidth]{frametitle}%
|
|
|
|
\usebeamerfont{frametitle}\insertframetitle\\
|
|
|
|
\usebeamerfont{framesubtitle}\insertframesubtitle%
|
|
|
|
\end{beamercolorbox}
|
|
|
|
}
|
|
|
|
\begin{frame}{#2}
|
2023-08-22 08:40:42 +00:00
|
|
|
\minipage{0.6\textwidth}%
|
|
|
|
}{%
|
|
|
|
\endminipage%
|
2023-06-12 12:54:25 +00:00
|
|
|
\end{frame}
|
|
|
|
\endgroup
|
|
|
|
}
|
|
|
|
|
|
|
|
\newcommand{\strtoc}{Table of Contents}
|
|
|
|
\newcommand{\strsubsec}{Section \thesection.\thesubsection}
|
|
|
|
|
|
|
|
% TYPESETTING ELEMENTS
|
|
|
|
|
|
|
|
% style of section presented in the table of contents
|
|
|
|
\setbeamertemplate{section in toc}{$\blacktriangleright$~\inserttocsection}
|
|
|
|
|
|
|
|
% style of subsection presented in the table of contents
|
|
|
|
\setbeamertemplate{subsection in toc}{}
|
2023-08-22 08:40:42 +00:00
|
|
|
\setbeamertemplate{subsection in toc}{\textcolor{white}\footnotesize\hspace{1.2 em}$\blacktriangleright$~\inserttocsubsection}
|
2023-06-12 12:54:25 +00:00
|
|
|
|
|
|
|
% automate subtitle of each frame
|
|
|
|
\makeatletter
|
2023-08-22 08:40:42 +00:00
|
|
|
%\pretocmd\beamer@checkframetitle{\framesubtitle{\thesection\, \secname}}
|
2023-06-12 12:54:25 +00:00
|
|
|
\makeatother
|
|
|
|
|
|
|
|
% avoid numbering of frames that are breaked into multiply slides
|
|
|
|
\setbeamertemplate{frametitle continuation}{}
|
|
|
|
|
|
|
|
% at the begining of section, add table of contents with the current section highlighted
|
|
|
|
\AtBeginSection[]
|
|
|
|
{
|
2023-08-22 08:40:42 +00:00
|
|
|
\begingroup
|
|
|
|
\themecolor{blue}
|
|
|
|
\begin{chapter}[./images/titleimage.png]{white}{Übersicht}
|
|
|
|
\tableofcontents[currentsection]
|
|
|
|
\end{chapter}
|
|
|
|
\endgroup
|
2023-06-12 12:54:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
% at the beginning of subsection, add subsection title page
|
|
|
|
\AtBeginSubsection[]
|
|
|
|
{
|
2023-08-22 08:40:42 +00:00
|
|
|
\begin{frame}{\,}{\thesection\, \secname}
|
|
|
|
\fontfamily{ptm}\selectfont
|
|
|
|
\centering\textsl{\textbf{\textcolor{aracomblue}{
|
|
|
|
\large Section \thesection.\thesubsection%
|
|
|
|
\vskip15pt
|
|
|
|
\LARGE \subsecname%
|
2023-06-12 12:54:25 +00:00
|
|
|
}}}
|
2023-08-22 08:40:42 +00:00
|
|
|
\end{frame}
|
2023-06-12 12:54:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
% code bolck setting
|
|
|
|
\definecolor{codegreen}{RGB}{101,218,120}
|
|
|
|
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
|
|
|
|
\definecolor{codepurple}{rgb}{0.58,0,0.82}
|
|
|
|
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
|
|
|
|
|
|
|
|
\lstdefinestyle{mystyle}{
|
2023-08-22 08:40:42 +00:00
|
|
|
% backgroundcolor=\color{backcolour},
|
|
|
|
commentstyle=\color{aracomblue},
|
|
|
|
keywordstyle=\color{magenta},
|
|
|
|
numberstyle=\tiny\color{codegray},
|
|
|
|
stringstyle=\color{codepurple},
|
|
|
|
basicstyle=\ttfamily\scriptsize,
|
|
|
|
breakatwhitespace=false,
|
|
|
|
breaklines=true,
|
|
|
|
captionpos=b,
|
|
|
|
keepspaces=true,
|
|
|
|
numbers=left,
|
|
|
|
numbersep=5pt,
|
|
|
|
showspaces=false,
|
|
|
|
showstringspaces=false,
|
|
|
|
showtabs=false,
|
|
|
|
tabsize=4,
|
|
|
|
xleftmargin=10pt,
|
|
|
|
xrightmargin=10pt,
|
2023-06-12 12:54:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
\lstset{style=mystyle}
|
|
|
|
|
|
|
|
% NEW COMMANDS
|
|
|
|
|
|
|
|
% set colored hyperlinks command
|
2023-08-22 08:40:42 +00:00
|
|
|
\newcommand{\hrefcol}[2]{\textcolor{aracomgrey}{\href{#1}{#2}}}
|
2023-06-12 12:54:25 +00:00
|
|
|
\newcommand{\hlinkcol}[1]{\hrefcol{#1}{#1}}
|
|
|
|
|
|
|
|
|
|
|
|
% centering paragraph statement
|
|
|
|
\newcommand{\centerstate}[1]{
|
2023-08-22 08:40:42 +00:00
|
|
|
\centering
|
|
|
|
\begin{columns}
|
|
|
|
\begin{column}{0.8\textwidth}
|
|
|
|
#1
|
|
|
|
\end{column}
|
|
|
|
\end{columns}
|
2023-06-12 12:54:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
% colored textbf
|
|
|
|
\newcommand{\atextbf}[1]{\textbf{\textcolor{aracomblue}{#1}}}
|
|
|
|
\newcommand{\atextsl}[1]{\textsl{\textcolor{aracomblue}{#1}}}
|
|
|
|
\newcommand{\aemph}[1]{\emph{\textcolor{aracomblue}{#1}}}
|
|
|
|
|
|
|
|
% about page
|
|
|
|
\newcommand{\aboutpage}[2]{
|
2023-08-22 08:40:42 +00:00
|
|
|
\begingroup
|
|
|
|
\themecolor{blue}
|
|
|
|
\begin{frame}[c]{#1}{\,}
|
|
|
|
\centering
|
|
|
|
\begin{minipage}{\textwidth}
|
|
|
|
\usebeamercolor[fg]{normal text}
|
|
|
|
\centering
|
|
|
|
\Large \textsl{\normalsize #2}
|
|
|
|
\end{minipage}
|
|
|
|
\end{frame}
|
|
|
|
\endgroup
|
2023-06-12 12:54:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
% bibliography page
|
|
|
|
\newcommand{\bibliographpage}{
|
2023-08-22 08:40:42 +00:00
|
|
|
\section{References}
|
|
|
|
|
|
|
|
\begingroup
|
|
|
|
\themecolor{blue}
|
|
|
|
\begin{frame}[allowframebreaks]{References}{\,}
|
|
|
|
\tiny
|
|
|
|
\printbibliography[heading=none]
|
|
|
|
\end{frame}
|
|
|
|
\endgroup
|
2023-06-12 12:54:25 +00:00
|
|
|
}
|