Update chapter title style

This commit is contained in:
2026-07-05 23:46:00 +02:00
parent 3ba5be8c86
commit 67929c39f4
+19 -4
View File
@@ -35,6 +35,7 @@
\usepackage{tikz} \usepackage{tikz}
\usetikzlibrary{shadings, backgrounds} \usetikzlibrary{shadings, backgrounds}
\usepackage[minted]{tcolorbox} \usepackage[minted]{tcolorbox}
\setminted{style=default}
\tcbuselibrary{skins} % breakable \tcbuselibrary{skins} % breakable
% Math % Math
@@ -60,8 +61,8 @@
% Pagestyle % Pagestyle
\KOMAoptions{% \KOMAoptions{%
chapterprefix, % chapterprefix,
appendixprefix, % appendixprefix,
headsepline, headsepline,
% footsepline, % footsepline,
% cleardoublepage=current, % linenumbers and headers on interleaf pages % cleardoublepage=current, % linenumbers and headers on interleaf pages
@@ -69,6 +70,17 @@
footnotes=multiple, % TODO: Doesn't work, maybe because of hyperref? footnotes=multiple, % TODO: Doesn't work, maybe because of hyperref?
} }
% Chapter style
\renewcommand*{\chapterformat}{%
{\huge\mdseries\chapapp~\thechapter\autodot\enskip}%
}
\setkomafont{chapter}{\huge\bfseries}
\renewcommand{\chapterlinesformat}[3]{%
#2{\MakeUppercase{#3}}%
\par\nobreak\vspace{.3\baselineskip}%
\rule{\textwidth}{.5pt}%
}
% Various stuff % Various stuff
\usepackage[page]{appendix} % [toc] \usepackage[page]{appendix} % [toc]
\usepackage{lipsum} \usepackage{lipsum}
@@ -79,13 +91,16 @@
\usepackage{siunitx} \usepackage{siunitx}
\sisetup{detect-all} \sisetup{detect-all}
\usepackage[l2tabu,orthodox]{nag} \usepackage[l2tabu,orthodox]{nag}
% \usepackage{etoolbox} % For \ifstrequal \usepackage{etoolbox} % For \ifstrequal
\usepackage[autostyle]{csquotes} % Correct quotation marks with \textquote{} \usepackage[autostyle]{csquotes} % Correct quotation marks with \textquote{}
\usepackage{silence} % Silence warnings \usepackage{silence} % Silence warnings
% \usepackage[intoc]{nomencl} % Nomenclature % \usepackage[intoc]{nomencl} % Nomenclature
\usepackage[luatex,colorlinks]{hyperref} % Load late, hidelinks \usepackage[luatex,colorlinks]{hyperref} % Load late, hidelinks
\usepackage{bookmark} % Needed for hyperref with scrbook \usepackage{bookmark} % Needed for hyperref with scrbook
\usepackage[acronym,automake=immediate,nonumberlist,nogroupskip,toc]{glossaries} % Load after hyperref, toc \usepackage[acronym,automake=immediate,nonumberlist,nogroupskip,toc]{glossaries} % Load after hyperref, toc
\setacronymstyle{long-short}
\setglossarystyle{super}
\renewcommand{\glsnamefont}[1]{\sansbf{#1}}
\usepackage{xurl} % xurl does url-line-breaks in contrast to url \usepackage{xurl} % xurl does url-line-breaks in contrast to url
% Multi-file % Multi-file
@@ -182,10 +197,10 @@
\tableofcontents% \tableofcontents%
\cleardoublepage% \cleardoublepage%
\phantomsection%
\todototoc\listoftodos% \todototoc\listoftodos%
\cleardoublepage% \cleardoublepage%
\setacronymstyle{long-short}
\printacronyms% \printacronyms%
\cleardoublepage% \cleardoublepage%
\printglossary% \printglossary%