2\mainlanguage[$context-lang$]
5\setupalign[$context-dir$]
6\setupdirections[bidi=on,method=two]
15 subtitle={$subtitle$},
18 author={$for(author)$$author$$sep$; $endfor$},
21 keyword={$for(keywords)$$keywords$$sep$; $endfor$},
25 contrastcolor=$linkcontrastcolor$]
27% make chapter, section bookmarks visible when opening document
28\placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section]
29\setupinteractionscreen[option=bookmark]
32\setuppapersize[$for(papersize)$$papersize$$sep$,$endfor$]
35\setuplayout[$for(layout)$$layout$$sep$,$endfor$]
38\setuppagenumbering[$for(pagenumbering)$$pagenumbering$$sep$,$endfor$]
40\setuppagenumbering[location={footer,middle}]
43% attempt to generate PDF/A
46 profile={$if(pdfaiccprofile)$$for(pdfaiccprofile)$$pdfaiccprofile$$sep$,$endfor$$else$sRGB.icc$endif$},
47 intent=$if(pdfaintent)$$pdfaintent$$else$sRGB IEC61966-2.1$endif$]
49\setupbackend[export=yes]
50\setupstructure[state=start,method=auto]
53\definefontfeature[default][default][script=latn, protrusion=quality, expansion=quality, itlc=yes, textitalics=yes, onum=yes, pnum=yes]
54\definefontfeature[smallcaps][script=latn, protrusion=quality, expansion=quality, smcp=yes, onum=yes, pnum=yes]
55\setupalign[hz,hanging]
56\setupitaliccorrection[global, always]
58\setupbodyfontenvironment[default][em=italic] % use italic as em, not slanted
60\definefallbackfamily[mainface][rm][CMU Serif][preset=range:greek, force=yes]
61\definefontfamily[mainface][rm][$if(mainfont)$$mainfont$$else$Latin Modern Roman$endif$]
62\definefontfamily[mainface][mm][$if(mathfont)$$mathfont$$else$Latin Modern Math$endif$]
63\definefontfamily[mainface][ss][$if(sansfont)$$sansfont$$else$Latin Modern Sans$endif$]
64\definefontfamily[mainface][tt][$if(monofont)$$monofont$$else$Latin Modern Typewriter$endif$][features=none]
65\setupbodyfont[mainface$if(fontsize)$,$fontsize$$endif$]
67\setupwhitespace[$if(whitespace)$$whitespace$$else$medium$endif$]
69\setupindenting[$for(indenting)$$indenting$$sep$,$endfor$]
72\setupinterlinespace[$for(interlinespace)$$interlinespace$$sep$,$endfor$]
75\setuphead[chapter] [style=\tfd\setupinterlinespace,header=empty]
76\setuphead[section] [style=\tfc\setupinterlinespace]
77\setuphead[subsection] [style=\tfb\setupinterlinespace]
78\setuphead[subsubsection] [style=\bf]
79\setuphead[subsubsubsection] [style=\sc]
80\setuphead[subsubsubsubsection][style=\it]
83\setupheadertexts$for(headertext)$[$headertext$]$endfor$
86\setupfootertexts$for(footertext)$[$footertext$]$endfor$
90\setuphead[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][number=no]
95 [headstyle=bold, style=normal, location=hanging, width=broad, margin=1cm, alternative=hanging]
97\setupitemize[autointro] % prevent orphan list intro
98\setupitemize[indentnext=no]
100\setupfloat[figure][default={here,nonumber}]
101\setupfloat[table][default={here,nonumber}]
103\setupthinrules[width=15em] % width of horizontal rules
105\setupxtable[frame=off]
106\setupxtable[head][topframe=on,bottomframe=on]
108\setupxtable[foot][bottomframe=on]
111\definemeasure[cslhangindent][1.5em]
112\definenarrower[hangingreferences][left=\measure{cslhangindent}]
113\definestartstop [cslreferences] [
114 $if(csl-hanging-indent)$
116 \starthangingreferences[left]
117 \setupindenting[-\leftskip,yes,first]
120 after=\stophangingreferences,
126\attachment[file=$curdir$/$sourcefile$,method=hidden]
129$for(header-includes)$
135\startalignment[middle]
136 {\tfd\setupinterlinespace $title$}
139 {\tfa\setupinterlinespace $subtitle$}
143 {\tfa\setupinterlinespace $for(author)$$author$$sep$\crlf $endfor$}
147 {\tfa\setupinterlinespace $date$}
153\midaligned{\it Abstract}
154\startnarrower[2*middle]
169\completelistoffigures
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list