From 385042b5faea0b2b0c3774038c735810791d521b Mon Sep 17 00:00:00 2001 From: Frederik Beimgraben Date: Thu, 30 Oct 2025 01:38:38 +0100 Subject: [PATCH] Konfiguriere Abbildungs- und Tabellennummerierung nach Kapiteln (X.Y Format) --- HSRTReport/Config/Sections.tex | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/HSRTReport/Config/Sections.tex b/HSRTReport/Config/Sections.tex index f3b11a3..75358ed 100644 --- a/HSRTReport/Config/Sections.tex +++ b/HSRTReport/Config/Sections.tex @@ -44,11 +44,18 @@ % ============================================================================== % Counter Configuration % ============================================================================== -% Remove chapter dependency from figure, table, and equation counters -\counterwithout{figure}{chapter} -\counterwithout{table}{chapter} +% Configure figure and table numbering to include chapter number +% Format: Chapter.Number (e.g., 2.3 for third figure in chapter 2) +\counterwithin{figure}{chapter} +\counterwithin{table}{chapter} + +% Keep equation counter independent of chapters \counterwithout{equation}{chapter} +% Redefine the format to show as "Chapter.Number" instead of "Chapter:Number" +\renewcommand{\thefigure}{\thechapter.\arabic{figure}} +\renewcommand{\thetable}{\thechapter.\arabic{table}} + % ============================================================================== % End of Sections Configuration Module % ==============================================================================