update current style to new style guide

This commit is contained in:
robert.jeutter 2023-08-22 10:40:42 +02:00
parent 4e5fb2df92
commit 64d866dc6a
6 changed files with 169 additions and 112 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:cbfd87ba74774c5b2e40310c16b6254acef58f62c7ddfd39641dbd18dc9f6111 oid sha256:f2cc6be5b947c7afc344ddd7d684f616d5e257a855d0ac0ca0e3ac837ff3a9d1
size 5435924 size 9374079

View File

@ -55,7 +55,7 @@
\begin{figure}[h] \begin{figure}[h]
\centering \centering
\includegraphics[width=\linewidth]{images/RoboCupFinale2023.jpg} \includegraphics[width=\linewidth]{images/RoboCupFinale2023.jpg}
~ \cite{robocup} RoboCup Soccer Roboter %~ \cite{robocup} RoboCup Soccer Roboter
\end{figure} \end{figure}
\end{column} \end{column}
\begin{column}{0.45\textwidth} \begin{column}{0.45\textwidth}

54
arafont.sty Normal file
View File

@ -0,0 +1,54 @@
\ProvidesPackage{arafont}[2023/08/08]
\usepackage{iftex}
\ifpdftex
% pdfLaTeX does not support directly embedding OpenType fonts
% We will therefore use fonts from the LaTeX font catalogue
% https://tug.org/FontCatalogue
% These fonts are pdfLaTeX ready
% We use OpenSans as Sans Serif and Caladea as the Serif font
\usepackage[defaultsans,scale=0.9]{opensans} % replaces default sans-serif font
\usepackage{caladea} % replaces default serif font
\usepackage[T1]{fontenc}
\fi
\ifxetex
% XeLaTeX directly supports OpenType fonts
% Use XeLaTeX if you would like more options with fonts
\usepackage{fontspec}
% The commands \setsansfont, \setmainfont and \setmonofont are provided by the fontspec package.
% These commands provide a very fine grained control over fonts.
% By default Beamer uses Sans-Serif mode and the font specified in \setsansfont is the font that will be applied in most places.
\setsansfont{Poppins}[
Path=../../images/fonts/,
Scale=0.9,
Extension = .ttf,
UprightFont=*-Regular,
BoldFont=*-Bold,
ItalicFont=*-Regular,
BoldItalicFont=*-Black
]
% Other less common font styles are SlantedFont, BoldSlantedFont, SwashFont and BoldSwashFont.
% If your font also provides additional faces (e.g. ExtraLight, etc), fontspec also supports them.
% Please see the fontspec documentation Section 4.3 (Choosing additional NFSS font faces) for details.
% This is used if we use \usefonttheme{serif} in main.tex
% With the default \usefonttheme[onlymath]{serif}, this will control the font used for math
\setmainfont{Poppins}[
Path=../../images/fonts/,
Scale=0.9,
Extension = .ttf,
UprightFont=*-Regular,
BoldFont=*-Bold,
ItalicFont=*-Black,
BoldItalicFont=*-BoldItalicFont
]
% This controls verbatim text (i.e. code)
\setmonofont{Poppins}[
Path=../../images/fonts/,
Scale=0.9,
Extension = .ttf,
UprightFont=*-Regular
]
\fi

View File

@ -19,34 +19,33 @@
\usepackage{amsfonts, amsmath, oldgerm, lmodern, animate} \usepackage{amsfonts, amsmath, oldgerm, lmodern, animate}
\usepackage{verbatim} \usepackage{verbatim}
\usepackage{bm} \usepackage{bm}
\usefonttheme{serif} \usepackage[T1]{fontenc}
\graphicspath{{./images/}} \graphicspath{{./images/}}
\definecolor{aracomblue}{RGB}{38, 113, 142} \RequirePackage{arafont}
\definecolor{aracomred}{RGB}{143, 53, 70}
\definecolor{aracomblue}{RGB}{96, 167, 192}
\definecolor{aracomgrey}{rgb}{0.9, 0.9, 0.9} \definecolor{aracomgrey}{rgb}{0.9, 0.9, 0.9}
\setbeamercolor{block title}{fg=white,bg=aracomblue} \setbeamercolor{block title}{fg=white,bg=aracomblue}
\setbeamercolor{block body}{fg=white,bg=aracomblue} \setbeamercolor{block body}{fg=white,bg=aracomblue}
\newcommand{\themecolor}[1]{ \newcommand{\themecolor}[1]{
\setbeamercolor{normal text}{fg=darkgray,bg=white} \setbeamercolor{normal text}{fg=darkgray,bg=white}
\setbeamercolor{structure}{fg=aracomblue} \setbeamercolor{structure}{fg=aracomblue}
\setbeamercolor{block title}{fg=aracomblue,bg=aracomgrey} \setbeamercolor{block title}{fg=aracomblue,bg=aracomgrey}
\setbeamercolor{block body}{fg=darkgray,bg=aracomgrey} \setbeamercolor{block body}{fg=darkgray,bg=aracomgrey}
} }
\themecolor{white} \themecolor{white}
\setbeamercolor{title}{fg=aracomblue} \setbeamercolor{title}{fg=aracomblue}
\setbeamercolor{alerted text}{fg=aracomred}
\setbeamercolor{author}{fg=black} \setbeamercolor{author}{fg=black}
\setbeamercolor{date}{fg=black} \setbeamercolor{date}{fg=black}
\setbeamerfont{author}{size=\small} \setbeamerfont{author}{size=\scriptsize}
\setbeamerfont{date}{size=\small} \setbeamerfont{date}{size=\tiny}
\setbeamerfont{title}{series=\bfseries,size=\Huge} \setbeamerfont{title}{series=\bfseries, size=\fontsize{36}{40}}
\setbeamerfont{subtitle}{series=\mdseries,size=\Large} \setbeamerfont{subtitle}{series=\mdseries,size=\footnotesize}
\setbeamerfont{frametitle}{series=\bfseries} \setbeamerfont{frametitle}{series=\bfseries}
\setbeamerfont{framesubtitle}{series=\mdseries} \setbeamerfont{framesubtitle}{series=\mdseries}
\setbeamerfont{block title}{series=\centering, size=\small} \setbeamerfont{block title}{series=\centering, size=\small}
@ -61,25 +60,24 @@
\setbeamertemplate{itemize subsubitem}{\ensuremath{\circ}} \setbeamertemplate{itemize subsubitem}{\ensuremath{\circ}}
\newenvironment{colorblock}[3][white]{% \newenvironment{colorblock}[3][white]{%
\begingroup \begingroup
\setbeamercolor{block title}{fg=#1,bg=#2} \setbeamercolor{block title}{fg=#1,bg=#2}
\setbeamercolor{block body} {fg=#1,bg=#2} \setbeamercolor{block body} {fg=#1,bg=#2}
\begin{block}{#3} \begin{block}{#3}
}{% }{%
\end{block} \end{block}
\endgroup \endgroup
} }
% Put the logo in each slide's top left area % Put the logo in each slide's down right area
\pgfdeclareimage[width=0.1\paperwidth]{bluelogo}{./images/AraCom-Logo-black.png} \pgfdeclareimage[width=0.4\paperwidth]{araLogo}{./images/aracom_Logo-2023-white.png}
\renewcommand{\logo}{bluelogo} \renewcommand{\logo}{araLogo}
\setbeamertemplate{headline}{\vspace{1ex}\hspace{0.03\textwidth}\pgfuseimage{\logo}} \setbeamertemplate{headline}{\vspace{1ex}\hspace{0.02\paperwidth} \LARGE{AraCom}}
% Define frame title and subtitle layout % Define frame title and subtitle layout
\setbeamertemplate{frametitle}{ \setbeamertemplate{frametitle}{
\vspace*{-18pt}
\begin{beamercolorbox}[leftskip=2cm]{frametitle}% \begin{beamercolorbox}[leftskip=2cm]{frametitle}%
%\usebeamerfont{frametitle}\insertframetitle\\ \usebeamerfont{frametitle}\insertframetitle\\
\usebeamerfont{framesubtitle}\insertframesubtitle% \usebeamerfont{framesubtitle}\insertframesubtitle%
\end{beamercolorbox} \end{beamercolorbox}
} }
@ -87,25 +85,27 @@
% Define the title page % Define the title page
\setbeamertemplate{title page}{ \setbeamertemplate{title page}{
\vskip0pt plus 1filll \vskip0pt plus 1filll
\hspace{-5mm}% Pull back the box in an inelegant way \hspace{-12mm}% Pull back the box in an inelegant way - but it works!
\begin{beamercolorbox}[wd=0.9\textwidth,sep=15pt,leftskip=10mm]{title} \begin{beamercolorbox}[wd=0.9\textwidth,sep=10pt,leftskip=8mm]{title}
{\usebeamerfont{title}\inserttitle} {\usebeamerfont{title}\inserttitle}
{\usebeamerfont{subtitle}\insertsubtitle} %{\usebeamerfont{subtitle}\insertsubtitle}
{\usebeamerfont{author}\usebeamercolor[fg]{author}\insertauthor} {\usebeamerfont{author}\usebeamercolor[fg]{author}\insertauthor}
{\usebeamerfont{date}\usebeamercolor[fg]{date}\insertdate} {\usebeamerfont{date}\usebeamercolor[fg]{date}\insertdate}
\end{beamercolorbox} \end{beamercolorbox}
\setbeamertemplate{footline}{}
\vspace{-.6ex}\hspace{0.57\paperwidth}\pgfuseimage{\logo}
} }
\newcommand{\TikzSplitSlide}[1]{% \newcommand{\TikzSplitSlide}[1]{%
\rule{0.4\paperwidth}{0pt}% \rule{0.4\paperwidth}{0pt}%
\begin{tikzpicture} \begin{tikzpicture}
\clip (-0.1\paperwidth,-0.5\paperheight) -- \clip (-0.1\paperwidth,-0.5\paperheight) --
( 0.5\paperwidth,-0.5\paperheight) -- ( 0.5\paperwidth,-0.5\paperheight) --
( 0.5\paperwidth, 0.5\paperheight) -- ( 0.5\paperwidth, 0.5\paperheight) --
( 0.1\paperwidth, 0.5\paperheight) -- cycle; ( 0.1\paperwidth, 0.5\paperheight) -- cycle;
\node at (0.2\paperwidth,0) {% \node at (0.2\paperwidth,0) {%
\includegraphics[height=\paperheight]{#1}% \includegraphics[height=\paperheight]{#1}%
}; };
@ -113,25 +113,25 @@
} }
\renewcommand{\maketitle}{ \renewcommand{\maketitle}{
\begingroup \begingroup
\setbeamertemplate{background}{ \setbeamertemplate{background}{
\includegraphics[height=\paperheight]{./images/background.png} \includegraphics[height=\paperheight]{./images/background.png}
} }
\vspace{-5ex}\hspace{-5ex}\begin{frame} \vspace{-5ex}\hspace{-5ex}\begin{frame}
\Large\titlepage% \Large\titlepage%
\end{frame} \end{frame}
\endgroup \endgroup
} }
\newenvironment{chapter}[3][]{% Args: image (optional), color, frame title \newenvironment{chapter}[3][]{% Args: image (optional), color, frame title
\begingroup \begingroup
\themecolor{blue} \themecolor{blue}
\ifstrequal{#2}{aracomlightgreen}{ % Use blue text on light green, else white \ifstrequal{#2}{aracomblue}{ % Use blue text, else white
\setbeamercolor{frametitle}{fg=aracomblue}
\setbeamercolor{normal text}{fg=aracomblue,bg=#2}
}{
\setbeamercolor{frametitle}{fg=white} \setbeamercolor{frametitle}{fg=white}
\setbeamercolor{normal text}{fg=white,bg=#2} \setbeamercolor{normal text}{fg=white,bg=#2}
}{
\setbeamercolor{frametitle}{fg=aracomblue}
\setbeamercolor{normal text}{fg=aracomblue,bg=#2}
} }
\ifstrempty{#1}{}{\setbeamertemplate{background}{\TikzSplitSlide{#1}}} \ifstrempty{#1}{}{\setbeamertemplate{background}{\TikzSplitSlide{#1}}}
\setbeamertemplate{frametitle}{% \setbeamertemplate{frametitle}{%
@ -142,11 +142,11 @@
\end{beamercolorbox} \end{beamercolorbox}
} }
\begin{frame}{#3} \begin{frame}{#3}
\hspace*{0.05\textwidth}% \hspace*{0.05\textwidth}%
\minipage{0.35\textwidth}% \minipage{0.35\textwidth}%
\usebeamercolor[fg]{normal text}% \usebeamercolor[fg]{normal text}%
}{% }{%
\endminipage% \endminipage%
\end{frame} \end{frame}
\endgroup \endgroup
} }
@ -154,8 +154,8 @@
\newenvironment{sidepic}[2]{% Args: image, frame title \newenvironment{sidepic}[2]{% Args: image, frame title
\begingroup \begingroup
\setbeamertemplate{background}{% \setbeamertemplate{background}{%
\hspace*{0.6\paperwidth}% \hspace*{0.6\paperwidth}%
\includegraphics[height=\paperheight]{#1}% \includegraphics[height=\paperheight]{#1}%
} }
\setbeamertemplate{frametitle}{% Same as normal, but with right skip \setbeamertemplate{frametitle}{% Same as normal, but with right skip
\vspace*{-3.5ex} \vspace*{-3.5ex}
@ -165,9 +165,9 @@
\end{beamercolorbox} \end{beamercolorbox}
} }
\begin{frame}{#2} \begin{frame}{#2}
\minipage{0.6\textwidth}% \minipage{0.6\textwidth}%
}{% }{%
\endminipage% \endminipage%
\end{frame} \end{frame}
\endgroup \endgroup
} }
@ -182,11 +182,11 @@
% style of subsection presented in the table of contents % style of subsection presented in the table of contents
\setbeamertemplate{subsection in toc}{} \setbeamertemplate{subsection in toc}{}
% \setbeamertemplate{subsection in toc}{\footnotesize\hspace{1.2 em}$\blacktriangleright$~\inserttocsubsection} \setbeamertemplate{subsection in toc}{\textcolor{white}\footnotesize\hspace{1.2 em}$\blacktriangleright$~\inserttocsubsection}
% automate subtitle of each frame % automate subtitle of each frame
\makeatletter \makeatletter
\pretocmd\beamer@checkframetitle{\framesubtitle{\thesection\, \secname}} %\pretocmd\beamer@checkframetitle{\framesubtitle{\thesection\, \secname}}
\makeatother \makeatother
% avoid numbering of frames that are breaked into multiply slides % avoid numbering of frames that are breaked into multiply slides
@ -195,25 +195,25 @@
% at the begining of section, add table of contents with the current section highlighted % at the begining of section, add table of contents with the current section highlighted
\AtBeginSection[] \AtBeginSection[]
{ {
\begingroup \begingroup
\themecolor{blue} \themecolor{blue}
\begin{frame}{Table of Contents} \begin{chapter}[./images/titleimage.png]{white}{Übersicht}
\tableofcontents[currentsection] \tableofcontents[currentsection]
\end{frame} \end{chapter}
\endgroup \endgroup
} }
% at the beginning of subsection, add subsection title page % at the beginning of subsection, add subsection title page
\AtBeginSubsection[] \AtBeginSubsection[]
{ {
\begin{frame}{\,}{\thesection\, \secname} \begin{frame}{\,}{\thesection\, \secname}
\fontfamily{ptm}\selectfont \fontfamily{ptm}\selectfont
\centering\textsl{\textbf{\textcolor{aracomblue}{ \centering\textsl{\textbf{\textcolor{aracomblue}{
\large Section \thesection.\thesubsection% \large Section \thesection.\thesubsection%
\vskip15pt \vskip15pt
\LARGE \subsecname% \LARGE \subsecname%
}}} }}}
\end{frame} \end{frame}
} }
% code bolck setting % code bolck setting
@ -223,24 +223,24 @@
\definecolor{backcolour}{rgb}{0.95,0.95,0.92} \definecolor{backcolour}{rgb}{0.95,0.95,0.92}
\lstdefinestyle{mystyle}{ \lstdefinestyle{mystyle}{
% backgroundcolor=\color{backcolour}, % backgroundcolor=\color{backcolour},
commentstyle=\color{aracomblue}, commentstyle=\color{aracomblue},
keywordstyle=\color{magenta}, keywordstyle=\color{magenta},
numberstyle=\tiny\color{codegray}, numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple}, stringstyle=\color{codepurple},
basicstyle=\ttfamily\scriptsize, basicstyle=\ttfamily\scriptsize,
breakatwhitespace=false, breakatwhitespace=false,
breaklines=true, breaklines=true,
captionpos=b, captionpos=b,
keepspaces=true, keepspaces=true,
numbers=left, numbers=left,
numbersep=5pt, numbersep=5pt,
showspaces=false, showspaces=false,
showstringspaces=false, showstringspaces=false,
showtabs=false, showtabs=false,
tabsize=4, tabsize=4,
xleftmargin=10pt, xleftmargin=10pt,
xrightmargin=10pt, xrightmargin=10pt,
} }
\lstset{style=mystyle} \lstset{style=mystyle}
@ -248,18 +248,18 @@
% NEW COMMANDS % NEW COMMANDS
% set colored hyperlinks command % set colored hyperlinks command
\newcommand{\hrefcol}[2]{\textcolor{aracomblue}{\href{#1}{#2}}} \newcommand{\hrefcol}[2]{\textcolor{aracomgrey}{\href{#1}{#2}}}
\newcommand{\hlinkcol}[1]{\hrefcol{#1}{#1}} \newcommand{\hlinkcol}[1]{\hrefcol{#1}{#1}}
% centering paragraph statement % centering paragraph statement
\newcommand{\centerstate}[1]{ \newcommand{\centerstate}[1]{
\centering \centering
\begin{columns} \begin{columns}
\begin{column}{0.8\textwidth} \begin{column}{0.8\textwidth}
#1 #1
\end{column} \end{column}
\end{columns} \end{columns}
} }
% colored textbf % colored textbf
@ -269,28 +269,28 @@
% about page % about page
\newcommand{\aboutpage}[2]{ \newcommand{\aboutpage}[2]{
\begingroup \begingroup
\themecolor{blue} \themecolor{blue}
\begin{frame}[c]{#1}{\,} \begin{frame}[c]{#1}{\,}
\centering \centering
\begin{minipage}{\textwidth} \begin{minipage}{\textwidth}
\usebeamercolor[fg]{normal text} \usebeamercolor[fg]{normal text}
\centering \centering
\Large \textsl{\normalsize #2} \Large \textsl{\normalsize #2}
\end{minipage} \end{minipage}
\end{frame} \end{frame}
\endgroup \endgroup
} }
% bibliography page % bibliography page
\newcommand{\bibliographpage}{ \newcommand{\bibliographpage}{
\section{References} \section{References}
\begingroup \begingroup
\themecolor{blue} \themecolor{blue}
\begin{frame}[allowframebreaks]{References}{\,} \begin{frame}[allowframebreaks]{References}{\,}
\tiny \tiny
\printbibliography[heading=none] \printbibliography[heading=none]
\end{frame} \end{frame}
\endgroup \endgroup
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

BIN
images/titleimage.png (Stored with Git LFS) Normal file

Binary file not shown.