X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=preamble.tex;h=9efb9df73b49d2ab715027d53234391390848cf9;hb=61922d4f61677acca7e9b71295c055bc7e9618a9;hp=6c3ec94b05f32fb15e9abe2d5064aa981612e305;hpb=c15776f71f5efe186708e2604ff8f32115c8ac3d;p=phd-thesis.git diff --git a/preamble.tex b/preamble.tex index 6c3ec94..9efb9df 100644 --- a/preamble.tex +++ b/preamble.tex @@ -9,11 +9,14 @@ \usepackage{titlecaps} % titlecase commands \usepackage{amsmath} % extra math \usepackage{amssymb} % extra math symbols +\usepackage{relsize} % \smaller command +\usepackage{atveryend} % \smaller command \everymath{\it\/} \DeclareMathSymbol{\shortminus}{\mathbin}{AMSa}{"39} %chktex 18 % Internationalisation \usepackage[dutch,russian,british]{babel} +\input{hyphenation} %\babelfont[russian]{rm}{Liberation Serif} % Papersize and layout @@ -28,22 +31,67 @@ paperwidth=17cm, paperheight=24cm, } -\usepackage[ - height={1.5cm}, - width={12mm}, - distance={1.55cm}, - topthumbmargin={auto}, - bottomthumbmargin={auto}, - eventxtindent={.5cm}, - oddtxtexdent={.3cm}]{thumbs} % thumb marks +\usepackage{float} \usepackage{fancyhdr} % Custom headers and footers -%\pagestyle{fancy} -\pagestyle{headings} +%\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}} @@ -196,8 +244,8 @@ } % Index -\usepackage{makeidx} -\makeindex% Enable the index +%\usepackage{makeidx} +%\makeindex% Enable the index % Custom enumerations \usepackage[inline,shortlabels]{enumitem} @@ -223,3 +271,17 @@ \newcommand{\mlubbers}{Lubbers, M.\ (Radboud University)} \newcommand{\pkoopman}{Koopman, dr.\ P.\ (Radboud University)} \newcommand{\rplasmeijer}{Plasmeijer, prof.\ dr.\ ir.\ R.\ (Radboud University)} + +\newcommand{\mychapter}[2]{ + \chapter{#2}% + \label{#1}% +} +\newcommand{\myappendix}[2]{ + \chapter{#2}% + \label{#1}% +} +\newcommand{\mybackmatter}[2]{ + \chapter{#2}% + \label{#1}% +} +\newcommand{\mypart}[3]{\part[#2: #3]{#2\\[2ex]\smaller{}#3}\label{#1}}