-\usepackage{geometry}
-\geometry{
- inner=25mm,
- outer=20mm,
- marginparsep=3mm,
- marginparwidth=13mm,
- top=25mm,
- bottom=20mm,
- paperwidth=17cm,
- paperheight=24cm,
-}
-\usepackage{float}
-\usepackage{fancyhdr} % Custom headers and footers
-%\pagestyle{headings}
-\pagestyle{fancy}
-\fancyhead{}
-\fancyfoot{}
-\setlength{\unitlength}{18mm}
-\newcommand{\blob}{\rule[-.2\unitlength]{2\unitlength}{.5\unitlength}}
-\fancyhead[RE]{\rightmark}
-\fancyhead[LO]{\leftmark}
-\newcommand{\frontmatterfancy}[0]{
- \fancyhead[RO]{\thepage}
- \fancyhead[LE]{\thepage}
-}
-\newcommand{\mainmatterfancy}[0]{
- \fancyhead[RO]{
- \thepage%
- \begin{picture}(0,0)
- \put(1,-\value{chapter}){\blob}
- \end{picture}
- }
- \fancyhead[LE]{
- \begin{picture}(0,0)
- \put(-3,-\value{chapter}){\blob}
- \end{picture}%
- \thepage%
- }
-}
-\newcommand{\backmatterfancy}[0]{
- \fancyhead[RO]{
- \thepage%
- \begin{picture}(0,0)
- \put(1,-1){\blob}
- \end{picture}
- }
- \fancyhead[LE]{
- \begin{picture}(0,0)
- \put(-3,-1){\blob}
- \end{picture}%
- \thepage%
- }
-}
-\renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter.\ #1}{}}
-\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
-%\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\chaptername}\ \thechapter.\ #1}{}}
-%\renewcommand{\headrulewidth}{0pt}
-\renewcommand{\footrulewidth}{0pt}
-\usepackage{etoolbox} % To patch the chapter command
-% Have better page numbering in chapters
-\patchcmd{\chapter}{plain}{headings}{}{}
-\usepackage{epigraph} % Epigraph
-\renewcommand\partname{Movement} % Rename parts to movements (rhapsody uhu)
-\addto\captionsbritish{\renewcommand{\partname}{Movement}}
-\usepackage{titlesec}
-\makeatletter
-\titleformat{\part}[block]
- {\Huge}
- {\partname~\thepart:}
- {20pt}
- {}
-
-\newenvironment{chapterabstract}
- {\begin{quote}}
- {\end{quote}}
-
-% Increase the depth for the table of contents
-\setcounter{secnumdepth}{3}
-\renewcommand{\contentsname}{Table of Contents} % change the name of the TOC
-\AtBeginDocument{\addtocontents{toc}{\protect\thispagestyle{empty}}} % to remove page numbering from the TOC
-
-% (file) structure
-\usepackage[subpreambles=true]{standalone} % standalone figures
-\usepackage{morewrites} % fix no more room for a new \write
-\usepackage{appendix} % subappendices, appendices per chapter