|
Packit Service |
d2f85f |
$if(context-lang)$
|
|
Packit Service |
d2f85f |
\mainlanguage[$context-lang$]
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(context-dir)$
|
|
Packit Service |
d2f85f |
\setupalign[$context-dir$]
|
|
Packit Service |
d2f85f |
\setupdirections[bidi=on,method=two]
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
% Enable hyperlinks
|
|
Packit Service |
d2f85f |
\setupinteraction
|
|
Packit Service |
d2f85f |
[state=start,
|
|
Packit Service |
d2f85f |
$if(title)$
|
|
Packit Service |
d2f85f |
title={$title$},
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(subtitle)$
|
|
Packit Service |
d2f85f |
subtitle={$subtitle$},
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(author)$
|
|
Packit Service |
d2f85f |
author={$for(author)$$author$$sep$; $endfor$},
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(keywords)$
|
|
Packit Service |
d2f85f |
keyword={$for(keywords)$$keywords$$sep$; $endfor$},
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
style=$linkstyle$,
|
|
Packit Service |
d2f85f |
color=$linkcolor$,
|
|
Packit Service |
d2f85f |
contrastcolor=$linkcontrastcolor$]
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
% make chapter, section bookmarks visible when opening document
|
|
Packit Service |
d2f85f |
\placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section]
|
|
Packit Service |
d2f85f |
\setupinteractionscreen[option=bookmark]
|
|
Packit Service |
d2f85f |
\setuptagging[state=start]
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
$if(papersize)$
|
|
Packit Service |
d2f85f |
\setuppapersize[$for(papersize)$$papersize$$sep$,$endfor$]
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(layout)$
|
|
Packit Service |
d2f85f |
\setuplayout[$for(layout)$$layout$$sep$,$endfor$]
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(pagenumbering)$
|
|
Packit Service |
d2f85f |
\setuppagenumbering[$for(pagenumbering)$$pagenumbering$$sep$,$endfor$]
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
% use microtypography
|
|
Packit Service |
d2f85f |
\definefontfeature[default][default][script=latn, protrusion=quality, expansion=quality, itlc=yes, textitalics=yes, onum=yes, pnum=yes]
|
|
Packit Service |
d2f85f |
\definefontfeature[smallcaps][script=latn, protrusion=quality, expansion=quality, smcp=yes, onum=yes, pnum=yes]
|
|
Packit Service |
d2f85f |
\setupalign[hz,hanging]
|
|
Packit Service |
d2f85f |
\setupitaliccorrection[global, always]
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
\setupbodyfontenvironment[default][em=italic] % use italic as em, not slanted
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
\definefallbackfamily[mainface][rm][DejaVu Serif][preset=range:greek, force=yes]
|
|
Packit Service |
d2f85f |
\definefontfamily[mainface][rm][$if(mainfont)$$mainfont$$else$Latin Modern Roman$endif$]
|
|
Packit Service |
d2f85f |
\definefontfamily[mainface][mm][$if(mathfont)$$mathfont$$else$Latin Modern Math$endif$]
|
|
Packit Service |
d2f85f |
\definefontfamily[mainface][ss][$if(sansfont)$$sansfont$$else$Latin Modern Sans$endif$]
|
|
Packit Service |
d2f85f |
\definefontfamily[mainface][tt][$if(monofont)$$monofont$$else$Latin Modern Typewriter$endif$][features=none]
|
|
Packit Service |
d2f85f |
\setupbodyfont[mainface$if(fontsize)$,$fontsize$$endif$]
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
\setupwhitespace[$if(whitespace)$$whitespace$$else$medium$endif$]
|
|
Packit Service |
d2f85f |
$if(indenting)$
|
|
Packit Service |
d2f85f |
\setupindenting[$for(indenting)$$indenting$$sep$,$endfor$]
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(interlinespace)$
|
|
Packit Service |
d2f85f |
\setupinterlinespace[$for(interlinespace)$$interlinespace$$sep$,$endfor$]
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
\setuphead[chapter] [style=\tfd,header=empty]
|
|
Packit Service |
d2f85f |
\setuphead[section] [style=\tfc]
|
|
Packit Service |
d2f85f |
\setuphead[subsection] [style=\tfb]
|
|
Packit Service |
d2f85f |
\setuphead[subsubsection] [style=\bf]
|
|
Packit Service |
d2f85f |
\setuphead[subsubsubsection] [style=\sc]
|
|
Packit Service |
d2f85f |
\setuphead[subsubsubsubsection][style=\it]
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
$if(headertext)$
|
|
Packit Service |
d2f85f |
\setupheadertexts$for(headertext)$[$headertext$]$endfor$
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(footertext)$
|
|
Packit Service |
d2f85f |
\setupfootertexts$for(footertext)$[$footertext$]$endfor$
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(number-sections)$
|
|
Packit Service |
d2f85f |
$else$
|
|
Packit Service |
d2f85f |
\setuphead[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][number=no]
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
\definedescription
|
|
Packit Service |
d2f85f |
[description]
|
|
Packit Service |
d2f85f |
[headstyle=bold, style=normal, location=hanging, width=broad, margin=1cm, alternative=hanging]
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
\setupitemize[autointro] % prevent orphan list intro
|
|
Packit Service |
d2f85f |
\setupitemize[indentnext=no]
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
\setupfloat[figure][default={here,nonumber}]
|
|
Packit Service |
d2f85f |
\setupfloat[table][default={here,nonumber}]
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
\setupthinrules[width=15em] % width of horizontal rules
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
$for(header-includes)$
|
|
Packit Service |
d2f85f |
$header-includes$
|
|
Packit Service |
d2f85f |
$endfor$
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
\starttext
|
|
Packit Service |
d2f85f |
$if(title)$
|
|
Packit Service |
d2f85f |
\startalignment[middle]
|
|
Packit Service |
d2f85f |
{\tfd $title$}
|
|
Packit Service |
d2f85f |
$if(subtitle)$
|
|
Packit Service |
d2f85f |
\smallskip
|
|
Packit Service |
d2f85f |
{\tfa $subtitle$}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(author)$
|
|
Packit Service |
d2f85f |
\smallskip
|
|
Packit Service |
d2f85f |
{\tfa $for(author)$$author$$sep$\crlf $endfor$}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(date)$
|
|
Packit Service |
d2f85f |
\smallskip
|
|
Packit Service |
d2f85f |
{\tfa $date$}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
\bigskip
|
|
Packit Service |
d2f85f |
\stopalignment
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(abstract)$
|
|
Packit Service |
d2f85f |
\midaligned{\it Abstract}
|
|
Packit Service |
d2f85f |
\startnarrower[2*middle]
|
|
Packit Service |
d2f85f |
$abstract$
|
|
Packit Service |
d2f85f |
\stopnarrower
|
|
Packit Service |
d2f85f |
\blank[big]
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$for(include-before)$
|
|
Packit Service |
d2f85f |
$include-before$
|
|
Packit Service |
d2f85f |
$endfor$
|
|
Packit Service |
d2f85f |
$if(toc)$
|
|
Packit Service |
d2f85f |
\completecontent
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(lot)$
|
|
Packit Service |
d2f85f |
\completelistoftables
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(lof)$
|
|
Packit Service |
d2f85f |
\completelistoffigures
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
$body$
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
$for(include-after)$
|
|
Packit Service |
d2f85f |
$include-after$
|
|
Packit Service |
d2f85f |
$endfor$
|
|
Packit Service |
d2f85f |
\stoptext
|