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$]
41% attempt to generate PDF/A
44 profile={$if(pdfaiccprofile)$$for(pdfaiccprofile)$$pdfaiccprofile$$sep$,$endfor$$else$sRGB.icc$endif$},
45 intent=$if(pdfaintent)$$pdfaintent$$else$sRGB IEC61966-2.1$endif$]
47\setupbackend[export=yes]
48\setupstructure[state=start,method=auto]
51\definefontfeature[default][default][script=latn, protrusion=quality, expansion=quality, itlc=yes, textitalics=yes, onum=yes, pnum=yes]
52\definefontfeature[smallcaps][script=latn, protrusion=quality, expansion=quality, smcp=yes, onum=yes, pnum=yes]
53\setupalign[hz,hanging]
54\setupitaliccorrection[global, always]
56\setupbodyfontenvironment[default][em=italic] % use italic as em, not slanted
58\definefallbackfamily[mainface][rm][CMU Serif][preset=range:greek, force=yes]
59\definefontfamily[mainface][rm][$if(mainfont)$$mainfont$$else$Latin Modern Roman$endif$]
60\definefontfamily[mainface][mm][$if(mathfont)$$mathfont$$else$Latin Modern Math$endif$]
61\definefontfamily[mainface][ss][$if(sansfont)$$sansfont$$else$Latin Modern Sans$endif$]
62\definefontfamily[mainface][tt][$if(monofont)$$monofont$$else$Latin Modern Typewriter$endif$][features=none]
63\setupbodyfont[mainface$if(fontsize)$,$fontsize$$endif$]
65\setupwhitespace[$if(whitespace)$$whitespace$$else$medium$endif$]
67\setupindenting[$for(indenting)$$indenting$$sep$,$endfor$]
70\setupinterlinespace[$for(interlinespace)$$interlinespace$$sep$,$endfor$]
73\setuphead[chapter] [style=\tfd,header=empty]
74\setuphead[section] [style=\tfc]
75\setuphead[subsection] [style=\tfb]
76\setuphead[subsubsection] [style=\bf]
77\setuphead[subsubsubsection] [style=\sc]
78\setuphead[subsubsubsubsection][style=\it]
81\setupheadertexts$for(headertext)$[$headertext$]$endfor$
84\setupfootertexts$for(footertext)$[$footertext$]$endfor$
88\setuphead[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][number=no]
93 [headstyle=bold, style=normal, location=hanging, width=broad, margin=1cm, alternative=hanging]
95\setupitemize[autointro] % prevent orphan list intro
96\setupitemize[indentnext=no]
98\setupfloat[figure][default={here,nonumber}]
99\setupfloat[table][default={here,nonumber}]
101\setupthinrules[width=15em] % width of horizontal rules
103\setupxtable[frame=off]
104\setupxtable[head][topframe=on,bottomframe=on]
106\setupxtable[foot][bottomframe=on]
110\attachment[file=$curdir$/$sourcefile$,method=hidden]
113$for(header-includes)$
119\startalignment[middle]
127 {\tfa $for(author)$$author$$sep$\crlf $endfor$}
137\midaligned{\it Abstract}
138\startnarrower[2*middle]
153\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