Init commit

This commit is contained in:
Lukas Pietzschmann
2022-12-06 01:06:23 +01:00
commit a03a3d6dc2
6 changed files with 400 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
\mode<presentation>
\definecolor{awesomeblack}{HTML}{241f31}
\definecolor{awesomemarroon}{HTML}{63452c}
\definecolor{awesomegray}{HTML}{77767b}
\definecolor{awesomelightgray}{HTML}{f6f5f4}
\definecolor{awesomewhite}{HTML}{ffffff}
\definecolor{awesomeblue}{HTML}{1c71d8}
\definecolor{awesomegreen}{HTML}{26a269}
\definecolor{awesomehighlight}{HTML}{c01c28}
\definecolor{awesomehighlightlight}{HTML}{E46271}
\setbeamercolor{alerted text}{fg=awesomehighlight}
\setbeamercolor{subtitle}{fg=awesomegray}
\setbeamercolor{frametitle}{fg=awesomeblack}
\setbeamercolor{framesubtitle}{fg=awesomegray}
\setbeamercolor{details}{fg=awesomeblack}
\setbeamercolor{author}{fg=awesomeblack}
\setbeamercolor{section number projected}{bg=awesomeblack, fg=awesomehighlight}
\setbeamercolor{subsection number projected}{fg=awesomelightgray, fg=awesomehighlightlight}
\setbeamercolor{structure}{fg=awesomeblack}
\setbeamercolor{normal text}{fg=awesomeblack}
\setbeamercolor{separator}{fg=awesomemarroon, bg=awesomemarroon}
\setbeamercolor{footline}{bg=awesomelightgray}
\setbeamercolor{block body}{bg=awesomelightgray}
\setbeamercolor{block title}{bg=awesomeblack, fg=awesomewhite}
\mode<all>

View File

@@ -0,0 +1,57 @@
\mode<presentation>
\setsansfont[
Ligatures=TeX,
BoldFont={* Medium},
]{Fira Sans}
\setbeamerfont{title}{
size=\LARGE,
shape=\bfseries\scshape
}
\setbeamerfont{subtitle}{
size=\large,
shape=\normalfont
}
\setbeamerfont{author}{
size=\normalsize,
shape=\normalfont
}
\setbeamerfont{details}{
size=\footnotesize,
shape=\normalfont
}
\setbeamerfont{footline}{
size=\tiny,
shape=\normalfont
}
\setbeamerfont{frametitle}{
size=\LARGE,
shape=\bfseries\scshape
}
\setbeamerfont{framesubtitle}{
size=\normalsize,
shape=\normalfont
}
\setbeamerfont{block title}{
size=\normalfont,
shape=\strut
}
\setbeamerfont{blockdef}{
size=\large,
shape=\bfseries
}
\setbeamerfont{description item}{
shape=\bfseries
}
\mode<all>

103
beamerinnerthemeAwesome.sty Normal file
View File

@@ -0,0 +1,103 @@
\mode<presentation>
\renewcommand{\textsubscript}[1]{\scalebox{0.7}{#1}}
\setbeamertemplate{blocks}[rounded][shadow=false]
\setbeamertemplate{section in toc}{
\usebeamercolor[fg]{section number projected}\inserttocsectionnumber.\usebeamercolor[fg]{normal text}~\inserttocsection
}
\setbeamertemplate{subsection in toc}{
~~~~\usebeamercolor[fg]{section number projected}\inserttocsectionnumber.\textsubscript{\usebeamercolor[fg]{subsection number projected}\inserttocsubsectionnumber}~\usebeamercolor[fg]{normal text}\inserttocsubsection
}
\setbeamertemplate{itemize item}[circle]
\setbeamertemplate{itemize subitem}[circle]
\setbeamertemplate{frametitle continuation}{}
\setbeamertemplate{separator}{
\usebeamercolor{separator}
\textcolor{fg}{\rule{.7\textwidth}{.5pt}}
}
\setbeamersize{description width=0.5cm}
\renewcommand{\beamer@andtitle}{\\}
\usetikzlibrary{fadings}
\newcommand{\background}[1]
{\newcommand{\awesome@background}{#1}}
\tikzfading[
name=title page picture fading,
left color=transparent!0,
right color=transparent!100,
]
\newcommand{\mytitle}{Title}
\newcommand{\mysubtitle}{Subtitle}
\newcommand{\student}{Max Mustermann}
\newcommand{\mail}{max@mustermann.de}
\newcommand{\myinstitute}{Some Institute}
\newcommand{\uni}{Some Uni}
\newcommand{\mydate}{\today}
\setbeamertemplate{title page}{%
\thispagestyle{navigation@titlepage}
\begin{minipage}{.8\textwidth}
\raggedright
\usebeamerfont{title}
\usebeamercolor[fg]{title}
\mytitle\\
\usebeamerfont{subtitle}
\usebeamercolor[fg]{subtitle}
\mysubtitle
\usebeamertemplate{separator}
\usebeamerfont{author}
\usebeamercolor[fg]{author}
\vspace{2em}
\student\\
\usebeamerfont{details}
\usebeamercolor[fg]{details}
\href{mailto:\mail}{\mail}
\vspace{2em}
\usebeamerfont{details}
\usebeamercolor[fg]{details}
\myinstitute\\
\uni
\vspace{2em}
\mydate
\end{minipage}
\ifdefined\awesome@background
\begin{tikzpicture}[remember picture, overlay]
\clip (current page.south east)
-- (current page.north east)
-- ++(-5.1, 0)
-- ++(-3, -\paperheight)
-- cycle;
\node[
anchor=south east,
inner sep=0,
outer sep=0
] at (current page.south east) {
\includegraphics[height=\paperheight]{\awesome@background}
};
\fill[
black, path fading=title page picture fading,
fading angle=-15
]
(current page.south east)
rectangle
++(-10, \dimexpr\paperheight+1cm);
\end{tikzpicture}
\fi
}
\mode<all>

109
beamerouterthemeAwesome.sty Normal file
View File

@@ -0,0 +1,109 @@
\mode<presentation>
\setbeamertemplate{frametitle}{
\vskip1em\par
\usebeamerfont{frametitle}\usebeamercolor[fg]{frametitle}\insertframetitle\par
\usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}\insertframesubtitle\par
}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{headline}{}
\setbeamertemplate{footline}{
\leavevmode%
\hbox{%
\usebeamerfont{footline}%
\begin{beamercolorbox}[
wd=\textwidth,
ht=2.5ex,
dp=1ex
]{footline}%
\hspace{0.3cm}%
\student%
\hfill%
\mytitle\hspace{.7em}$\cdot$\hspace{.7em}\insertsection%
\ifnum\insertsectionstartpage=\insertsubsectionstartpage%
\hspace{.4em}%
\ifnum\framespersection>1%
\foreach \i in {1, ..., \framespersection}{%
\ifnum \i=\insertframenumber%
~$\bullet$%
\else%
~$\circ$%
\fi%
}%
\fi%
\else
\hspace{.7em}$\cdot$\hspace{.7em}\insertsubsection%
\hspace{.7em}%
\ifnum\framespersubsection>1%
\foreach \i in {1, ..., \framespersubsection}{%
\ifnum \i=\insertframenumber%
~$\bullet$%
\else%
~$\circ$%
\fi%
}%
\fi%
\fi%
\hfill%
\colorbox{awesomehighlight!70}{\hspace{0.3cm}Seite~\thepagenumber\hspace{0.3cm}}%
\end{beamercolorbox}%
}
\vskip0pt%
}
\def\ps@navigation@titlepage{
\setbeamertemplate{footline}{}
\@nameuse{ps@navigation}
}
\def\ps@navigation@toc{
\setbeamertemplate{footline}{
\leavevmode%
\hbox{%
\usebeamerfont{footline}%
\begin{beamercolorbox}[
wd=\textwidth,
ht=2.5ex,
dp=1ex
]{footline}%
\hspace{0.3cm}%
\student%
\hfill%
\mytitle%
\hfill%
\colorbox{awesomehighlight!70}{\hspace{0.3cm}Seite~\thepagenumber\hspace{0.3cm}}%
\end{beamercolorbox}%
}
\vskip0pt%
}
\@nameuse{ps@navigation}
}
\pretocmd{\tableofcontents}{
\thispagestyle{navigation@toc}
}{}{}
\AtBeginSection[]{
\begin{frame}[noframenumbering]
\thispagestyle{navigation@toc}
\vfill
\centering
\usebeamerfont{title}\usebeamercolor[fg]{section number projected}\insertsectionnumber.~\usebeamercolor[fg]{title}\insertsectionhead\par
\vfill
\end{frame}
}
\AtBeginSubsection[]{
\begin{frame}[noframenumbering]
\thispagestyle{navigation@toc}
\vfill
\centering
\usebeamerfont{title}\usebeamercolor[fg]{section number projected}\insertsectionnumber.\textsubscript{\usebeamercolor[fg]{subsection number projected}\insertsubsectionnumber}~\usebeamercolor[fg]{title}\insertsubsectionhead\par
\vfill
\end{frame}
}
\mode<all>

8
beamerthemeAwesome.sty Normal file
View File

@@ -0,0 +1,8 @@
\mode<presentation>
\usecolortheme{Awesome}
\usefonttheme{Awesome}
\useinnertheme{Awesome}
\useoutertheme{Awesome}
\mode<all>

90
use_me.tex Normal file
View File

@@ -0,0 +1,90 @@
\usepackage{hyperref}
\usepackage{chngcntr}
\usepackage{scrextend}
\usepackage{listings}
\lstdefinestyle{animateblocks}{
basicstyle=\color{black!20},
moredelim=**[is][\only<+>{\color{black}}]{@}{@},
}
\lstset{
escapeinside={<!}{!>},
}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows, automata, positioning, positioning, fit, calc, overlay-beamer-styles}
\tikzset{
invisible/.style={opacity=0},
visible on/.style={alt={#1{}{invisible}}},
alt/.code args={<#1>#2#3}{%
\alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}}
},
}
\usepackage[ngerman]{babel}
\usepackage[
backend=biber,
style=alphabetic,
sorting=ynt
]{biblatex}
\usepackage{csquotes}
\nocite{*}
\newcommand{\metadata}{
\hypersetup{
pdftitle = {\mytitle},
pdfauthor = {\student},
pdfsubject = {\mytitle}
}
}
\makeatletter
\def\beamer@calltheme#1#2#3{
\def\beamer@themelist{#2}
\@for\beamer@themename:=\beamer@themelist\do
{\usepackage[{#1}]{\beamer@themelocation/#3\beamer@themename}}}
\def\usefolder#1{
\def\beamer@themelocation{#1}
}
\def\beamer@themelocation{}
\usefolder{styles}
\usetheme{Awesome}
\newcounter{pagenumber}
\BeforeBeginEnvironment{frame}{
\stepcounter{pagenumber}
}
\counterwithin{framenumber}{subsection}
\pretocmd{\section}{
\immediate\write\@auxout{\global\noexpand\@namedef{s@totalsectionframes-\arabic{section}}{\arabic{framenumber}}}
}{}{}
\pretocmd{\subsection}{
\immediate\write\@auxout{\global\noexpand\@namedef{s@totalsubsectionframes-\arabic{section}-\arabic{subsection}}{\arabic{framenumber}}}
}{}{}
\AtEndDocument{
\immediate\write\@auxout{\global\noexpand\@namedef{s@totalsectionframes-\arabic{section}}{\arabic{framenumber}}}
\immediate\write\@auxout{\global\noexpand\@namedef{s@totalsubsectionframes-\arabic{section}-\arabic{subsection}}{\arabic{framenumber}}}
}
\newcommand{\framespersection}{
\ifcsdef{s@totalsectionframes-\arabic{section}}{
\csname s@totalsectionframes-\arabic{section}\endcsname
}{
0
}
}
\newcommand{\framespersubsection}{
\ifcsdef{s@totalsubsectionframes-\arabic{section}-\arabic{subsection}}{
\csname s@totalsubsectionframes-\arabic{section}-\arabic{subsection}\endcsname
}{
0
}
}
\makeatother