% !TEX root = ../HSRTReport.cls
% ==============================================================================
% Sections Configuration Module
% ==============================================================================
% Description: Section formatting and styling for chapters, sections, subsections
% Author: Frederik Beimgraben
% License: Creative Commons CC BY 4.0
% ==============================================================================

% ==============================================================================
% Section Font Configuration
% ==============================================================================
% Set font for all sectioning commands (disposition)
\setkomafont{disposition}{\blenderfont\bfseries}

% Configure individual section level fonts
\setkomafont{chapter}{\Large\blenderfont\bfseries}
\setkomafont{section}{\Large\blenderfont\bfseries}
\setkomafont{subsection}{\large\blenderfont\bfseries}
\setkomafont{subsubsection}{\large\blenderfont\bfseries}

% ==============================================================================
% Section Spacing Configuration
% ==============================================================================
% Redefine chapter spacing
\RedeclareSectionCommand[
	beforeskip=1ex,      % Space before chapter
	afterskip=0.5ex,     % Space after chapter
	style=section        % Use section style
]{chapter}

% Redefine spacing for sections, subsections, and subsubsections
\RedeclareSectionCommands[
	beforeskip=0.6ex,    % Space before section
	afterskip=0.3ex,     % Space after section
]{section,subsection,subsubsection}

% ==============================================================================
% Decorative Elements
% ==============================================================================
% Decorative rule for visual separation
\newcommand{\decoRule}{\rule{.8\textwidth}{.4pt}}

% ==============================================================================
% Counter Configuration
% ==============================================================================
% 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
% ==============================================================================
