\startenvironment environment % Bug in context? Zonder de ../ kunnen componenten de files niet vinden \usepath[{environment,../environment}] \setupexternalfigures[directory={images,../images}] \definemode[draft][yes] \environment bib \environment font \environment notation \environment paper \environment pdf \environment tikz \mainlanguage[en] \setupindenting[yes, medium] \setupwhitespace[medium] \defineenumeration[definition][text=Definition] \defineenumeration[example][text=Example] \defineenumeration[lemma][text=Lemma] \defineenumeration[proposition][text=Proposition] \defineenumeration[theorem][text=Theorem] \defineenumeration[corollary][text=Corollary] \setupenumeration[definition,example,lemma,proposition,theorem,corollary][alternative=serried,width=fit,right=.] \define\QED{\hfill$\square$} \definestartstop[proof][before={{\it Proof. }}, after={\QED}] \definestartstop[proofnoqed][before={{\it Proof. }}, after={}] \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}{\startsubject[title={References}]\placelistofpublications\stopsubject}} \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 \def\href#1{\useURL[#1][{#1}]{\tt\goto{\url[#1]}[url(#1)]}} % Debugging %\enabletrackers[references.references, visualizers.justification] %\showmakeup %\showlayout %\showboxes %\showframe %\setupparagraphnumbering[state=start,style=italic,distance=0pt] %\showbodyfont \stopenvironment