Präsentation Struktur erzeugt

This commit is contained in:
marcodn 2024-07-31 22:13:38 +02:00
parent 56139bd08c
commit 91c76b74b9
4 changed files with 506 additions and 0 deletions

175
beamer-config.tex Normal file
View file

@ -0,0 +1,175 @@
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman,english]{babel}
% -- https://www.ctan.org/pkg/newtx?lang=en
\usepackage{newtxtext,newtxmath}
% -- https://www.ctan.org/pkg/scrextend
\usepackage{scrextend}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{threeparttable}
\usepackage{multirow}
\usepackage{pifont}
% get layout information
\usepackage{layout}
\usepackage{rotating}
\usepackage{adjustbox}
\usepackage{setspace}
\usepackage{ragged2e}
\usepackage{lipsum}
\usepackage{blindtext}
\usepackage{calc}
\usepackage{eqnarray,amsmath}
\usepackage[linesnumbered]{algorithm2e}
% -- Absolute positions
\usepackage[absolute,overlay]{textpos}
\usepackage{tcolorbox}
\tcbuselibrary{most}
\usepackage{soul}
%improve wrapping of URLs - hint by http://tex.stackexchange.com/a/10419/9075
\makeatletter
\g@addto@macro{\UrlBreaks}{\UrlOrds}
\makeatother
% -------------------------------------------------------------
% Hyperreferences
% -------------------------------------------------------------
\usepackage{hyperref}
\hypersetup{colorlinks=true,linkcolor=,urlcolor=gray70,citecolor=blue1}
% -------------------------------------------------------------
% Bibliography
% -------------------------------------------------------------
\usepackage[%
%sorting=debug,
%natbib=true,
%backend=biber,bibencoding=utf8,
backend=bibtex8,bibencoding=ascii,language=auto,natbib=true,%maxbibnames=10,
sorting=nyt,
style=alphabetic,
maxalphanames=1
%minnames=3,
%maxnames=6,
%doi=false
]{biblatex}
% -- remove plus sign in labels [Stö+18]
\renewcommand*{\labelalphaothers}{}
% -- make bibliography entries smaller
\renewcommand\bibfont{\scriptsize}
% -- and kill the abominable icon
\setbeamertemplate{bibliography item}[text]
%\addbibresource{bibliography.bib}
%\addbibresource{bibliography-2.bib}
% -------------------------------------------------------------
% Minted Code Listing
% -------------------------------------------------------------
% Need the following Python package:
% - Pygments (http://pygments.org/)
%
% Requires the -shell-escape flag when calling LaTeX !!!!
%
% List all styles:
% $ pygmentize -L styles
% \usemintedstyle{monokai}
%
% List all Languages:
% $ pygmentize -L lexers
%\usepackage[titles]{tocloft}
%\newlistof{listing}{lol}{Listings}
%\usepackage[newfloat]{minted}
%\usepackage{caption}
%\renewcommand{\cftlistingpresnum}{Listing~}
%\setlength{\cftlistingnumwidth}{2,8cm}
\usepackage{minted}
% -------------------------------------------------------------
% Captions
% -------------------------------------------------------------
\usepackage{caption}
\captionsetup{%
justification=raggedright,
singlelinecheck=false
}
% -------------------------------------------------------------
\renewcommand\thefootnote{\textbf{\textcolor{blue1}{\arabic{footnote}}}}
\renewcommand{\footnotesize}{\fontsize{6pt}{7pt}\selectfont}
%% Insert line break in algorithm
\newcommand{\WRP}{\par\qquad\(\hookrightarrow\)\enspace}
%\newcommand{\showHorizontalNavBar}{}
\def\showHorizontalNavBar{}
% -------------------------------------------------------------
% Color Boxes
% -------------------------------------------------------------
\newtcolorbox{shadowbox1}[2][]{%
enhanced,
size=small,
width=#2,
colback=gray1,
colframe=gray1,
sharp corners,
drop small lifted shadow=black,
#1
}
% -------------------------------------------------------------
% Images
% -------------------------------------------------------------
\newcommand{\rotimagewithsource}[3]{%
\begin{figure}
\hypersetup{urlcolor=gray50}
\setbeamerfont{caption}{size=\fontsize{2pt}{3pt}\selectfont}
\setbeamercolor{caption}{fg=gray50}
\captionsetup{labelformat=empty,justification=raggedright,singlelinecheck=false}%
\begin{adjustbox}{addcode={\begin{minipage}{\width}}{\caption{#3}\end{minipage}},#1,center}
#2
\end{adjustbox}
\addtocounter{figure}{-1}
\end{figure}
}
\newcommand{\rotimagewithcaption}[3]{%
\begin{figure}
\begin{adjustbox}{addcode={\begin{minipage}{\width}}{\caption{#3}\end{minipage}},#1,center}
#2
\end{adjustbox}
\end{figure}
}

263
beamerthemecleangreen.sty Normal file
View file

@ -0,0 +1,263 @@
%
% Latex-Beamer theme CleanGreen
%
% Author: André Conrad
% Date: 2023-02-23
% Version: 0.1
%
\mode<presentation>
% ---------------------------------------
%% Loading packages
% ---------------------------------------
\RequirePackage{tikz}
\usetikzlibrary{%
mindmap,
trees
}
\RequirePackage{csquotes}
%Define a reference depth.
%You can choose either relative or absolute.
%--------------------------
\newlength{\DepthReference}
%\settodepth{\DepthReference}{g}%relative to a depth of a letter.
\setlength{\DepthReference}{2pt}%absolute value.
%Define a reference Height.
%You can choose either relative or absolute.
%--------------------------
\newlength{\HeightReference}
%\settoheight{\HeightReference}{T}
\setlength{\HeightReference}{6pt}
%--------------------------
\newlength{\Width}%
\newcommand{\navbox}[2][red]%
{%
\settowidth{\Width}{#2}%
%\setlength{\fboxsep}{0pt}%
\colorbox{#1}%
{%
\raisebox{-\DepthReference}%
{%
\parbox[b][\HeightReference+\DepthReference][c]{\Width}{\centering#2}%
}%
}%
}
\setlength{\fboxsep}{1pt}
% ---------------------------------------
%% Colors
% ---------------------------------------
\definecolor{gray20}{HTML}{CCCCCC}
\definecolor{gray70}{HTML}{4C4C4C}
\definecolor{green1}{HTML}{A0DDCE}
\definecolor{green2}{HTML}{E9F8F3}
\definecolor{blue1}{HTML}{0070C0}
\definecolor{blue2}{HTML}{004C97}
\definecolor{lightbrown1}{HTML}{E3DBD3}
\definecolor{brown1}{HTML}{AD8f67}
\definecolor{webgreen}{rgb}{0,.5,0}
\definecolor{webbrown}{rgb}{.6,0,0}
\definecolor{gray1}{rgb}{.92,.92,.92}
\definecolor{gray2}{rgb}{.85,.85,.85}
\definecolor{gray50}{rgb}{.5,.5,.5}
\definecolor{applegreen}{rgb}{0.55, 0.71, 0.0}
\definecolor{brickred}{rgb}{0.8, 0.25, 0.33}
\definecolor{darklavender}{rgb}{0.45, 0.31, 0.59}
\definecolor{charcoal}{rgb}{0.21, 0.27, 0.31}
% Title slide
\setbeamercolor*{title page header}{fg=gray70}
\setbeamercolor*{author}{fg=gray70}
\setbeamercolor*{date}{fg=gray70}
% Framtitle
\setbeamercolor*{frametitle}{fg=gray70,bg=white}
% Footer
\setbeamercolor{footline}{fg=gray70,bg=white}
% List items
\setbeamercolor*{item}{fg=black}
\setbeamercolor*{enumerate item}{fg=black}
% Blocks
\setbeamercolor{block title}{fg=blue1}
%\setbeamercolor{block body}{bg=green2}
% Caption
\setbeamercolor{caption name}{fg=blue1}
\setbeamercolor{caption}{fg=gray70}
% Table of Content
\setbeamercolor{section in toc}{fg=blue1}
\setbeamercolor{subsection in toc}{fg=blue1}
% Bibliography
\setbeamercolor*{bibliography item}{fg=black}
\setbeamercolor*{bibliography entry title}{fg=blue2}
\setbeamercolor*{bibliography entry author}{fg=black}
\setbeamercolor*{bibliography entry location}{fg=black}
\setbeamercolor*{bibliography entry note}{fg=black}
% ---------------------------------------
%% Font Size
% ---------------------------------------
\setbeamerfont{frametitle}{size=\huge}
\setbeamerfont{framesubtitle}{size=\normalsize}
\setbeamerfont{title}{size=\huge}
\setbeamerfont{subtitle}{size=\normalsize}
\setbeamerfont*{author}{size=\normalsize}
\setbeamerfont*{date}{size=\small}
\setbeamerfont*{frametitle}{size=\huge}
\setbeamerfont*{footline}{size=\tiny}
\setbeamerfont*{institute}{size=\footnotesize}
%\setbeamerfont{itemize/enumerate body}{size=\Large}
%\setbeamerfont{itemize/enumerate subbody}{size=\Large}
%\setbeamerfont{itemize/enumerate subsubbody}{size=\large}
\setbeamerfont{enumerate item}{series=\bfseries}
\setbeamerfont{description item}{series=\bfseries}
\setbeamerfont{caption}{size=\tiny}
% Table of Content
\setbeamerfont{section in toc}{size=\normalsize}
\setbeamerfont{subsection in toc}{size=\normalsize}
\setbeamerfont{section number projected}{%
family=\rmfamily,series=\bfseries,size=\normalsize}
\setbeamercolor{section number projected}{bg=green1,fg=black}
% ball, circle and square
\setbeamertemplate{sections/subsections in toc}[circle]
% ---------------------------------------
%% Frame (inner/outer)
% ---------------------------------------
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{enumerate item}{\textbf{\arabic{enumi}.}}
\setbeamertemplate{enumerate subitem}{\textbf{\arabic{enumii}.}}
\setbeamersize{text margin left=16pt,text margin right=16pt}
% -----------------------
%% Title Page
% -----------------------
\defbeamertemplate*{title page}{cleangreen}
{
\centering
\vskip 1cm%
\begin{beamercolorbox}[center,sep=8pt]{title page header}
\usebeamerfont{title}\textbf{\inserttitle}\par%
\vskip 0.25cm%
\usebeamerfont{subtitle}\insertsubtitle
\end{beamercolorbox}%
\textcolor{green1}{\rule{.96\textwidth}{1.5pt}}
\vskip 0.75cm%
\begin{beamercolorbox}[center]{author}
\usebeamerfont{author}\insertauthor\\[2ex]
\usebeamerfont{institute}\insertinstitute\\[5ex]
\usebeamerfont{date}\insertdate
\end{beamercolorbox}
}
% -----------------------
%% Definition - Horizontal Nav Bar
% -----------------------
\setbeamertemplate{section in head/foot}{%
%\colorbox{green2}{\strut\bfseries\insertsectionhead}
\navbox[green2]{\bfseries\insertsectionhead}
}
\setbeamertemplate{section in head/foot shaded}{%
%\color{gray2}\insertsectionhead
\navbox[white]{\bfseries\color{gray2}\insertsectionhead}
}
% -----------------------
%% Frametitle
% -----------------------
\defbeamertemplate*{frametitle}{cleangreen}
{
\begin{beamercolorbox}[left, ht=36pt, wd=\paperwidth, leftskip=16pt, rightskip=16pt]{frametitle}
\ifx\insertframesubtitle\@empty%
\begin{tikzpicture}
\draw (0,0) -- (\textwidth,0) [line width=1pt, green2];
\draw (0,4pt) node [anchor=south west,inner sep=0mm, text depth=1mm] {\usebeamerfont{frametitle}\insertframetitle};
\end{tikzpicture}
\else%
\begin{tikzpicture}
\draw (0,0) -- (\textwidth,0) [line width=1pt, green2];
\draw (0,1pt) node [anchor=south west,inner sep=0mm, text depth=1mm] {\small\insertframesubtitle};
\draw (0,13pt) node [anchor=south west,inner sep=0mm, text depth=1mm] {\Large\insertframetitle};
\end{tikzpicture}
\fi
\ifx\showHorizontalNavBar\empty%
\vspace*{-18pt}
\else
\hspace*{-13.24pt}
\footnotesize
\insertnavigation{\textwidth}
\fi
\end{beamercolorbox}
}
% -----------------------
%% Footline
% -----------------------
\newcommand{\footlinetext}[1]{\def\insertfootlinetext{#1}}
\defbeamertemplate*{footline}{cleangreen}
{
\begin{beamercolorbox}[left, ht=20pt, wd=\textwidth, leftskip=16pt, rightskip=16pt]{footline}%
\usebeamerfont{footline}
\ifx\insertframetitle\@empty%
%\hfill\insertpagenumber\vspace{2.75mm}
\raggedleft\insertframenumber~/~\inserttotalframenumber\hspace{12.25pt}\vspace{8pt}
\else%
\begin{tikzpicture}
\draw (0,0) -- (423pt,0) [line width=1pt, green2];
\draw (-3pt,0) node [anchor=north west, inner sep=3pt] {\includegraphics[height=14pt]{gfx/fernuni_hagen_logo.jpg}};
\draw (100pt,-8pt) node [anchor=north west, inner sep=0mm, text depth=1mm] {\insertfootlinetext};
\draw (423pt,-8pt) node [anchor=north east,inner sep=0mm, text depth=1mm] {\insertframenumber~/~\inserttotalframenumber};
\end{tikzpicture}
\fi
\end{beamercolorbox}
}
\mode<all>

BIN
thesis-beamer.pdf Normal file

Binary file not shown.

68
thesis-beamer.tex Normal file
View file

@ -0,0 +1,68 @@
\documentclass[aspectratio=169]{beamer}
\input{beamer-config}
\usetheme{cleangreen}
\include{marco-galster-config}
\addbibresource{expose-ref.bib}
% ACHTUNG: Damit sich die Datei sauber im Visual Studio Code übersetzten lässt, muss in den Benutzer-Einstellungen
% das Element "latex-workshop.latex.tools" aufgenommen werden und der erscheinende Eintrag für latexmk bei den
% args am Anfang um den folgenden Eintrage erweitert werden:
% "-shell-escape"
\title{\myTitle}
%\subtitle{}
\author[M. Galster]{\myName}
\footlinetext{\insertshortauthor \hspace{4em} \inserttitle}
\institute{University~of~Hagen,~Germany}
\date{\myTime}
\begin{document}
\selectlanguage{ngerman}
% -- SLIDE -- Title
\begin{frame}[plain]
\titlepage
\end{frame}
% -- SLIDE -- TOC
\begin{frame}[c]
\frametitle{Übersicht}
%left space
\begin{addmargin*}{2.5em}
%enhance line space
\begin{spacing}{1}
\parbox{\linewidth}{%
\tableofcontents
}
\end{spacing}
\end{addmargin*}
\addtocounter{framenumber}{-1}
\end{frame}
% -- SLIDES --
\section{Ausgangsproblem}
\begin{frame}
\frametitle{Ausgangsproblem}
Anzeige der Schichten des Systems
\end{frame}
\begin{frame}
Definieren der Optimierungsansätze
\end{frame}
%% -- SLIDE -- REFERENCES
% hier alle Keys aus der BIB einfügen, die mit dargestellt werden sollen
\nocite{IbmOpenJPACaching2023,PostgresPro:Chap20.4:2023}
% Für mehreren Seite bei den Referenzen ein ",allowframebreaks" in den [] hinzufügen
\begin{frame}[t]
\frametitle{Referenzen}
\printbibliography[title=Referenzen]
\end{frame}
\end{document}