From 17b8952dad5a15270d71e416c25c558e80df2dde Mon Sep 17 00:00:00 2001 From: Jannik Dunkelau <jannik.dunkelau@hhu.de> Date: Thu, 24 Aug 2023 11:24:44 +0200 Subject: [PATCH] Fix page style for first ToC page --- hhuthesis.cls | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hhuthesis.cls b/hhuthesis.cls index 03022b9..8bc75d5 100644 --- a/hhuthesis.cls +++ b/hhuthesis.cls @@ -1,5 +1,5 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{hhuthesis}[2021/06/28 HHU Thesis LaTeX document class v1.20] +\ProvidesClass{hhuthesis}[2023/08/24 HHU Thesis LaTeX document class v1.21] \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} % Options fallback. \ProcessOptions\relax @@ -121,6 +121,8 @@ \RequirePackage[scaled=0.95]{helvet} \pagestyle{headings} +%% First page of ToC somehow forces page style to plain. This fixes it. +\AtBeginDocument{\addtocontents{toc}{\protect\thispagestyle{headings}}} \setlength{\textwidth}{15cm} -- GitLab