X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=preamble.tex;h=392fc22870cc90baf6de820f5e76d72335e22482;hb=658c18356eecd7b43b27b5ee450db4d12a985834;hp=b285f894053c97c0c7c0902e688f08225a5b085c;hpb=3fe94feeee0efd1922263aca9d578031e2283f61;p=phd-thesis.git diff --git a/preamble.tex b/preamble.tex index b285f89..392fc22 100644 --- a/preamble.tex +++ b/preamble.tex @@ -16,7 +16,6 @@ \usepackage{xcolor} % colors \DeclareSIUnit\noop{\relax} \DeclareSIUnit\celcius{{}^{\circ}\kern-\scriptspace\mathsf{C}} -%\usepackage{atveryend} % \smaller command \everymath{\it\/} \DeclareMathSymbol{\shortminus}{\mathbin}{AMSa}{"39} %chktex 18 \newcommand{\dcolon}[0]{\mathbin{::}} @@ -46,7 +45,7 @@ \fancyhead{} \fancyfoot{} \setlength{\unitlength}{18mm} -\newcommand{\blob}{\rule[-.2\unitlength]{2\unitlength}{.5\unitlength}} +\newcommand{\blob}{{\color{gray}\rule[-.2\unitlength]{2\unitlength}{.5\unitlength}}} \fancyhead[RE]{\rightmark} \fancyhead[LO]{\leftmark} \newcommand{\frontmatterfancy}[0]{ @@ -120,14 +119,14 @@ \usepackage{appendix} % subappendices, appendices per chapter % Bibliography -\usepackage{bibentry} % Cite bib entry completely -\nobibliography* \usepackage{natbib} % Cite bib entry completely \setlength{\bibsep}{0.0pt} \def\bibfont{\small} %\bibliographystyle{alpha} \bibliographystyle{abbrvnat} \apptocmd{\thebibliography}{\raggedright}{}{} +\usepackage{bibentry} % Cite bib entry completely +\nobibliography* % Graphics \usepackage{graphicx} % Images @@ -143,6 +142,7 @@ \usepackage{multirow} % Multirow cells \usepackage{tabularx} % Automatically wrapping tables \usepackage{longtable} % Tables spanning pages +\usepackage{threeparttable} % Tables with footnotes % Code % Pseudocode @@ -187,12 +187,12 @@ {Clean},% {[Regular]Haskell}, {[Lhs2Tex]Haskell}} -\newcommand{\cinline}[1]{\lstinline[language=c,basicstyle=\tt,postbreak=]|#1|} -\newcommand{\arduinoinline}[1]{\lstinline[language={[Arduino]C++},basicstyle=\tt,postbreak=]|#1|} -\newcommand{\pythoninline}[1]{\lstinline[language=Python,basicstyle=\tt,postbreak=]|#1|} -\newcommand{\cleaninline}[1]{\lstinline[language=Clean,basicstyle=\tt,postbreak=]|#1|} -\newcommand{\haskellinline}[1]{\lstinline[language={[Regular]Haskell},basicstyle=\tt,postbreak=]|#1|} -\newcommand{\haskelllhstexinline}[1]{\lstinline[language={[Lhs2Tex]Haskell},basicstyle=\tt,postbreak=]|#1|} +\newcommand{\cinline}[1]{\lstinline[language=c,postbreak=]|#1|} +\newcommand{\arduinoinline}[1]{\lstinline[language={[Arduino]C++},postbreak=]|#1|} +\newcommand{\pythoninline}[1]{\lstinline[language=Python,postbreak=]|#1|} +\newcommand{\cleaninline}[1]{\lstinline[language=Clean,postbreak=]|#1|} +\newcommand{\haskellinline}[1]{\lstinline[language={[Regular]Haskell},postbreak=]|#1|} +\newcommand{\haskelllhstexinline}[1]{\lstinline[language={[Lhs2Tex]Haskell},postbreak=]|#1|} %For storing listings in footnotes \newsavebox{\LstBox} % Fix list of listings title @@ -237,7 +237,8 @@ {} % Hyperlinks and metadata -\usepackage[pagebackref]{hyperref} % hyperlinks +\usepackage[pdflang={en-GB},pagebackref]{hyperref} % hyperlinks +\usepackage{xr} % hyperlinks \renewcommand*{\backref}[1]{} \renewcommand*{\backrefalt}[4]{[{% \ifcase #1 not cited.\or p.~#2.\else pp. #2.\fi%chktex 1 @@ -309,8 +310,9 @@ % Custom commands \newcommand{\GHCmod}[1]{\texttt{#1}} -\newcommand{\requiresGHCmod}[2][]{\footnote{Requires \GHCmod{#1} to be enabled.#2}} -\newcommand{\etc}{{\fontfamily{cmr}\selectfont{\itshape\/\&c}}} +\newcommand{\requiresGHCmod}[2][]{\footnote{Requires \GHCmod{#2} to be enabled. #1}} +%\newcommand{\etc}{{\fontfamily{cmr}\selectfont{\itshape\/\&c}}} +\newcommand{\etc}{{\fontfamily{cmr}\selectfont{\itshape\/\&\kern-0.2em c}}} \newcommand{\rdmentry}[6]{#1: #2 (#3): #4. #5.\ \href{https://doi.org/#6}{#6}} \newcommand{\mlubbers}{Lubbers, M.\ (Radboud University)} \newcommand{\pkoopman}{Koopman, dr.\ P.\ (Radboud University)}