From 1117e82390afccd1fbc223aba3c8dc4793d2ee45 Mon Sep 17 00:00:00 2001 From: "Jip J. Dekker" Date: Wed, 6 Jan 2021 16:47:53 +1100 Subject: [PATCH] Format chapter titles --- assets/layout.tex | 17 +++++++++++++++++ chapters/0_abstract.tex | 2 +- dekker_thesis.tex | 13 +++++++------ 3 files changed, 25 insertions(+), 7 deletions(-) create mode 100644 assets/layout.tex diff --git a/assets/layout.tex b/assets/layout.tex new file mode 100644 index 0000000..019ac61 --- /dev/null +++ b/assets/layout.tex @@ -0,0 +1,17 @@ +\KOMAoption{chapterprefix}{true} +% centering the chapter head +\let\raggedchapter\centering + +\setkomafont{chapterprefix}{\normalsize\mdseries} + +% This block has the two variables \chapapp and \thechapter. But where +% can I find a variable for the title of the chapter (eg. \chaptertile) to apply some styling? +\renewcommand*{\chapterformat}{% + \MakeUppercase{\chapapp}~\thechapter\\[-0.6\baselineskip] + \noindent\makebox[\textwidth]{% + \rule{0.9\textwidth}{.5pt}% + }% +} +\addtokomafont{chapter}{\MakeUppercase} + +\RedeclareSectionCommand[beforeskip=0pt,afterskip=8\baselineskip]{chapter} diff --git a/chapters/0_abstract.tex b/chapters/0_abstract.tex index be46651..9581df8 100644 --- a/chapters/0_abstract.tex +++ b/chapters/0_abstract.tex @@ -1,3 +1,3 @@ %************************************************ -\chapter*{Abstract}\label{ch:abstract} +\chapter{Abstract}\label{ch:abstract} %************************************************ diff --git a/dekker_thesis.tex b/dekker_thesis.tex index 23878af..8151a7e 100644 --- a/dekker_thesis.tex +++ b/dekker_thesis.tex @@ -1,23 +1,24 @@ -\nonstopmode +\nonstopmode{} \documentclass{scrbook} \title{A Modern Architecture for High-Level Constraint Modelling Languages} \author{Jip J. Dekker} -\input{assets/packages.tex} +\input{assets/packages} +\input{assets/layout} % Bibliography preamble \addbibresource{assets/bibliography/references.bib} \addbibresource[label=ownpubs]{assets/bibliography/dekker_publications.bib} % Glossary / Acronym preamble -\input{assets/glossary.tex} -\input{assets/acronyms.tex} +\input{assets/glossary} +\input{assets/acronyms} \begin{document} -\frontmatter -\maketitle +\frontmatter{} +\maketitle{} \include{chapters/0_abstract} \chapter{Publications}