X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=preamble.tex;h=ea67fd624b1b9ea3e58c5e9679da9e683b7ce49b;hb=97c58bfa009fc0e36515a2ebdb58100543025f64;hp=99a0c9436d0796528be156fd8e0ff139b10b931e;hpb=4af0c6b6072b8a811dabadd2b66df5730dd3be41;p=phd-thesis.git diff --git a/preamble.tex b/preamble.tex index 99a0c94..ea67fd6 100644 --- a/preamble.tex +++ b/preamble.tex @@ -107,7 +107,7 @@ \def\part@nostar@nopt#1{\NR@gettitle{#1}\titlesec@part{#1}} \def\part@nostar@opt[#1]#2{\NR@gettitle{#1}\titlesec@part[#1]{#2}} \makeatother -\newenvironment{chapterabstract}{\begin{quotation}\em}{\end{quotation}} %chktex 6 +\newenvironment{chapterabstract}{\begin{quotation}\em\noindent}{\end{quotation}} %chktex 6 % Increase the depth for the table of contents \setcounter{secnumdepth}{3} @@ -191,6 +191,7 @@ tabsize=4, upquote=true, numberstyle=\tiny, + texcl=true; } \usepackage{lstlangclean} \usepackage{lstlanghaskell} @@ -206,7 +207,9 @@ \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{\cleaninputlisting}[2][]{\renewcommand*{\lstlistingname}{Listing (\gls{CLEAN})}\lstinputlisting[language=Clean,#1]{#2}} \newcommand{\haskellinline}[1]{\lstinline[language={[Regular]Haskell},postbreak=]|#1|} +\newcommand{\haskellinputlisting}[2][]{\renewcommand*{\lstlistingname}{Listing (\gls{HASKELL})}\lstinputlisting[language={[Regular]Haskell},#1]{#2}} \newcommand{\haskelllhstexinline}[1]{\lstinline[language={[Lhs2Tex]Haskell},postbreak=]|#1|} %For storing listings in footnotes \newsavebox{\LstBox} @@ -275,7 +278,7 @@ \newcommand{\Fullref}[1]{\Cref{#1}: \nameref{#1}} % Glossaries and acronyms -\usepackage[nolangwarn,abbreviations,nonumberlist]{glossaries-extra} +\usepackage[nolangwarn,abbreviations,nonumberlist,prefix]{glossaries-extra} \setabbreviationstyle[acronym]{long-short} \Addlcwords{of} % Titlecase glossary commands