Skip to content
Snippets Groups Projects
Commit a7d53125 authored by Jannik Dunkelau's avatar Jannik Dunkelau
Browse files

Bake headings pagestyle into the listof commands

parent e4d251ba
No related branches found
No related tags found
No related merge requests found
......@@ -333,7 +333,7 @@ und fügt den entsprechenden Titel hinzu. Entsprechend sind die in
\begin{table}[ht]
\centering
\caption{Vergleich \texttt{\textbackslash{}reg} und \texttt{\textbackslash{}cref}.}%
\caption{Vergleich \texttt{\textbackslash{}ref} und \texttt{\textbackslash{}cref}.}%
\label{tab:cleveref}
\begin{tabularx}{\textwidth}{XX}
\toprule
......
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{hhuthesis}[2023/08/24 HHU Thesis LaTeX document class v1.22]
\ProvidesClass{hhuthesis}[2023/10/23 HHU Thesis LaTeX document class v1.23]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} % Options fallback.
\ProcessOptions\relax
......@@ -48,6 +48,8 @@
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{etoolbox}
\RequirePackage[nottoc]{tocbibind}
\RequirePackage{iflang} % Needed for language dependend distinctions
......@@ -199,6 +201,7 @@
urlbordercolor=hhublue
}
}
\AtEndPreamble{\sethyperrefhhucolors{}}
%% Define PDF meta data
\newcommand{\sethyperrefpdfinfos}{
......@@ -210,6 +213,7 @@
}
}
}
\AtEndPreamble{\sethyperrefpdfinfos{}}
%% Adapt lstlisting display
\newcommand{\lstkeyword}[1]{%
......@@ -237,6 +241,7 @@
\old@lstlistoflistings%
}
}
\AtEndPreamble{\setlstlistingstyle}
%% Adapt styling of algorithms
\newcommand{\setalgorithmstyle}{%
......@@ -248,8 +253,22 @@
{\renewcommand{\listalgorithmname}{Algorithmenverzeichnis}}{}%
\addcontentsline{toc}{section}{\listalgorithmname}%
\old@listofalgorithms%
% \thispagestyle{headings}%
}
}
\AtEndPreamble{\setalgorithmstyle}
%% Format listofs.
\AtBeginDocument{%
\preto\listoftables{\thispagestyle{headings}}%
\preto\listoffigures{\thispagestyle{headings}}%
\@ifpackageloaded{lstlisting}{%
\preto\lstlistoflistings{\thispagestyle{headings}}%
}{}%
\preto\listofalgorithms{\thispagestyle{headings}}%
}
%%% Setup of title page
......
......@@ -78,8 +78,6 @@
\usepackage{enumitem} % Leichter konfigurierbare enumerate-Umgebungen.
\usepackage{subcaption} % Unterteilung von Figures in Subfigures.
\usepackage[colorlinks]{hyperref} % Klickbare Links (z.B. Inhaltsverzeichnis).
\sethyperrefpdfinfos{} % Setzt Autor, Titel, etc. als PDF-Metadaten.
\sethyperrefhhucolors{} % Setzt den Farbsatz der HHU für hyperref.
\usepackage{hypcap} % Ankert hyperref links auf Grafik/Tabelle statt Caption.
\usepackage{url} % \url Kommando für Darstellung von Links
\usepackage{csquotes} % Improved quoting.
......@@ -94,13 +92,11 @@
%% Quellcode
\usepackage{listings} % Einbindung von Code.
\setlstlistingstyle{} % Kosmetische Einstellungen
%% Algorithmen in Pseudocode
\usepackage{algorithm} % Float-Umgebung für angegebene Algorithmen.
\usepackage{algorithmicx} % Angabe von Algorithmen in Pseudocode.
\usepackage{algpseudocode} % Standard Pseudocode-Elemente für Algorithmen.
\setalgorithmstyle{} % Kosmetische Einstellungen
%% Intelligenteres Referenzieren mittels \cref.
%% \languagename um dynamisch zwischen ngerman oder english zu wechseln.
......@@ -160,15 +156,10 @@
\backmatter
%% Listings of figures, tables, etc. Delete what is not needed.
\listoffigures\thispagestyle{headings}
\listoftables\thispagestyle{headings}
% Algorithms
\listofalgorithms\thispagestyle{headings}
% Code Listings
\lstlistoflistings\thispagestyle{headings}
\listoffigures
\listoftables
\listofalgorithms % Algorithms
\lstlistoflistings % Code Listings
\clearpage
\bibliography{references}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment