From 31325e289a11b578c4a9cf24a1a96f50a3cc10f7 Mon Sep 17 00:00:00 2001 From: Frederik Beimgraben Date: Thu, 30 Oct 2025 02:00:52 +0100 Subject: [PATCH] Korrigiere Header-Anzeige in allen Verzeichnissen und auf Kapitelseiten --- Content/00_toc.tex | 7 +++++++ HSRTReport/Config/PageSetup.tex | 23 ++++++++++++++++++++--- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/Content/00_toc.tex b/Content/00_toc.tex index c9b4b42..2898ab3 100644 --- a/Content/00_toc.tex +++ b/Content/00_toc.tex @@ -18,6 +18,7 @@ % ------------------------------------------------------------------------------ { \newpage +\pagestyle{fancy} \blenderfont \vspace*{-5.5em} \tableofcontents @@ -33,6 +34,7 @@ % Figures are automatically numbered and referenced % ------------------------------------------------------------------------------ \newpage +\pagestyle{fancy} { \noindent \blenderfont @@ -51,6 +53,7 @@ \blenderfont \listoftables } +\pagestyle{fancy} % ------------------------------------------------------------------------------ % List of Listings @@ -64,6 +67,7 @@ \blenderfont \lstlistoflistings } +\pagestyle{fancy} % ------------------------------------------------------------------------------ % List of Equations @@ -76,6 +80,7 @@ \blenderfont \listofmyequations } +\pagestyle{fancy} % ------------------------------------------------------------------------------ % Glossary Section @@ -94,6 +99,7 @@ { \renewcommand*{\entryname}{Wort} \newpage + \pagestyle{fancy} \vspace*{-2.25em} \printglossary } @@ -103,6 +109,7 @@ { \renewcommand*{\entryname}{Abkürzung} \newpage + \pagestyle{fancy} \vspace*{-2.25em} \printglossary[type=\acronymtype] } diff --git a/HSRTReport/Config/PageSetup.tex b/HSRTReport/Config/PageSetup.tex index d2c5f6b..d26e85a 100644 --- a/HSRTReport/Config/PageSetup.tex +++ b/HSRTReport/Config/PageSetup.tex @@ -22,6 +22,9 @@ % Remove default header rule \renewcommand{\headrulewidth}{0pt} +% Override KOMA-Script chapter page style to use fancy instead of plain +\renewcommand{\chapterpagestyle}{fancy} + % ============================================================================== % Page Number Configuration % ============================================================================== @@ -74,9 +77,14 @@ % Define the plain page style (used on chapter start pages) \fancypagestyle{plain}{ \fancyhf{} - % No header on chapter start pages - \fancyhead[R]{} - \fancyhead[L]{} + % Show headers also on chapter start pages + \fancyhead[L]{% + \color{gray}\blenderfont% + \ifnum\value{chapter}>0% + \thechapter\quad\leftmark% + \fi% + } + \fancyhead[R]{\color{gray}\blenderfont\@title} % Same footer as regular pages \fancyfoot[L]{% \color{gray}\blenderfont% @@ -122,6 +130,15 @@ \originalchapter{#1}% } +% ============================================================================== +% Override Default Page Styles +% ============================================================================== +% Ensure all special pages use fancy style +\AtBeginDocument{% + \pagestyle{fancy}% + \renewcommand{\chapterpagestyle}{fancy}% +} + % ============================================================================== % End of Page Setup Module % ==============================================================================