X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=preamble.tex;h=78fe62674c43de537d42ff3403ed896775fb67e4;hb=c07f3ee029e0cf99b058de8b9f6ccfdab49ee983;hp=80bc930a3eda9eed7f5c97548a993168481dab92;hpb=ede17ca103a5a3f05013b4b272bf5f38585041a4;p=phd-thesis.git diff --git a/preamble.tex b/preamble.tex index 80bc930..78fe626 100644 --- a/preamble.tex +++ b/preamble.tex @@ -16,6 +16,7 @@ \usepackage{siunitx} % typeset units \usepackage{xcolor} % colors \usepackage{fnpct} % footnotekerning +\usepackage[all]{nowidow} % Kill widows and orphans \DeclareSIUnit\noop{\relax} \DeclareSIUnit\celcius{{}^{\circ}\kern-\scriptspace\mathsf{C}} \everymath{\it\/} @@ -119,10 +120,9 @@ \makeatother \usepackage{framed} -%\newenvironment{chapterabstract}{\begin{quotation}\em\noindent}{\end{quotation}} %chktex 6 \definecolor{lstbg}{gray}{.95} \definecolor{shadecolor}{named}{lstbg} -\newenvironment{chapterabstract}{\begin{shaded}\em}{\end{shaded}} %chktex 6 +\newenvironment{chapterabstract}{\begin{shaded}\begin{quotation}}{\end{quotation}\end{shaded}} %chktex 6 % Increase the depth for the table of contents \setcounter{secnumdepth}{3} @@ -135,15 +135,16 @@ \usepackage{appendix} % subappendices, appendices per chapter % Bibliography -\usepackage{natbib} % Cite bib entry completely +\usepackage[square]{natbib} % Cite bib entry completely \setlength{\bibsep}{0.0pt} -\def\bibfont{\small} +%\def\bibfont{\small} %\bibliographystyle{alpha} \bibliographystyle{abbrvnat} -\apptocmd{\thebibliography}{\raggedright}{}{} +%\apptocmd{\thebibliography}{\raggedright}{}{} \usepackage{bibentry} % Cite bib entry completely \nobibliography* \newcommand{\citeentry}[1]{\begin{NoHyper}\bibentry{#1}\end{NoHyper}. \citep{#1}} +\newcommand{\refurl}[2]{\url{#1}, accessed on: #2} \makeatletter \newcommand{\citepage}[1]{p.~#1} @@ -265,12 +266,22 @@ % Graphics \usepackage{graphicx} % Images \graphicspath{{img/},{intro/img},{top/img},{tvt/img}} +\usepackage{dpfloat} \usepackage{caption} % subfigures/captionof \usepackage{subcaption} \usepackage{rotating} +\usepackage{adjustbox} % Make table fit page \newcommand{\orcid}[1]{\href{https://orcid.org/#1}{\hspace{1mm}\includegraphics[width=1em]{orcid}\hspace{2mm} https://orcid.org/#1}} \usepackage{tikz} +% Index +%\usepackage{makeidx} +%\makeindex% Enable the index + +% Custom enumerations +\usepackage[inline,shortlabels]{enumitem} +\setlist{noitemsep} +\setlist[description]{leftmargin=\parindent} % Hyperlinks and metadata \usepackage[hyphens]{url} @@ -329,15 +340,6 @@ \def\MakeUppercase#1{}% } -% Index -%\usepackage{makeidx} -%\makeindex% Enable the index - -% Custom enumerations -\usepackage[inline,shortlabels]{enumitem} -\setlist{noitemsep} -\setlist[description]{leftmargin=\parindent} - % Initialize the glossaries \makeglossaries% \input{glossaries} @@ -360,18 +362,19 @@ \newcommand{\pkoopman}{Koopman, dr.\ P.\ (Radboud University)} \newcommand{\ptrinder}{Trinder, prof.~dr.\ P.\ (University of Glasgow)} \newcommand{\rdmentry}[5]{#1 (#2): #3. #4.\ \doifmt{#5}} -\newcommand{\rewriterate}[2]{\langle{}#1, #2\rangle{}} +\newcommand{\rewriterate}[2]{\langle{}\mathit{#1}, \mathit{#2}\rangle{}} \newcommand{\requiresGHCmod}[2][]{\footnote{Requires \GHCmod{#2} to be enabled. #1}} \newcommand{\rplasmeijer}{Plasmeijer, prof.\ dr.\ ir.\ R.\ (Radboud University)} \newcommand{\erasmusplus}{ERASMUS\raisebox{.25ex}{+}} \newcommand{\imtask}{\gls{ITASK}\slash\gls{MTASK}} -\newcommand{\Imtask}{\Gls{ITASK}\slash\gls{MTASK}} \newcommand{\citask}{\gls{CLEAN}\slash\gls{ITASK}} \newcommand{\Citask}{\Gls{CLEAN}\slash\gls{ITASK}} +\newcommand{\cmtask}{\gls{CLEAN}\slash\gls{MTASK}} +\newcommand{\Cmtask}{\Gls{CLEAN}\slash\gls{MTASK}} \newcommand{\cimtask}{\gls{CLEAN}\slash\gls{ITASK}\slash\gls{MTASK}} \newcommand{\Cimtask}{\Gls{CLEAN}\slash\gls{ITASK}\slash\gls{MTASK}} -\newcommand{\ccpp}{\gls{C}\slash\gls{CPP}} -\newcommand{\Ccpp}{\Gls{C}\slash\gls{CPP}} +\newcommand{\ccpp}{\texorpdfstring{\gls{C}\slash\gls{CPP}}{C\slash{}C\texttt{++}}} +\newcommand{\Ccpp}{\texorpdfstring{\Gls{C}\slash\gls{CPP}}{C\slash{}C\texttt{++}}} \newcommand{\stacksize}[1]{\parallel#1\parallel} \makeatletter