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,12 +19,12 @@
\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}
@ -39,14 +39,13 @@
\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}
@ -70,16 +69,15 @@
\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,16 +85,18 @@
% 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]{%
@ -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}{%
@ -145,7 +145,7 @@
\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
@ -166,7 +166,7 @@
} }
\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
@ -197,9 +197,9 @@
{ {
\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
} }
@ -248,7 +248,7 @@
% 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}}
@ -292,5 +292,5 @@
\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.