Korrigiere Header-Anzeige in allen Verzeichnissen und auf Kapitelseiten

This commit is contained in:
Frederik Beimgraben 2025-10-30 02:00:52 +01:00
parent 21d3a9c57c
commit 31325e289a
2 changed files with 27 additions and 3 deletions

View File

@ -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]
}

View File

@ -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
% ==============================================================================