Format chapter titles

This commit is contained in:
Jip J. Dekker 2021-01-06 16:47:53 +11:00
parent 3735ea451c
commit 1117e82390
3 changed files with 25 additions and 7 deletions

17
assets/layout.tex Normal file
View File

@ -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}

View File

@ -1,3 +1,3 @@
%************************************************
\chapter*{Abstract}\label{ch:abstract}
\chapter{Abstract}\label{ch:abstract}
%************************************************

View File

@ -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}