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/headers.tex
Joshua Moerman 47bc39813f Nummertjes
2018-10-23 13:13:48 +02:00

35 lines
No EOL
1.2 KiB
TeX

\startenvironment headers
% TOC related
\setupcombinedlist[content][list={part,chapter,section}]
% How numbers are shown
\setuphead[part][placehead=yes, align=middle, sectionstarter=Part , sectionstopper=:]
\setuphead[chapter][sectionsegments=chapter]
\setuphead[section][sectionsegments=chapter:section]
\setuphead[subsection][sectionsegments=section:subsection]
% een teller voor alles, prefix is chapter
\definecounter[lemmata][way=bychapter,prefixsegments=chapter]
\defineenumeration[definition][text=Definition]
\defineenumeration[remark][text=Remark]
\defineenumeration[example][text=Example]
\defineenumeration[lemma][text=Lemma]
\defineenumeration[proposition][text=Proposition]
\defineenumeration[theorem][text=Theorem]
\defineenumeration[corollary][text=Corollary]
\setupenumeration[definition,remark,example,lemma,proposition,theorem,corollary]
[alternative=serried, width=fit, right=., counter=lemmata]
% Don't reset sections in new part
\definestructureresetset[default][1,0,1][1] % reset part, not chapter, section
\setuphead[sectionresetset=default]
\define\QED{\hfill$\square$}
\definestartstop[proof][before={{\it Proof. }}, after={\QED}]
\definestartstop[proofnoqed][before={{\it Proof. }}, after={}]
\stopenvironment