2 \setuppapersize[A4][A4]
3 % Setup doublesided layout and hide the page number (we will put in the
5 \setuppagenumbering[alternative=doublesided,location=]
6 % Enable interaction (clickable links), but don't use special link colors or a
8 \setupinteraction[state=start,color=,contrastcolor=,style=normal]
9 % Enable interaction in the table of contents as well
10 \setupcombinedlist[content][interaction=all]
14 \setupbibtex[database=Report]
15 \setuppublications[numbering=yes]
20 \input Utils/Shortcuts
24 \usetypescript [Custom]
26 % Use our custom typeface in the body text, header, footer and
27 % footnotes. There is probably a more elegant way to change the header
28 % etc. fonts, but this works...
29 \switchtotypeface [Custom] [10pt]
30 \setupheader[style={\switchtotypeface[Custom][12pt]}]
31 \setupfooter[style={\switchtotypeface[Custom][12pt]}]
32 \setupfootnotes[style={\switchtotypeface[Custom][10pt]\italic},way=bypage]
34 % Hide header texts and use the header space for text.
35 \setuphead[chapter][header=high]
36 % But not for the abstract, acknowledgements and toc
37 \setuphead[title][header=empty]
39 % Insert completely empty pages to put new chapter headers on the right
40 % page (i.e., not headers and footers).
41 \definepagebreak[emptyright][yes,header,footer,right]
42 \setuphead[chapter][page=emptyright]
44 % Reducing margins (or actually, the spacing in which the margins end up) for
45 % 2-up printing and increase font size slightly.
46 %\setuplayout[backspace=2cm,width=middle,topspace=1cm,bottomspace=1cm,height=middle]
47 %\switchtotypeface [Custom] [10pt]
53 \input Chapters/Abstract
54 \input Chapters/Acknowledgements
57 % Force a page break so the headers will not apply to the last page of
58 % the contents. This page break would otherwise be inserted by the
61 % Set up a simple header and footer for the introduction
62 \setupheadertexts[{\getmarking[chapter]}]
63 \setupfootertexts[pagenumber]
65 \input Chapters/Introduction
66 % The stopfrontmatter inserts a non-empty right page, it seems
70 % Set up a fancy header and footer for the normal chapters. We need to
71 % repeat the footer since we switched matters.
72 \def\Header{\getmarking[sectionnumber]~—~\getmarking[chapter]~—~\getmarking[section]}
73 \setupheadertexts[][\Header]
74 \setupfootertexts[pagenumber]
76 \input Chapters/Context
77 \input Chapters/HardwareDescription
78 \input Chapters/Prototype
79 \input Chapters/Normalization
80 \input Chapters/Future
81 % Set a different header, since conclusions doesn't have any sections.
83 \setupheadertexts[][{\getmarking[chapternumber]~—~\getmarking[chapter]}]
84 \input Chapters/Conclusions
89 % The stopbackmatter inserts a non-empty right page, it seems
94 % vim: set sw=2 sts=2 expandtab: