Archived
1
Fork 0
This repository has been archived on 2025-04-09. You can view files and clone it, but cannot push or open issues or pull requests.
phd-thesis/environment.tex
2018-08-14 16:18:14 +02:00

75 lines
2.1 KiB
TeX

\startenvironment environment
% Bug in context? Zonder de ../ kunnen componenten de files niet vinden
\usepath[{environment,../environment}]
\definemode[draft][yes]
\environment bib
\environment font
\environment notation
\environment paper
\environment pdf
\mainlanguage[en]
\setupindenting[yes, medium]
\setupwhitespace[medium]
\defineenumeration[definition][text=Definition]
\defineenumeration[example][text=Example]
\defineenumeration[lemma][text=Lemma]
\defineenumeration[theorem][text=Theorem]
\defineenumeration[corollary][text=Corollary]
\setupenumeration[definition,example,lemma,theorem,corollary][alternative=serried,width=fit,right=.]
\definestartstop[proof][before={{\it Proof. }}, after={\hfill$\square$}]
\definefloat[algorithm][algorithms]
\setupcombinedlist[content][list={chapter,section}]
\definestartstop[abstract]
[before={\midaligned{\bf Abstract}\startnarrower[2*middle]},
after={\stopnarrower\blank[big]}]
\definedescription[description]
[headstyle=bold, alternative=serried, width=fit]
\definedescription[step]
[headstyle=bold, alternative=serried, width=fit, text={Step }]
% The black dot is missing from Euler?
\setupitemize[2,joinedup,nowhite,autointro]
% For more whitespace between items
\defineitemgroup[bigitemize]
\setupitemgroup[bigitemize][2,autointro]
% Standaard \colon had niet veel ruimte
\define\colon{{\,{:}\,\,}}
\define[1]\defn{\emph{#1}}
\define[1]\todo{\color[red]{\ss \bf #1}}
\define[1]\label{\todo{\tt \\label #1}}
\define\referencesifcomponent{\doifnotmode{everything}{\section{References}\placelistofpublications}}
\usemodule[tikz]
\usetikzlibrary[automata, arrows, positioning, matrix, fit, decorations.pathreplacing]
\usemodule[algorithmic]
\setupalgorithmic[align=middle,numbercolor=darkgray] % center line numbers
\setupalgorithmic[before={\startframedtext[width=0.85\textwidth,offset=none,frame=off]},after={\stopframedtext}] % To enable linenumbers in a float
% Debugging
%\enabletrackers[references.references, visualizers.justification]
%\showmakeup
%\showlayout
%\showboxes
%\showframe
%\setupparagraphnumbering[state=start,style=italic,distance=0pt]
%\showbodyfont
\stopenvironment