From 94a7fe58c23018c7fea749c0c5feead63d000b35 Mon Sep 17 00:00:00 2001 From: Jannik Dunkelau <jannik.dunkelau@hhu.de> Date: Mon, 23 Oct 2023 13:05:20 +0200 Subject: [PATCH] Fix pagestyle for lstlistoflistings --- hhuthesis.cls | 12 ++++++------ thesis.tex | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/hhuthesis.cls b/hhuthesis.cls index 70df22e..dd7968a 100644 --- a/hhuthesis.cls +++ b/hhuthesis.cls @@ -1,5 +1,5 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{hhuthesis}[2023/10/23 HHU Thesis LaTeX document class v1.24] +\ProvidesClass{hhuthesis}[2023/10/23 HHU Thesis LaTeX document class v1.25] \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} % Options fallback. \ProcessOptions\relax @@ -261,12 +261,12 @@ %% Format listofs. \AtBeginDocument{% - \preto\listoftables{\thispagestyle{headings}}% - \preto\listoffigures{\thispagestyle{headings}}% - \@ifpackageloaded{lstlisting}{% - \preto\lstlistoflistings{\thispagestyle{headings}}% + \appto\listoftables{\thispagestyle{headings}}% + \appto\listoffigures{\thispagestyle{headings}}% + \@ifpackageloaded{listings}{% + \appto\lstlistoflistings{\thispagestyle{headings}}% }{}% - \preto\listofalgorithms{\thispagestyle{headings}}% + \appto\listofalgorithms{\thispagestyle{headings}}% } diff --git a/thesis.tex b/thesis.tex index 6aa8a7e..769ec37 100644 --- a/thesis.tex +++ b/thesis.tex @@ -129,6 +129,12 @@ \tableofcontents +%% Listings of figures, tables, etc. Delete what is not needed. +\clearpage +\listoftables\thispagestyle{headings} +\listoffigures +\listofalgorithms % Algorithms +\lstlistoflistings % Code Listings \mainmatter @@ -155,12 +161,6 @@ \backmatter -%% Listings of figures, tables, etc. Delete what is not needed. -\listoffigures -\listoftables -\listofalgorithms % Algorithms -\lstlistoflistings % Code Listings - \clearpage \bibliography{references} %% Depending on Language, use german alphadin or original alpha -- GitLab