From 0f000abb1079434358cf5e1d84e81512950d06ec Mon Sep 17 00:00:00 2001 From: jorenchik Date: Tue, 17 Oct 2023 07:48:44 +0300 Subject: [PATCH] Fix chapter numbering --- Mafia-the-Game.tex | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Mafia-the-Game.tex b/Mafia-the-Game.tex index e126e5b..54fc463 100644 --- a/Mafia-the-Game.tex +++ b/Mafia-the-Game.tex @@ -42,6 +42,17 @@ \titlespacing*{\paragraph}{0pt}{2em}{2em} \titlespacing*{\subparagraph}{0pt}{2em}{2em} + + +% Configure the chapter / paragraph numbering (it only works this way when I compile) +\renewcommand{\thechapter}{\arabic{chapter}.} +\renewcommand{\thesection}{\arabic{section}.} +\renewcommand{\thesubsection}{\thesection\arabic{subsection}.} +\renewcommand{\thesubsubsection}{\thesubsection\arabic{subsubsection}.} +\renewcommand{\theparagraph}{\thesubsubsection\arabic{paragraph}.} +\renewcommand{\thesubparagraph}{\theparagraph\arabic{subparagraph}.} + + \titleformat{\section}{\large\bfseries\centering\vfill\eject\MakeUppercase}{\thesection}{1em}{} % section formatting \titleformat{\subsection}{\large\bfseries\centering}{\thesubsection}{1em}{} % subsection formatting \titleformat{\subsubsection}{\large\bfseries\centering}{\thesubsubsection}{1em}{} % subsubsection formatting