From 88ee3856818c23004d9163976fd54d87e73dbf5d Mon Sep 17 00:00:00 2001 From: Frederik Beimgraben Date: Thu, 30 Oct 2025 21:37:46 +0100 Subject: [PATCH] fix: Page numbering method --- HSRTReport/Modules/Layout/Logos.tex | 4 ++-- HSRTReport/Pages/Titlepage.tex | 2 +- Main.tex | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/HSRTReport/Modules/Layout/Logos.tex b/HSRTReport/Modules/Layout/Logos.tex index 093e394..8084ed9 100644 --- a/HSRTReport/Modules/Layout/Logos.tex +++ b/HSRTReport/Modules/Layout/Logos.tex @@ -104,11 +104,11 @@ \begin{tikzpicture}[overlay, remember picture] % === Main Logo(s) === \node[anchor=south east, inner sep=0pt, xshift=-\footerXShift, yshift=\footerYShift, opacity=0.0] (logo0) at (current page.south east) { - \strcompare{\thepage}{1}{}{ + \strcompare{\thepage}{0}{}{ \includegraphics[height=\imageHeight]{\imagesPath/DUMMY_FOOT.png} } }; - \ifnum\thepage=1 + \ifnum\thepage=0 \else % For loop to place all logos \foreach \i in {1,...,\value{logoCounter}} { diff --git a/HSRTReport/Pages/Titlepage.tex b/HSRTReport/Pages/Titlepage.tex index 146d009..c9a480c 100644 --- a/HSRTReport/Pages/Titlepage.tex +++ b/HSRTReport/Pages/Titlepage.tex @@ -13,7 +13,7 @@ \begin{titlepage} \begin{tikzpicture}[overlay, remember picture] \node[anchor=south east, inner sep=0pt, xshift=-0.1cm, yshift=0.1cm] (heart) at (current page.south east) { - \tiny\color{gray}\blenderfont Made with {\ensuremath\heartsuit} in \LaTeX + \href{https://github.com/frederikbeimgraben/HSRT-Report}{\tiny\color{gray}\blenderfont Made with {\ensuremath\heartsuit} in \LaTeX} }; \node[anchor=north west, inner sep=0pt, xshift=1.3cm, yshift=-1.5cm, opacity=0] (logo0) at (current page.north west) { \includegraphics[height=\imageHeight]{\imagesPath/DUMMY_FOOT.png} diff --git a/Main.tex b/Main.tex index 9494c14..f484000 100644 --- a/Main.tex +++ b/Main.tex @@ -37,6 +37,12 @@ % ============================================================================== \begin{document} +% ------------------------------------------------------------------------------ +% Set Page Counter to 0 +% ------------------------------------------------------------------------------ +% Set page counter to 0, so that the table of contents starts at page 1 +\setcounter{page}{0} + % ------------------------------------------------------------------------------ % Title Page % ------------------------------------------------------------------------------ @@ -44,12 +50,6 @@ % Configuration in Settings/General.tex \maketitle -% ------------------------------------------------------------------------------ -% Reset Page Counter -% ------------------------------------------------------------------------------ -% Reset page counter after title page so TOC starts at page 1 -\setcounter{page}{1} - % ------------------------------------------------------------------------------ % Set Page Style % ------------------------------------------------------------------------------