Aufgrund einer Störung des s3 Storage, könnten in nächster Zeit folgende GitLab Funktionen nicht zur Verfügung stehen: LFS, Container Registry, Job Artifacs, Uploads (Wiki, Bilder, Projekt-Exporte). Wir bitten um Verständnis. Es wird mit Hochdruck an der Behebung des Problems gearbeitet. Weitere Informationen zur Störung des Object Storage finden Sie hier: https://maintenance.itc.rwth-aachen.de/ticket/status/messages/59-object-storage-pilot

Commit 76ae468f authored by Lukas Janek Körfer's avatar Lukas Janek Körfer
Browse files

Update wzl.sty

parent 04c36c86
\ProvidesPackage{wzl}[2018/09/28]
\ProvidesPackage{wzl}[2019/01/29]
% Encoding
......@@ -29,15 +29,48 @@
\renewcommand{\familydefault}{\sfdefault}
\RequirePackage{setspace}
\setstretch{1.3}
\RequirePackage[parfill]{parskip}
% Colors
\usepackage{color}
% Autoformatting
\RequirePackage[all]{nowidow}
\emergencystretch=2em
\interfootnotelinepenalty=10000
% Code listings
\usepackage[newfloat]{minted}
\renewcommand{\listingname}{Quellcode}
\renewcommand{\listlistingname}{Quellcodeverzeichnis}
\providecommand*{\listingautorefname}{\listingname}
% Bibliography
\RequirePackage[autostyle]{csquotes}
\RequirePackage[backend=biber,style=wzl,date=short]{biblatex}
\RequirePackage[backend=biber,style=wzl,date=short,maxnames=9999,mincrossrefs=9999]{biblatex}
\defbibheading{bibliography}[\refname]{\chapter{#1}}
% Figures
\RequirePackage{graphicx}
\RequirePackage{wrapfig}
\RequirePackage{float}
% Blockquotes
\RequirePackage{quoting}
\renewcommand*{\quotingfont}{\singlespace}
% Footnotes
\RequirePackage[hang]{footmisc}
\setlength{\footnotemargin}{4mm}
\RequirePackage{chngcntr}
\counterwithout{footnote}{chapter}
% Captions
......@@ -91,27 +124,48 @@
\renewcommand{\thechapter}{\Roman{chapter}}
}
% Titles
\RequirePackage[compact]{titlesec}
% Chapter title
\titleformat{\chapter}[hang]{\normalfont\LARGE\bfseries}{\thechapter}{0.4cm}{}
% 8 pt
\titlespacing*{\chapter}{0pt}{-30pt}{0pt}
% Section title
\titleformat{\section}[hang]{\normalfont\Large\bfseries}{\thesection}{0.4cm}{}
% 18pt / 8pt
\titlespacing*{\section}{0pt}{0pt}{0pt}
% Subsection title
\titleformat{\subsection}[hang]{\normalfont\large\bfseries}{\thesubsection}{0.4cm}{}
% 16pt / 6pt
\titlespacing*{\subsection}{0pt}{0pt}{0pt}
% Headers
\RequirePackage{etoolbox}
\RequirePackage{fancyhdr}
\RequirePackage{titleps}
% Patch chapter definition
\patchcmd{\chapter}{\thispagestyle{plain}}{}{}{}
% Add header line
\renewcommand{\headrulewidth}{1pt}
% Define header for meta segments
\fancypagestyle{meta}{
\fancyhf{}
\fancyhead[OL,ER]{\thechapter}
\fancyhead[OR,EL]{\thepage}
\newpagestyle{meta}{
\setheadrule{1pt}%
\sethead[\textbf{\thepage}]% even-left
[]% even-center
[\textbf{\thechapter\space\chaptertitle}]% even-right
{\textbf{\thechapter\space\chaptertitle}}% odd-left
{}% odd-center
{\textbf{\thepage}}% odd-right
}
% Define header for content segments
\fancypagestyle{content}{
\fancyhf{}
\fancyhead[OL,ER]{\thepage}
\fancyhead[OR]{}
\fancyhead[EL]{}
\newpagestyle{content}{
\setheadrule{1pt}%
\sethead[\textbf{\thepage}]% even-left
[]% even-center
[\textbf{\thesection\space\sectiontitle}]% even-right
{\textbf{\thechapter\space\chaptertitle}}% odd-left
{}% odd-center
{\textbf{\thepage}}% odd-right
}
% TOCs
......@@ -154,32 +208,25 @@
\newlength{\tablen}
\settowidth{\tablen}{\cfttabpresnum\cfttabaftersnum}
\addtolength{\cfttabnumwidth}{\tablen}
% List of listings
\let\l@listing\l@figure
\patchcmd{\l@listing}{\cftfigpresnum}{\cftlistingpresnum}{}{}
\newcommand\cftlistingpresnum{\listingname~}
% Titles
% Lists
\RequirePackage{titlesec}
% Chapter title
\titleformat{\chapter}[hang]
{\normalfont\LARGE\bfseries}
{\thechapter}{1cm}{}
\titlespacing*{\chapter}{0pt}{-22pt}{8pt}
% Section title
\titleformat{\section}[hang]
{\normalfont\Large\bfseries}
{\thesection}{1cm}{}
\titlespacing*{\section}{0pt}{18pt}{8pt}
% Subsection title
\titleformat{\subsection}[hang]
{\normalfont\large\bfseries}
{\thesubsection}{1.5cm}{}
\titlespacing*{\subsection}{0pt}{16pt}{6pt}
\RequirePackage{enumitem}
\setlist[itemize]{parsep=0pt}
\setlist[enumerate]{parsep=0pt}
% Glossaries
\RequirePackage{tabu}
\RequirePackage[xindy,symbols,acronym,nomain]{glossaries}
\newcommand\acrfullrev[2][]{\acrshort[#1]{#2} (\acrlong[#1]{#2})}
\newcommand\acrfullplrev[2][]{\acrshortpl[#1]{#2} (\acrlongpl[#1]{#2})}
\renewcommand{\glossarysection}[2][]{}
\glssetnoexpandfield{unit}
......@@ -204,7 +251,7 @@
\newglossarystyle{acronyms}{
\renewenvironment{theglossary}
{\begin{longtabu} to \textwidth {X[2]X[3]}}
{\begin{longtabu} to \textwidth {X[1]X[2]}}
{\end{longtabu}}
\renewcommand*{\glsgroupskip}{}
\renewcommand*{\glossaryheader}{%
......@@ -216,4 +263,4 @@
\glossentrydesc{##1} \tabularnewline%
}
}
\endinput
\ No newline at end of file
\endinput
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment