X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Freport.git;a=blobdiff_plain;f=Report.tex;h=2919383c6b27db5c43770b3f2e62f9c0bcd65704;hp=2b63fdbba8791847fba1d5fbf5401c76364a7526;hb=20f8ee52acfd3d575597314460dd4f6221a1fa6b;hpb=2a9d418859333dd943a0397e36a527a38797d99d diff --git a/Report.tex b/Report.tex index 2b63fdb..2919383 100644 --- a/Report.tex +++ b/Report.tex @@ -1,31 +1,84 @@ \mainlanguage [en] \setuppapersize[A4][A4] -% Enable interaction (clickable links), but don't use special link colors. -\setupinteraction[state=start,color=,contrastcolor=] +% Setup doublesided layout and hide the page number (we will put in the +% footer) +\setuppagenumbering[alternative=doublesided,location=] +% Enable interaction (clickable links), but don't use special link colors or a +% bold style. +\setupinteraction[state=start,color=,contrastcolor=,style=normal] % Enable interaction in the table of contents as well \setupcombinedlist[content][interaction=all] +% Use bibtex +\usemodule[bib] +\setupbibtex[database=Report] +\setuppublications[numbering=yes] + \input Utils/Fonts \input Utils/Formats \input Utils/Lambda \input Utils/Shortcuts \input Utils/Metapost +\input Utils/Fixme \usetypescript [Custom] -% Use our custom typeface +% Use our custom typeface in the body text, header, footer and +% footnotes. There is probably a more elegant way to change the header +% etc. fonts, but this works... \switchtotypeface [Custom] [10pt] +\setupheader[style={\switchtotypeface[Custom][12pt]}] +\setupfooter[style={\switchtotypeface[Custom][12pt]}] +\setupfootnotes[style={\switchtotypeface[Custom][10pt]\italic}] + +% Hide header texts and use the header space for text. +\setuphead[chapter][header=high] + +% Insert completely empty pages to put new chapter headers on the right +% page (i.e., not headers and footers). +\definepagebreak[emptyright][yes,header,footer,right] +\setuphead[chapter][page=emptyright] + +% Reducing margins (or actually, the spacing in which the margins end up) for +% 2-up printing and increase font size slightly. +%\setuplayout[backspace=2cm,width=middle,topspace=1cm,bottomspace=1cm,height=middle] +%\switchtotypeface [Custom] [10pt] \starttext -% TODO: Proper title page -\title {Haskell as a higher order structural hardware description language.} -Matthijs Kooijman +\startfrontmatter +\input Titlepage \completecontent + +% Force a page break so the headers will not apply to the last page of +% the contents. This page break would otherwise be inserted by the +% upcoming \chapter. +\page[emptyright] +% Set up a simple header and footer for the introduction +\setupheadertexts[{\getmarking[chapter]}] +\setupfootertexts[pagenumber] + \input Chapters/Introduction +% The stopfrontmatter inserts a non-empty right page, it seems +\page[emptyright] +\stopfrontmatter +\startbodymatter +% Set up a fancy header and footer for the normal chapters. We need to +% repeat the footer since we switched matters. +\def\Header{\getmarking[sectionnumber]~—~\getmarking[chapter]~—~\getmarking[section]} +\setupheadertexts[][\Header] +\setupfootertexts[pagenumber] + \input Chapters/Context \input Chapters/HardwareDescription \input Chapters/Prototype \input Chapters/Normalization \input Chapters/Future +\input Chapters/Conclusions +\stopbodymatter +\startbackmatter +\completepublications +\stopbackmatter \stoptext + +% vim: set sw=2 sts=2 expandtab: