This commit is contained in:
2024-09-29 14:09:31 +02:00
parent f2d82affe7
commit d5956ad176
14 changed files with 25 additions and 25 deletions

View File

@@ -21,7 +21,7 @@
\usepackage[english]{babel} % Typographical rules
\usepackage{microtype} % Micro-typography improvements (slightly more compact, better to read)
% Use sans-serif font for sections
% Fonts: Use sans-serif for sections
\usepackage{titlesec}
\titleformat{\part}[display]{\normalfont\Huge\sffamily\bfseries\centering}{\partname\ \thepart}{20pt}{}
\titleformat{\chapter}[display]{\normalfont\Huge\sffamily\bfseries}{\chaptertitlename\ \thechapter}{10pt}{}
@@ -30,9 +30,7 @@
\titleformat{\subsubsection}{\normalfont\normalsize\sffamily\bfseries}{\thesubsubsection}{1em}{}
\titleformat{\paragraph}[runin]{\normalfont\normalsize\sffamily\bfseries}{\theparagraph}{1em}{}
\setcounter{secnumdepth}{3} % Number subsubsections
% Parts and chapters
% Parts, chapters and sections
\NewCommandCopy{\oldchapter}{\chapter}
\RenewDocumentCommand{\chapter}{s o m}{% #1 = star (no number), #2 = short title, #3 = title
\IfBooleanTF{#1}{%
@@ -57,6 +55,8 @@
\includefrom{#1}{#2}% Include with relative paths \input in the chapter
}
\setcounter{secnumdepth}{3} % Number subsubsections
% Headers
\usepackage{emptypage} % Remove headers and footers on empty pages
\usepackage{etoolbox} % Patching commands