Commit c49da213 authored by Martin Deinhofer's avatar Martin Deinhofer
Browse files
parents 31479bab 742bfeff
This diff is collapsed.
......@@ -63,8 +63,8 @@
% NOTE: The recommended LaTeX command to invoke a control entry type is:
%
%\makeatletter
%\def\bstctlcite{\@ifnextchar[{\@bstctlcite}{\@bstctlcite[@auxout]}}
%\def\@bstctlcite[#1]#2{\@bsphack
%\def{\bstctlcite}{\@ifnextchar[{\@bstctlcite}{\@bstctlcite[@auxout]}}
%\def{\@bstctlcite}[#1]#2{\@bsphack
% \@for\@citeb:=#2\do{%
% \edef\@citeb{\expandafter\@firstofone\@citeb}%
% \if@filesw\immediate\write\csname #1\endcsname{\string\citation{\@citeb}}\fi}%
......
......@@ -2,75 +2,129 @@
\ProvidesPackage{custom}[2018/11/23 Slide Customization]
\RequirePackage{twcolors}
\RequirePackage{listings}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Listings
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\lstloadlanguages{[ISO]C++}
% \lst@Key{matchrangestart}{f}{\lstKV@SetIf{#1}\lst@ifmatchrangestart}
% \def\lst@SkipToFirst{%
% \lst@ifmatchrangestart\c@lstnumber=\numexpr-1+\lst@firstline\fi
% \ifnum \lst@lineno<\lst@firstline
% \def\lst@next{\lst@BeginDropInput\lst@Pmode
% \lst@Let{13}\lst@MSkipToFirst
% \lst@Let{10}\lst@MSkipToFirst}%
% \expandafter\lst@next
% \else
% \expandafter\lst@BOLGobble
% \fi}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% C Syntax Highlighting
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\definecolor{c-violett}{RGB}{120,28,206}
\lstdefinestyle{c} {
language={[ISO]C++},
frame=shadowbox,
framexleftmargin=8mm,
rulesepcolor=\color{\accentcolor!50},
basicstyle=\ttfamily\footnotesize,
commentstyle=\color{\secondarycolor},
stringstyle=\color{ttw-violett},
keywordstyle=\bfseries\color{\primarycolor},
directivestyle=\color{c-violett},
emphstyle=\color{c-violett},
captionpos=b,
numbers=left,
numberstyle=\ttfamily\color{\accentcolor},
tabsize=3,
morekeywords={nullptr},
% matchrangestart=t,
showlines=true
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Sliced Circular Progressbar
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% --------------------------------------------------------------------------------------------------------------------------------
% Title Page Information
% --------------------------------------------------------------------------------------------------------------------------------
% \RequirePackage{datetime}
% \def\currentdate{\@date}
% \makeatletter \def\currentdate{\@date} \makeatother
% \def\title{Presentation Title}
% \def\subtitle{Presentation Subtitle}
% \def\shorttitle{\hspace{1.75em}\title}
% \def\authorname{Walter Subject}
% \def\authortext{\href{mailto:me@technikum-wien.at;other@technikum-wien.at?subject=\title}{Ausgef\"uhrt von: \authorname}}
% \def\studentid{Personenkennzeichen: 1234567890}
% \def\supervisortitle{Betreuer:}
% \def\supervisor{1\textsuperscript{st} Supervisor}
% \def\secondsupervisor{2\textsuperscript{nd} Supervisor}
% \def\place{Vienna}
% --------------------------------------------------------------------------------------------------------------------------------
% Colors
% --------------------------------------------------------------------------------------------------------------------------------
\def\primarycolor{tw-blue}
\def\secondarycolor{tw-green}
\def\accentcolor{tw-gray}
% ----------------------------------------------------------------------------------------------------------------------------
% Font Style
% ----------------------------------------------------------------------------------------------------------------------------
\RequirePackage{fontspec}
% \setmainfont{Ubuntu Thin}
\setsansfont{Ubuntu Light}[Scale=0.85]
\setmonofont{Fira Mono Regular}[Scale=0.85]
\RequirePackage{xeCJK}
\setCJKmainfont{Noto Sans SC Light}[Scale=0.85]
\newcommand{\slicedcircularprogressbar}[9]{% Syntax: \twprogressbar{\coordinate}{\oradius}{\iradius}{\oangle}{\total}{\number}{\basecol}{\fillcol}{\bgcol}
\begin{tikzpicture}[overlay]
\def\ratio{#6/#5}
\setCJKsansfont{Noto Sans SC Light}[Scale=0.85]
\setCJKmonofont{Noto Sans SC Light}[Scale=0.85]
\setCJKsansfont{Noto Sans SC Light}[Scale=0.85]
\def\outerradius{#2}
\def\innerradius{#3}
% \setCJKmainfont{Noto Serif SC}
% \setCJKmainfont{Noto Sans TC Light}
% \setCJKmainfont{Noto Serif TC Light}
% \setCJKmainfont{Zhi Mang Xing Regular}
% \setCJKmainfont{ZCOOL KuaiLe Regular}
% \setCJKmainfont{Long Cang Regular}
% \setCJKmainfont{SentyWen}
% \setCJKmainfont{HanyiSentyTang}
% \setCJKmainfont{Hanyi Senty Candy}
% \setCJKmainfont{Liu Jian Mao Cao}
% \setCJKmainfont{Ma Shan Zheng}
\coordinate (centerprogressbar) at #1;
% ----------------------------------------------------------------------------------------------------------------------------
% Listings
% ----------------------------------------------------------------------------------------------------------------------------
% \RequirePackage[outputdir={build},cache=false,kpsewhich=true,newfloat=true]{minted}
\RequirePackage[outputdir={build},kpsewhich=true,newfloat=true]{minted}
% \RequirePackage[finalizecache=true,outputdir={build},kpsewhich=true,newfloat=true]{minted}
% \RequirePackage[finalizecache=true,frozencache=true,outputdir={build},kpsewhich=true,newfloat=true]{minted}
\draw[draw=none,fill=#7] (centerprogressbar) circle (\outerradius);
\draw[draw=none,fill=#8] (centerprogressbar) -- (centerprogressbar) ++(0,\outerradius) arc (90:90-360*\ratio:\outerradius) -- (centerprogressbar);
\draw[draw=none,fill=#9] (centerprogressbar) circle (\innerradius);
\renewcommand{\theFancyVerbLine}{\ttfamily\textcolor{tw-gray}{\scriptsize\oldstylenums{\arabic{FancyVerbLine}}}}
\usemintedstyle{fhtw}
\NewDocumentCommand{\csource }{ O{} m }{\inputminted[frame=single,linenos,rulecolor=black,resetmargins,numbersep=6pt,xleftmargin=0mm,xrightmargin=0mm,framesep=1mm,highlightcolor=\secondarycolor!35,#1]{c}{#2}}
\NewDocumentCommand{\bash }{ O{} m }{\inputminted[frame=single,linenos,rulecolor=black,resetmargins,numbersep=6pt,xleftmargin=0mm,xrightmargin=0mm,framesep=1mm,highlightcolor=\secondarycolor!35,rulecolor=black,fontsize=\fontsize{11}{11}\selectfont,#1]{bash}{#2}}
\NewDocumentCommand{\bat }{ O{} m }{\inputminted[frame=single,linenos,rulecolor=black,resetmargins,numbersep=6pt,xleftmargin=0mm,xrightmargin=0mm,framesep=1mm,highlightcolor=\secondarycolor!35,rulecolor=black,fontsize=\fontsize{11}{11}\selectfont,#1]{bat}{#2}}
\NewDocumentCommand{\html }{ O{} m }{\inputminted[frame=single,linenos,rulecolor=black,resetmargins,numbersep=6pt,xleftmargin=0mm,xrightmargin=0mm,framesep=1mm,highlightcolor=\secondarycolor!35,rulecolor=black,#1]{html}{#2}}
\NewDocumentCommand{\css }{ O{} m }{\inputminted[frame=single,linenos,rulecolor=black,resetmargins,numbersep=6pt,xleftmargin=0mm,xrightmargin=0mm,framesep=1mm,highlightcolor=\secondarycolor!35,rulecolor=black,#1]{css}{#2}}
\NewDocumentCommand{\js }{ O{} m }{\inputminted[frame=single,linenos,rulecolor=black,resetmargins,numbersep=6pt,xleftmargin=0mm,xrightmargin=0mm,framesep=1mm,highlightcolor=\secondarycolor!35,rulecolor=black,#1]{js}{#2}}
\NewDocumentCommand{\vue }{ O{} m }{\inputminted[frame=single,linenos,rulecolor=black,resetmargins,numbersep=6pt,xleftmargin=0mm,xrightmargin=0mm,framesep=1mm,highlightcolor=\secondarycolor!35,rulecolor=black,fontsize=\fontsize{9}{9}\selectfont,#1]{vue}{#2}}
% ###############################################################################################################################
% ----------------------------------------------------------------------------------------------------------------------------
% Page Setup
% ----------------------------------------------------------------------------------------------------------------------------
\newcommand{\titlepagesetup}{
\title[Web Development]{Full Stack Web Development}
\subtitle{WS2019 - BSA5 Ausgewählte Kapitel}
\author[Alija Sabic]{Alija Sabic}
\mail{sabic@technikum-wien.at}
\institute{Smart Homes and Assistive Technologies}
\date{\today}
\keywords{Web, WWW, HTML, CSS, JavaScript}
\logo[3cm]{fhtw-logo.pdf}
}
\pgfmathparse{#5-1}
\pgfmathsetmacro{\nums}{\pgfmathresult}
\newcommand{\insertemptytitlepage}{
\begin{frame}
\end{frame}
}
% ----------------------------------------------------------------------------------------------------------------------------
% Bibliography/References / ToC for single standalones
% ----------------------------------------------------------------------------------------------------------------------------
\newcommand{\biblio}{
\begin{frame}[allowframebreaks]{References}
\label{references}
\bibliography{references}
\end{frame}
}
\newcommand{\bibliolist}{
% \appendix
% Acronyms
\begin{frame}[allowframebreaks]{Acronyms}
\label{acronyms}
\printacronyms
\end{frame}
% References
\begin{frame}[allowframebreaks]{References}
\label{references}
\bibliography{references}
\end{frame}
}
\foreach \x in {0,...,\nums} {
\pgfmathparse{360/#5*\x}
\pgfmathsetmacro{\angl}{\pgfmathresult}
\def\slice{#4}
\draw[draw=none,fill=#9,line width=0.1mm] (centerprogressbar) -- +(90-\angl+\slice:\outerradius+0.1) arc (90-\angl+\slice:90-\angl-\slice*2:\outerradius) -- cycle;
}
\end{tikzpicture}
}
\ No newline at end of file
% ----------------------------------------------------------------------------------------------------------------------------
% Utlities
% ----------------------------------------------------------------------------------------------------------------------------
% \RequirePackage{menukeys}
\NewDocumentCommand{\circled}{ O{} O{} m }{%
\tikz[baseline=(char.base),#1]\node[draw,shape=circle,inner sep=0.075em,#2](char){#3};%
}%
\NewDocumentCommand{\key}{ O{} O{} m }{%
\tikz[baseline=(key.base),#1]\node[fill=tw-gray!20!white,draw,shape=rectangle,inner sep=0.25em,rounded corners=0.125em,drop shadow={shadow xshift=0.125em,shadow yshift=-0.125em,color=tw-gray},#2](key){#3};%
}%
\ No newline at end of file
......@@ -8,286 +8,47 @@
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{fhtw}[2018/11/23 FHTW Beamer Template]
% This style file is a combination of the four files required to create the complete theme
% 1. Inner
% 2. Outer
% 3. Color
% 4. Font
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Packages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mode<presentation>
\mode<all>
\RequirePackage{custom}
\RequirePackage{twcolors}
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Tikz
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{tikz}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{calc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Customization
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\sidebarwidth{2cm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Color theme
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This sets the colour of the title of the presentation and titles of all the slides in the presentation.
\setbeamercolor{frametitle}{fg=\primarycolor}
% \setbeamercolor{Title}{fg=\primarycolor}
% In case you choose to display the Table of Contents, or the Outline slide.
\setbeamercolor{section in toc}{fg = \primarycolor}
\setbeamercolor{section in toc shaded}{fg = \primarycolor}
\setbeamercolor{subsection in toc}{fg = \secondarycolor}
\setbeamercolor{subsection in toc shaded}{fg = \secondarycolor}
% The colour of all the items, subitems and and subsubitems are set to black.
\setbeamercolor{item}{fg = \primarycolor}
\setbeamercolor{subitem}{fg = \primarycolor}
\setbeamercolor{subsubitem}{fg = \primarycolor}
% This sets the color for each item heading of the description environment.
\setbeamercolor{description item}{fg = \primarycolor}
% We also need to fix the colours for captions for figures and tables.
\setbeamercolor{caption}{fg = \secondarycolor}
\setbeamercolor{caption name}{fg = \primarycolor}
%Standard block
\setbeamercolor{block title}{fg = \primarycolor, bg = \primarycolor!15!white}
\setbeamercolor{block body}{bg = \primarycolor!5!white}
% Alert block
\setbeamercolor{block title alerted}{fg = ttw-red, bg = ttw-red!15!white}
\setbeamercolor{block body alerted}{bg = ttw-red!5!white}
% Example block
\setbeamercolor{block title example}{fg = \secondarycolor, bg = \secondarycolor!15!white}
\setbeamercolor{block body example}{bg = \secondarycolor!5!white}
% Color of basic text
\setbeamercolor{normal text}{fg=tw-black}
% Sidebar
\usecolortheme{sidebartab}
\setbeamercolor{sidebar right}{fg=white, bg=\secondarycolor!30}
\setbeamercolor{section in sidebar}{fg=white, bg=\primarycolor}
\setbeamercolor{subsection in sidebar}{fg=white, bg=\primarycolor}
\setbeamercolor{title in sidebar}{fg=\primarycolor}
\setbeamercolor{subtitle in sidebar}{fg=\primarycolor}
\setbeamercolor{author in sidebar}{fg=black!15!\secondarycolor}
\setbeamercolor{palette sidebar secondary}{fg=\primarycolor}
\setbeamercolor{palette sidebar tertiary}{fg=\primarycolor}
\setbeamercolor{note page}{bg=\accentcolor!10}
\setbeamercolor{note title}{bg=\accentcolor!30}
\setbeamercolor{note date}{fg=\secondarycolor}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Font theme
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% use the default fonts
\usefonttheme{professionalfonts}
% Font for the presentation title
\setbeamerfont{title}{size = \huge}
% Font of the frame titles
\setbeamerfont{frametitle}{size = \Large}
\setbeamerfont{author in sidebar}{size=\fontsize{6}{8}\selectfont}
\setbeamerfont{title in sidebar}{size=\fontsize{6}{8}\selectfont}
\setbeamerfont{section in sidebar}{size=\fontsize{6}{8}\selectfont}
\setbeamerfont{subsection in sidebar}{size=\fontsize{6}{8}\selectfont}
\setbeamerfont{subsubsection in sidebar}{size=\fontsize{6}{8}\selectfont}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Inner theme
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\useinnertheme{rounded}
\setbeamercovered{transparent = 0}
% Navigation Symbols
\setbeamertemplate{navigation symbols}{}
\defbeamertemplate{itemize subitem}{minus}{\textbf{-}}
\defbeamertemplate{itemize subsubitem}{bullet}{$\bullet$}
% Instead of rounded circles, we will use triangles as the indicator for items.
\setbeamertemplate{itemize item}[square]
\setbeamertemplate{itemize subitem}[minus]
\setbeamertemplate{itemize subsubitem}[bullet]
% The default option for enumerate environment removes the circles around the numbers provided by the "rounded" inner theme. Just simple numbers remain.
\setbeamertemplate{enumerate items}[square]
% in case you want to have an 1.2.3 numbering style use the template below
\setbeamertemplate{enumerate subitem}{\insertenumlabel.\insertsubenumlabel}
\setbeamertemplate{enumerate subitem}{\insertenumlabel.\insertsubenumlabel}
\setbeamertemplate{enumerate subsubitem}{\insertenumlabel.\insertsubenumlabel.\insertsubsubenumlabel}
\setbeamertemplate{sections/subsections in toc}[square]
% \useinnertheme{rounded}
\setbeamercovered{transparent=10}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Outer theme
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\useoutertheme[right,width=\sidebarwidth,height=0em,itemsep=2em]{sidebar}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Title Page
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{title page}{
\begin{tikzpicture}[
remember picture,
overlay,
base text style/.style = { draw=none, anchor=north west },
title text style/.style = { base text style, font=\fontsize{14}{24}\sffamily\bfseries\selectfont, text width=\textwidth },
norm text style/.style = { base text style, font=\fontsize{10}{10}\sffamily\selectfont, align=left }
]
\coordinate (start) at ($(current page.south west)+(0.1,0.1)$);
\coordinate (end) at ($(current page.north east)+(-0.1,-0.1)$);
\def\identation{0.4}
% Content
\node[title text style, shift={(\identation,8)}] at (start) {\titletext};
\coordinate (textstart) at ($(current page.south west)+(0.1,-0.1)$);
\node[norm text style, shift={(\identation,4.75)}] at (textstart) {\authortext};
%\node[norm text style, shift={(\identation,4.25)}] at (textstart) {\studentid};
%\node[norm text style, shift={(\identation,3.5)}] at (textstart) {\supervisortitle};
%\node[norm text style, shift={(\identation+1.5,3.5)}] at (textstart) {\supervisor};
%\node[norm text style, shift={(\identation+1.5,3)}] at (textstart) {\secondsupervisor};
\node[norm text style, shift={(10,3)}, anchor=south east] at (textstart) {\place, \currentdate};
% Colored rectangles
\def\fw{9.4/42}
\foreach \color [count=\ci] in {ttw-blue,ttw-violett,ttw-green,ttw-red,ttw-gray,ttw-lightblue,ttw-lightorange,ttw-red,ttw-gray,ttw-lightblue,
ttw-green,ttw-lightorange,ttw-red,ttw-gray,ttw-green,ttw-gray,ttw-yellow,ttw-lightorange,ttw-darkcyan,ttw-blue,
ttw-darkcyan,ttw-red,ttw-green,ttw-lightblue,ttw-gray,ttw-lightblue,ttw-green,ttw-gray,ttw-red,ttw-lightorange,
ttw-gray,ttw-green,ttw-gray,ttw-lightorange,ttw-darkcyan,ttw-violett,ttw-gray,ttw-blue,ttw-green,ttw-gray,
ttw-red,ttw-gray} {
\draw[draw=none,fill=\color] ($(end)+(0,-(\ci*\fw)$) rectangle ++(-2,\fw);
}
% Logo
\def\logowidth{1.5cm}
\def\fhtwlogowidth{3cm}
\node[anchor=south west] at ($(current page.south west)+(1*\identation,2*\identation)$) {\includegraphics[width=\logowidth]{resources/images/studyAThome_noir.pdf}};
\node[anchor=south west] at ($(current page.south west)+(1*\identation+1.5*\logowidth,2*\identation)$) {\includegraphics[width=\logowidth]{resources/images/ma23_logo.jpg}};
\node[anchor=south west] at ($(current page.south west)+(6*\logowidth - 1*\logowidth/2,2*\identation)$) {\includegraphics[width=\logowidth]{resources/images/fhtw-logo.pdf}};
\node[font=\fontsize{4}{4}\sffamily\selectfont, align=left,anchor=south west] at ($(current page.south west)+(1*\identation,1*\identation)$) {Funded by the City of Vienna, Grant nr. 22-07};
% Frame
\draw[draw=black,line width=0.2mm,anchor=north west] (start) rectangle (end);
\end{tikzpicture}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Sidebar
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \setbeamertemplate{sidebar \beamer@sidebarside}{
\makeatletter
\defbeamertemplate*{sidebar \beamer@sidebarside}{fhtw}{
% Progressbar
\slicedcircularprogressbar{(1,-0.965)}{0.8cm}{0.7cm}{1}{\inserttotalframenumber}{\insertframenumber}{\primarycolor!30}{\primarycolor}{\secondarycolor!30}
\vskip 0.7cm \hskip 0.50cm
\includegraphics[height=15pt]{resources/images/fhtw-logo.pdf}
%FIXME: Place via tikz environment
\vskip 0.75cm
{
\usebeamercolor[fg]{author in sidebar} \hspace{1.1em}
\insertshortauthor[width=8em,center,respectlinebreaks]
}
\vskip 0.25cm
{
\usebeamercolor[fg]{title in sidebar} \hspace{-0.3em}
\shorttitle
}
\vskip 0.50cm
{
\insertverticalnavigation{\sidebarwidth}
}
\vfill
% Slide number
\hbox to \sidebarwidth{
\hfill
{\small \textcolor{\secondarycolor}{\insertframenumber/\inserttotalframenumber}}
\hskip 0.10mm
}
\vskip 0.10mm
% Line separating sidebar and main content
\begin{tikzpicture}[overlay]
\draw[draw=\primarycolor,line width=0.4mm] (-0.04,9.6) -- ++(0,-9.6);
\draw[draw=\primarycolor,line width=0.15mm] (0,0) -- (0,10);
\end{tikzpicture}
}
\makeatother
\setbeamertemplate{sidebar right,width=\sidebarwidth}{fhtw}
%% Sidebar (shaded)
% \makeatletter
% \setbeamertemplate{sidebar canvas \beamer@sidebarside}[vertical shading][top=tw-green!30,bottom=tw-green!30!tw-blue!10]
% \makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Frametitle
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Now that we have changed the headline, we will need to orient the frame titles in a way that they come at the
% right stop just above the horizontal line.
\setbeamertemplate{frametitle}{\insertframetitle}
\setbeamertemplate{frametitle}{
\ifx\insertframesubtitle\empty
\vskip 2mm \hskip -2mm
\color{tw-blue}{\insertframetitle}
\else
\vskip 2mm \hskip -2mm
\color{tw-blue}{\insertframetitle} - \color{tw-green}{\insertframesubtitle}
\fi
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Captions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{caption}[numbered]
\mode
<all>
\setbeamertemplate{caption}[numbered]
\ No newline at end of file
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{preamble}[2018/12/08 Document Preamble]
% multi screen mode
\RequirePackage{pgfpages}
% Enable two-screen mode only for notes
\@ifclasswith{beamer}{notes}{\setbeameroption{show notes on second screen=right}}{}
% ----------------------------------------------------------------------------------------------------------------------------
% Theme
% ----------------------------------------------------------------------------------------------------------------------------
\usetheme[%
% hideothersectionsidebarsubsections,%
toclevel=4,%
stoclevel=3,%
style=fhtw,%
framewidth=3,%
right,%
sidebarwidth=0.25\paperwidth,%
showframes,%
noframes,%
sidebarnavsep=0.8em,%
% alert=ttw-violett,%
]{fhtw}%
% \usetheme[style=fhtw-random,sidebarwidth=0.25\paperwidth,,framewidth=3,frameamount=42]{fhtw}
% \usetheme[style=noir,showframes]{fhtw}
% \usetheme[style=noir-bridge]{fhtw}
% \usetheme[style=noir-bridge-color]{fhtw}
% \usetheme[style=bridge]{fhtw}
% \usetheme[style=simple,sidebarwidth=0.2\paperwidth]{fhtw}
% \usetheme[style=complex,gridsize=15,sidebarwidth=0.2\paperwidth]{fhtw}
% ----------------------------------------------------------------------------------------------------------------------------
% Hooks
% ----------------------------------------------------------------------------------------------------------------------------
% \AtEndDocument{\bibliolist{}}
\AtBeginSection[]{%
\begin{frame}[plain]%
\frametitle{Section}
\tableofcontents[sections=\value{section},sectionstyle=show,subsectionstyle=show,subsubsectionstyle=show]%
\addtocounter{framenumber}{-1}
\end{frame}%
}
% ----------------------------------------------------------------------------------------------------------------------------
% Bibliography/References
% ----------------------------------------------------------------------------------------------------------------------------
\RequirePackage[square,numbers,sort]{natbib}
% TODO: provide examples
\RequirePackage{usebib}
\bibinput{references}
\setlength{\bibsep}{1em}
\bibliographystyle{IEEEtranN}
\interfootnotelinepenalty=10000
% ----------------------------------------------------------------------------------------------------------------------------
% Styles & Packages
% ----------------------------------------------------------------------------------------------------------------------------
\RequirePackage{fhtw}
\RequirePackage{custom}
% \RequirePackage{lipsum}
\RequirePackage{adjustbox}
\RequirePackage{appendixnumberbeamer}
% ----------------------------------------------------------------------------------------------------------------------------
% Paragraph Spacing