Cleaned up the mess :)

This commit is contained in:
Lukas Pietzschmann
2024-01-14 15:43:41 +01:00
parent c0c762a9fc
commit e2d19162cf
3 changed files with 167 additions and 298 deletions

View File

@@ -9,14 +9,8 @@
\SetupKeyvalOptions{family=awesome,prefix=awesome@} \SetupKeyvalOptions{family=awesome,prefix=awesome@}
\newif\ifawesome@english@ \newif\ifawesome@english@
\DeclareVoidOption{english}{\awesome@english@true}
\DeclareVoidOption{english}{ \DeclareVoidOption{german}{\awesome@english@false}
\awesome@english@true
}
\DeclareVoidOption{german}{
\awesome@english@false
}
\DeclareBoolOption{notoc} \DeclareBoolOption{notoc}
\DeclareBoolOption{secslide} \DeclareBoolOption{secslide}
@@ -26,11 +20,7 @@
\ProcessKeyvalOptions* \ProcessKeyvalOptions*
\ifawesome@english@ \ifawesome@english@\RequirePackage[english]{babel}\else\RequirePackage[ngerman]{babel}\fi
\RequirePackage[english]{babel}
\else
\RequirePackage[ngerman]{babel}
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -41,12 +31,9 @@
\RequirePackage{calc} \RequirePackage{calc}
\RequirePackage{microtype} \RequirePackage{microtype}
\RequirePackage{etoolbox} \RequirePackage{etoolbox}
\RequirePackage{underscore}
\RequirePackage{tcolorbox} \RequirePackage{tcolorbox}
\tcbuselibrary{skins} \tcbuselibrary{skins}
\RequirePackage[ \RequirePackage[
color,
minted,
tikz, tikz,
htmlunderline, htmlunderline,
footnote, footnote,
@@ -56,10 +43,7 @@
pdfsubject={\noexpand\inserttitle} pdfsubject={\noexpand\inserttitle}
]{smile} ]{smile}
\RequirePackage{tikz}
\usetikzlibrary{overlay-beamer-styles,decorations.markings} \usetikzlibrary{overlay-beamer-styles,decorations.markings}
\tikzstyle{every picture}+=[remember picture]
\tikzset{ \tikzset{
node distance = 5mm, node distance = 5mm,
invisible/.style={opacity=0}, invisible/.style={opacity=0},
@@ -86,11 +70,10 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\maketitle}{ \def\maketitle{
\begin{frame}[noframenumbering,plain] \begin{frame}[noframenumbering,plain]
\titlepage \titlepage
\end{frame} \end{frame}
\ifawesome@notoc\else \ifawesome@notoc\else
\begin{frame}{Agenda} \begin{frame}{Agenda}
\tableofcontents \tableofcontents
@@ -99,16 +82,13 @@
} }
\let\oldft\frametitle \let\oldft\frametitle
\renewcommand\frametitle[2][]{ \renewcommand\frametitle[2][]{%
\ifx\relax#1\relax\oldft{#2}\else% \ifx\relax#1\relax\oldft{#2}\else%
\oldft{#2\hfill\normalfont\large\color{darkgray}\raisebox{0.3ex}{#1}}% \oldft{#2\hfill\normalfont\large\color{darkgray}\raisebox{0.3ex}{#1}}%
\fi \fi%
} }
\BeforeBeginEnvironment{tabular}{ \BeforeBeginEnvironment{tabular}{\def\arraystretch{1.1}\rowcolors{2}{lightgray}{white}}
\renewcommand{\arraystretch}{1.1}
\rowcolors{2}{lightgray}{white}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -120,86 +100,68 @@
\counterwithin*{framesinsection}{section} \counterwithin*{framesinsection}{section}
\counterwithin*{framesinsubsection}{subsection} \counterwithin*{framesinsubsection}{subsection}
\newcommand{\stepframe}{ \def\stepframe{%
\ifbeamer@isfragile \ifbeamer@isfragile%
\stepcounter{framesinsection} \stepcounter{framesinsection}%
\stepcounter{framesinsubsection} \stepcounter{framesinsubsection}%
\else% \else%
\ifbeamer@noframenumbering\else% \ifbeamer@noframenumbering\else%
\stepcounter{framesinsection} \stepcounter{framesinsection}%
\stepcounter{framesinsubsection} \stepcounter{framesinsubsection}%
\fi% \fi%
\fi% \fi%
\ifnum\theframesinsection=0 \ifnum\theframesinsection=0\setcounter{framesinsection}{1}\fi%
\setcounter{framesinsection}{1} \ifnum\theframesinsubsection=0\setcounter{framesinsubsection}{1}\fi%
\fi%
\ifnum\theframesinsubsection=0
\setcounter{framesinsubsection}{1}
\fi%
} }
\BeforeBeginEnvironment{frame}{ \BeforeBeginEnvironment{frame}{\stepframe}
\stepframe \pretocmd\againframe{\stepframe}{}{}
}
\pretocmd{\againframe}{
\stepframe
}{}{}
\newcommand{\refreshcountsinaux}{ \def\refreshcountsinaux{%
\immediate\write\@auxout{\global\noexpand\@namedef{s@totalsubsectionframes-\arabic{section}-\arabic{subsection}}{\theframesinsubsection}} \immediate\write\@auxout{\global\noexpand\@namedef{s@totalsubsectionframes-\arabic{section}-\arabic{subsection}}{\theframesinsubsection}}%
\immediate\write\@auxout{\global\noexpand\@namedef{s@totalsectionframes-\arabic{section}}{\theframesinsection}} \immediate\write\@auxout{\global\noexpand\@namedef{s@totalsectionframes-\arabic{section}}{\theframesinsection}}%
} }
\newcounter{secinc} \newcounter{secinc}
\pretocmd{\section}{ \pretocmd\section{%
% At this point, the section command has not yet incremented the section counter, so we need to do this by ourselves % At this point, the section command has not yet incremented the section counter, so we need to do this by ourselves
\setcounter{secinc}{\thesection + 1} \setcounter{secinc}{\thesection + 1}%
\refreshcountsinaux \refreshcountsinaux%
\immediate\write\@auxout{\global\noexpand\@namedef{s@frameatsecstart-\arabic{secinc}}{\insertframenumber}} \immediate\write\@auxout{\global\noexpand\@namedef{s@frameatsecstart-\arabic{secinc}}{\insertframenumber}}%
}{}{} }{}{}
\newcounter{subsecinc} \newcounter{subsecinc}
\pretocmd{\subsection}{ \pretocmd\subsection{%
% At this point, the subsection command has not yet incremented the subsection counter, so we need to do this by ourselves % At this point, the subsection command has not yet incremented the subsection counter, so we need to do this by ourselves
\setcounter{subsecinc}{\thesubsection + 1} \setcounter{subsecinc}{\thesubsection + 1}%
\refreshcountsinaux \refreshcountsinaux%
\immediate\write\@auxout{\global\noexpand\@namedef{s@frameatsubsecstart-\arabic{section}-\arabic{subsecinc}}{\insertframenumber}} \immediate\write\@auxout{\global\noexpand\@namedef{s@frameatsubsecstart-\arabic{section}-\arabic{subsecinc}}{\insertframenumber}}%
}{}{} }{}{}
\AtEndDocument{ \AtEndDocument{\refreshcountsinaux}
\refreshcountsinaux
\def\framespersection{%
\ifcsdef{s@totalsectionframes-\arabic{section}}{%
\csname s@totalsectionframes-\arabic{section}\endcsname%
}{0}%
} }
\newcommand{\framespersection}{ \def\framespersubsection{%
\ifcsdef{s@totalsectionframes-\arabic{section}}{ \ifcsdef{s@totalsubsectionframes-\arabic{section}-\arabic{subsection}}{%
\csname s@totalsectionframes-\arabic{section}\endcsname \csname s@totalsubsectionframes-\arabic{section}-\arabic{subsection}\endcsname%
}{ }{0}%
0
}
} }
\newcommand{\framespersubsection}{ \def\insertsectionstartframe{%
\ifcsdef{s@totalsubsectionframes-\arabic{section}-\arabic{subsection}}{ \ifcsdef{s@frameatsecstart-\arabic{section}}{%
\csname s@totalsubsectionframes-\arabic{section}-\arabic{subsection}\endcsname \csname s@frameatsecstart-\arabic{section}\endcsname%
}{ }{0}%
0
}
} }
\newcommand{\insertsectionstartframe}{ \def\insertsubsectionstartframe{%
\ifcsdef{s@frameatsecstart-\arabic{section}}{ \ifcsdef{s@frameatsubsecstart-\arabic{section}-\arabic{subsection}}{%
\csname s@frameatsecstart-\arabic{section}\endcsname \csname s@frameatsubsecstart-\arabic{section}-\arabic{subsection}\endcsname%
}{ }{0}%
0
}
}
\newcommand{\insertsubsectionstartframe}{
\ifcsdef{s@frameatsubsecstart-\arabic{section}-\arabic{subsection}}{
\csname s@frameatsubsecstart-\arabic{section}-\arabic{subsection}\endcsname
}{
0
}
} }
@@ -223,6 +185,7 @@
\setbeamercolor{normal text}{fg=black} \setbeamercolor{normal text}{fg=black}
\setbeamercolor{separator}{fg=accent, bg=accent} \setbeamercolor{separator}{fg=accent, bg=accent}
\setbeamercolor{footline}{bg=lightgray} \setbeamercolor{footline}{bg=lightgray}
\setbeamercolor{footlineright}{fg=white, bg=accent}
\setbeamercolor{block body}{bg=lightgray} \setbeamercolor{block body}{bg=lightgray}
\setbeamercolor{block title}{bg=black, fg=white} \setbeamercolor{block title}{bg=black, fg=white}
@@ -316,35 +279,28 @@
\setbeamertemplate{navigation symbols}{} \setbeamertemplate{navigation symbols}{}
\setbeamertemplate{headline}{} \setbeamertemplate{headline}{}
\setbeamertemplate{section in toc}{ \setbeamertemplate{section in toc}{%
\usebeamercolor[fg]{section number projected} \usebeamercolor[fg]{section number projected}\inserttocsectionnumber.%
\inserttocsectionnumber.% \usebeamercolor[fg]{normal text}~\inserttocsection%
\usebeamercolor[fg]{normal text}
~\inserttocsection
} }
\newenvironment{wide}{\begingroup\leavevmode \newenvironment{wide}{\begingroup\leavevmode%
\hspace*{-2cm}\fboxsep\z@\minipage{\linewidth+2cm}% \hspace*{-2cm}\fboxsep\z@\minipage{\linewidth+2cm}%
}{\endminipage\endgroup} }{\endminipage\endgroup}
\setbeamertemplate{subsection in toc}{ \setbeamertemplate{subsection in toc}{%
\mbox{ \mbox{\hskip2em%
\hskip2em% \usebeamercolor[fg]{section number projected}\inserttocsectionnumber.%
\usebeamercolor[fg]{section number projected} \usebeamercolor[fg]{subsection number projected}\textsubscript{\inserttocsubsectionnumber}%
\inserttocsectionnumber.% \usebeamercolor[fg]{normal text}~\inserttocsubsection%
\usebeamercolor[fg]{subsection number projected}% }%
\textsubscript{\inserttocsubsectionnumber}~%
\usebeamercolor[fg]{normal text}
\inserttocsubsection
}
} }
\setbeamertemplate{separator}{ \setbeamertemplate{separator}{%
\usebeamercolor{separator} \usebeamercolor{separator}\textcolor{fg}{\rule{.7\textwidth}{\smile@linewidth}}%
\textcolor{fg}{\rule{.7\textwidth}{\smile@linewidth}}
} }
\setbeamertemplate{frametitle}{ \setbeamertemplate{frametitle}{%
\vspace{1em}% \vspace{1em}%
\beamercolorbox[leftskip=-\beamer@leftsidebar]{frametitle}% \beamercolorbox[leftskip=-\beamer@leftsidebar]{frametitle}%
\strut\usebeamerfont{frametitle}\parbox{\dimexpr\beamer@leftsidebar}{\strut% \strut\usebeamerfont{frametitle}\parbox{\dimexpr\beamer@leftsidebar}{\strut%
@@ -360,7 +316,7 @@
\scalebox{.7}{\theframesinsubsection}% \scalebox{.7}{\theframesinsubsection}%
\fi% \fi%
\fi% \fi%
\fi}\insertframetitle\endbeamercolorbox \fi}\insertframetitle\endbeamercolorbox%
} }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -370,20 +326,20 @@ IfBlankTF={#2}{toprule=2mm}{title=#2},colback=#1!5!white,colframe=#1!75!black,le
lefttitle=4mm, arc=\smile@rounding, enhanced, segmentation engine=path, lefttitle=4mm, arc=\smile@rounding, enhanced, segmentation engine=path,
segmentation style={solid, shorten >=1mm,shorten <=1mm, line width=\smile@linewidth}} segmentation style={solid, shorten >=1mm,shorten <=1mm, line width=\smile@linewidth}}
\renewenvironment{definition}[1][\empty]{ \renewenvironment{definition}[1][\empty]{%
\begin{beamerbox}{maroon}{#1} \begin{beamerbox}{gray}{#1}%
}{\end{beamerbox}} }{\end{beamerbox}}
\renewenvironment{block}[1][]{ \renewenvironment{block}[1][]{%
\begin{beamerbox}{accent}{#1} \begin{beamerbox}{accent}{#1}%
}{\end{beamerbox}} }{\end{beamerbox}}
\renewenvironment{examples}[1][]{ \renewenvironment{examples}[1][]{%
\begin{beamerbox}{green}{#1} \begin{beamerbox}{green}{#1}%
}{\end{beamerbox}} }{\end{beamerbox}}
\renewenvironment{alertblock}[1][]{ \renewenvironment{alertblock}[1][]{%
\begin{beamerbox}{red}{#1} \begin{beamerbox}{red}{#1}%
}{\end{beamerbox}} }{\end{beamerbox}}
@@ -393,13 +349,13 @@ segmentation style={solid, shorten >=1mm,shorten <=1mm, line width=\smile@linewi
\ensureinfocommand{email} \ensureinfocommand{email}
\ensureinfocommand{uni} \ensureinfocommand{uni}
\ensureinfocommand{location} \ensureinfocommand{location}
\renewcommand\inserttitle{\ifdefined\@title\@title\fi} \def\inserttitle{\ifdefined\@title\@title\fi}
\renewcommand\insertshorttitle{\ifdefined\@shorttitle\@shorttitle\fi} \def\insertshorttitle{\ifdefined\@shorttitle\@shorttitle\fi}
\renewcommand\insertauthor{\ifdefined\@author\@author\fi} \def\insertauthor{\ifdefined\@author\@author\fi}
\renewcommand\insertshortauthor{\ifdefined\@shortauthor\@shortauthor\fi} \def\insertshortauthor{\ifdefined\@shortauthor\@shortauthor\fi}
\newcommand\insertemail[0]{\ifdefined\@email\href{mailto:\@email}{\@email}\fi} \def\insertemail{\ifdefined\@email\href{mailto:\@email}{\@email}\fi}
\newcommand\insertuni[0]{\ifdefined\@uni\@uni\fi} \def\insertuni{\ifdefined\@uni\@uni\fi}
\newcommand\insertlocation[0]{\ifdefined\@location\@location\fi} \def\insertlocation{\ifdefined\@location\@location\fi}
\tikzfading[ \tikzfading[
name=title page picture fading, name=title page picture fading,
@@ -407,17 +363,13 @@ segmentation style={solid, shorten >=1mm,shorten <=1mm, line width=\smile@linewi
right color=transparent!100, right color=transparent!100,
] ]
\def\ps@navigation@titlepage{ \def\ps@navigation@titlepage{\setbeamertemplate{footline}{}\@nameuse{ps@navigation}}
\setbeamertemplate{footline}{}
\@nameuse{ps@navigation}
}
\newlength\lhswidth\setlength{\lhswidth}{.55\textwidth} \newlength\lhswidth\setlength{\lhswidth}{.55\textwidth}
\newlength\titlewidth \newlength\titlewidth
\newlength\subtitlewidth \newlength\subtitlewidth
\newlength\maxwidth \newlength\maxwidth
\setbeamertemplate{title page}{% \setbeamertemplate{title page}{\begin{wide}
\begin{wide}
\def\titlecontent{\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle}% \def\titlecontent{\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle}%
\def\subtitlecontent{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle}% \def\subtitlecontent{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle}%
\settowidth\titlewidth\titlecontent% \settowidth\titlewidth\titlecontent%
@@ -464,26 +416,26 @@ segmentation style={solid, shorten >=1mm,shorten <=1mm, line width=\smile@linewi
++(-10, \dimexpr\paperheight+1cm); ++(-10, \dimexpr\paperheight+1cm);
\end{tikzpicture} \end{tikzpicture}
\fi \fi
\end{wide} \end{wide}}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcounter{pagenumbertolinkto} \newsavebox\footerright
\setbeamertemplate{footline}{ \def\setfooter#1#2#3{\savebox\footerright{\color{white}\hspace{0.3cm}#3\hspace{0.3cm}}\leavevmode\hbox{%
\leavevmode%
\hbox{%
\usebeamerfont{footline}% \usebeamerfont{footline}%
\begin{beamercolorbox}[ \begin{beamercolorbox}[wd=\dimexpr\textwidth-\wd\footerright\relax,ht=2.5ex,dp=1ex]{footline}%
wd=\textwidth, \hspace{0.3cm}#1\hfill#2\hfill\null%
ht=2.5ex, \end{beamercolorbox}%
dp=1ex \begin{beamercolorbox}[wd=\wd\footerright,ht=2.5ex,dp=1ex]{footlineright}%
]{footline}% \usebox\footerright%
\hspace{0.3cm}% \end{beamercolorbox}%
\insertshortauthor~% }}
\hfill%
\newcounter{pagenumbertolinkto}
\setbeamertemplate{footline}{%
\setfooter{\insertshortauthor}{%
\hyperlinkdocumentstart{\insertshorttitle}\hspace{.7em}$\cdot$\hspace{.7em}\insertsection% \hyperlinkdocumentstart{\insertshorttitle}\hspace{.7em}$\cdot$\hspace{.7em}\insertsection%
\ifx\insertsubsection\empty \ifx\insertsubsection\empty%
\hspace{.4em}% \hspace{.4em}%
\ifnum\framespersection>1% \ifnum\framespersection>1%
\foreach \i in {1, ..., \framespersection}{% \foreach \i in {1, ..., \framespersection}{%
@@ -495,7 +447,7 @@ segmentation style={solid, shorten >=1mm,shorten <=1mm, line width=\smile@linewi
\fi% \fi%
}% }%
\fi% \fi%
\else \else%
\hspace{.7em}$\cdot$\hspace{.7em}\insertsubsection% \hspace{.7em}$\cdot$\hspace{.7em}\insertsubsection%
\hspace{.7em}% \hspace{.7em}%
\ifnum\framespersubsection>1% \ifnum\framespersubsection>1%
@@ -509,91 +461,26 @@ segmentation style={solid, shorten >=1mm,shorten <=1mm, line width=\smile@linewi
}% }%
\fi% \fi%
\fi% \fi%
\hfill% }{\ifawesome@english@ Page\else Seite\fi~\insertframenumber~/~\inserttotalframenumber}%
\colorbox{accent}{
\color{white}
\hspace{0.3cm}
\ifawesome@english@
Page
\else
Seite
\fi
~\insertframenumber~/~\inserttotalframenumber\hspace{0.3cm}
}%
\end{beamercolorbox}%
}
\vskip0pt%
} }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\ps@navigation@toc{ \def\ps@navigation@toc{%
\setbeamertemplate{footline}{ \setbeamertemplate{footline}{\setfooter{\insertshortauthor}{\hyperlinkdocumentstart{\insertshorttitle}}{Agenda}}%
\leavevmode% \@nameuse{ps@navigation}%
\hbox{%
\usebeamerfont{footline}%
\begin{beamercolorbox}[
wd=\textwidth,
ht=2.5ex,
dp=1ex
]{footline}%
\hspace{0.3cm}%
\insertshortauthor%
\hfill%
\hyperlinkdocumentstart{\insertshorttitle}%
\hfill%
\colorbox{accent}{
\color{white}
\hspace{0.3cm}%
Agenda
\hspace{0.3cm}
}%
\end{beamercolorbox}%
}
\vskip0pt%
}
\@nameuse{ps@navigation}
} }
\def\ps@navigation@sec{ \def\ps@navigation@sec{%
\setbeamertemplate{footline}{ \setbeamertemplate{footline}{%
\leavevmode% \setfooter{\insertshortauthor}%
\hbox{% {\hyperlinkdocumentstart{\insertshorttitle}}%
\usebeamerfont{footline}% {\ifawesome@english@ Section\else Kapitel\fi~\thesection\ifx\insertsubsection\empty\else.\thesubsection\fi}%
\begin{beamercolorbox}[
wd=\textwidth,
ht=2.5ex,
dp=1ex
]{footline}%
\hspace{0.3cm}%
\insertshortauthor%
\hfill%
\hyperlinkdocumentstart{\insertshorttitle}%
\hfill%
\colorbox{accent}{
\color{white}
\hspace{0.3cm}%
\ifawesome@english@
Section
\else
Kapitel
\fi
~\thesection
\ifx\insertsubsection\empty\else
.\thesubsection
\fi
\hspace{0.3cm}
}% }%
\end{beamercolorbox}% \@nameuse{ps@navigation}%
}
\vskip0pt%
}
\@nameuse{ps@navigation}
} }
\pretocmd{\tableofcontents}{ \pretocmd\tableofcontents{\thispagestyle{navigation@toc}}{}{}
\thispagestyle{navigation@toc}
}{}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -601,63 +488,45 @@ segmentation style={solid, shorten >=1mm,shorten <=1mm, line width=\smile@linewi
% Kinda hacky, but AtBeginEnvironment does not work with beamer tex.stackexchange.com/a/436338/286979 % Kinda hacky, but AtBeginEnvironment does not work with beamer tex.stackexchange.com/a/436338/286979
\pretocmd\beamer@checkframetitle{ \pretocmd\beamer@checkframetitle{%
\transfade[duration=0.1] \transfade[duration=0.1]%
\ifbeamer@isfragile \ifbeamer@isfragile%
\label{page:\insertframenumber} \label{page:\insertframenumber}%
\else% \else\ifbeamer@noframenumbering\else\hypertarget{page:\insertframenumber}{}\fi\fi%
\ifbeamer@noframenumbering\else%
\hypertarget{page:\insertframenumber}{}
\fi%
\fi%
} }
\AtBeginSection[]{ \AtBeginSection[]{\ifawesome@secslide
\ifawesome@secslide \begin{frame}[c,noframenumbering]\thispagestyle{navigation@sec}%
\begin{frame}[c, noframenumbering] \begin{wide}\centering%
\thispagestyle{navigation@sec}%
\begin{wide}
\centering%
\usebeamerfont{title}% \usebeamerfont{title}%
\usebeamercolor[fg]{section number projected}% \usebeamercolor[fg]{section number projected}%
\scalebox{1.3}{ \raisebox{-1pt}{\insertsectionnumber}}.~% \scalebox{1.3}{ \raisebox{-1pt}{\insertsectionnumber}}.~%
\usebeamercolor[fg]{title}% \usebeamercolor[fg]{title}%
\insertsectionhead \insertsectionhead%
\end{wide} \end{wide}%
\end{frame} \end{frame}
\fi \fi}
}
\AtBeginSubsection[]{ \AtBeginSubsection[]{\ifawesome@subsecslide
\ifawesome@subsecslide \begin{frame}[c,noframenumbering]\thispagestyle{navigation@sec}%
\begin{frame}[c, noframenumbering] \begin{wide}\centering%
\thispagestyle{navigation@sec}%
\begin{wide}
\centering%
\usebeamerfont{title}% \usebeamerfont{title}%
\usebeamercolor[fg]{section number projected}% \usebeamercolor[fg]{section number projected}%
\scalebox{1.3}{\raisebox{-1pt}{\insertsectionnumber}}.% \scalebox{1.3}{\raisebox{-1pt}{\insertsectionnumber}}.%
\usebeamercolor[fg]{subsection number projected}% \usebeamercolor[fg]{subsection number projected}%
\textsubscript{\insertsubsectionnumber}~% \textsubscript{\insertsubsectionnumber}~%
\usebeamercolor[fg]{title}% \usebeamercolor[fg]{title}%
\insertsubsectionhead \insertsubsectionhead%
\end{wide} \end{wide}%
\end{frame} \end{frame}
\fi \fi}
}
\AtEndDocument{ \AtEndDocument{
{\setbeamercolor{background canvas}{bg=accent} {\setbeamercolor{background canvas}{bg=accent}
\begin{frame}[b, noframenumbering] \begin{frame}[b,noframenumbering]\thispagestyle{navigation@titlepage}%
\begin{wide} \begin{wide}\color{white}%
\color{white} \Large\textbf{\insertauthor}\vskip0.5em\scriptsize\insertlocation,~\insertdate\hfill\insertemail%
\thispagestyle{navigation@titlepage} \end{wide}%
\Large\textbf{\insertauthor}
\vskip0.5em
\scriptsize\insertlocation,~\insertdate
\hfill
\insertemail
\end{wide}
\end{frame}} \end{frame}}
} }

Binary file not shown.

View File

@@ -3,7 +3,7 @@
\usepackage{lipsum} \usepackage{lipsum}
\definecolor{dblue}{HTML}{11235A} \definecolor{dblue}{HTML}{11235A}
\usetheme[english, secslide, subsecslide, coloraccent=dblue]{awesome} \usetheme[english, secslide, subsecslide, color, coloraccent=dblue]{awesome}
\title{Test Presentation} \title{Test Presentation}
\author[Luke]{Lukas Pietzschmann} \author[Luke]{Lukas Pietzschmann}