From d6c4386f52f6145b373f42af3fc0a617c6f1787e Mon Sep 17 00:00:00 2001 From: Frederik Beimgraben Date: Thu, 30 Oct 2025 19:29:56 +0100 Subject: [PATCH] adjust footer design --- HSRTReport/Config/PageSetup.tex | 54 ++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 21 deletions(-) diff --git a/HSRTReport/Config/PageSetup.tex b/HSRTReport/Config/PageSetup.tex index 27361ee..7aa67d5 100644 --- a/HSRTReport/Config/PageSetup.tex +++ b/HSRTReport/Config/PageSetup.tex @@ -40,6 +40,24 @@ % Clear all header and footer fields \fancyhf{} +\newcommand{\fancyfootL}{ + \color{gray}\blenderfont + \raisebox{0em}{ + \hspace{-2pt}\@author + } + \newline + \raisebox{0em}{ + \hspace{-2pt}\ifdef{\modulename}{\modulename}{Modul-Name} + } +} + +\newcommand{\fancyfootC}{ + \color{gray}\blenderfont\newline + \raisebox{0em}{ + Seite~\thepage~von~\pageref{LastPage} + } +} + % ------------------------------------------------------------------------------ % Header Configuration % ------------------------------------------------------------------------------ @@ -64,13 +82,11 @@ % ------------------------------------------------------------------------------ % Footer format: Author Name | Module Name | Page X of Y % The footer is centered -\fancyfoot[C]{% - \color{gray}\blenderfont% - \@author% - \footerhorizspacing% - \ifdef{\modulename}{\modulename}{Modul-Name}% - \footerhorizspacing% - Seite~\thepage~von~\pageref{LastPage}% +\fancyfoot[L]{ + \fancyfootL +} +\fancyfoot[C]{ + \fancyfootC } % ============================================================================== @@ -88,13 +104,11 @@ } \fancyhead[L]{\color{gray}\blenderfont\@title} % Same footer as regular pages - \fancyfoot[C]{% - \color{gray}\blenderfont% - \@author% - \footerhorizspacing% - \ifdef{\modulename}{\modulename}{Modul-Name}% - \footerhorizspacing% - Seite~\thepage~von~\pageref{LastPage}% + \fancyfoot[C]{ + \fancyfootC + } + \fancyfoot[L]{ + \fancyfootL } \renewcommand{\headrulewidth}{0pt} } @@ -112,13 +126,11 @@ \ifthenelse{\value{chapter} > 0}{\thechapter~–~\leftmark}{} } \fancyhead[L]{\color{gray}\blenderfont\@title} - \fancyfoot[C]{% - \color{gray}\blenderfont% - \@author% - \footerhorizspacing% - \ifdef{\modulename}{\modulename}{Modul-Name}% - \footerhorizspacing% - Seite~\thepage~von~\pageref{LastPage}% + \fancyfoot[C]{ + \fancyfootC + } + \fancyfoot[L]{ + \fancyfootL } }