add reference customizations

This commit is contained in:
Valentin Boettcher 2019-06-22 16:07:49 +02:00
parent 878e91abf3
commit 34560040ff

View file

@ -10,9 +10,14 @@
\RequirePackage{float}%
\RequirePackage{kvoptions}
\RequirePackage{booktabs}
\RequirePackage{fncylab}
\RequirePackage[automark,headsepline]{scrpage2}
\KOMAoptions{DIV=14}
\labelformat{section}{section #1}
\labelformat{figure}{figure #1}
\labelformat{table}{table #1}
\newcommand{\headsection}{\leftmark}
\newcommand{\ifset}[2]{\ifx {#1} \empty\else\ {#2}\fi}
\deftripstyle{pagestyle}
@ -21,13 +26,12 @@
{\pagemark}
{}
{\headsection}
{\pagemark}
{\@author}
{\@title\ifset{\lab@slug}{(\lab@slug)}}
{\@author}
{\pagemark}
\pagestyle{pagestyle}
\setlength\parindent{0pt} % Removes all indentation from paragraphs
\renewcommand{\labelenumi}{\alph{enumi}.}
\SetupKeyvalOptions{family=lab,prefix=lab@}
\DeclareStringOption{slug}