aboutsummaryrefslogtreecommitdiff
path: root/default.context
diff options
context:
space:
mode:
Diffstat (limited to 'default.context')
-rw-r--r--default.context95
1 files changed, 50 insertions, 45 deletions
diff --git a/default.context b/default.context
index d4e8d29f0..4a3457934 100644
--- a/default.context
+++ b/default.context
@@ -8,53 +8,61 @@ $endif$
% Enable hyperlinks
\setupinteraction
[state=start,
- style=$if(style)$$style$$else$normal$endif$,
- color=$if(linkcolor)$$linkcolor$$else$black$endif$,
- contrastcolor=$if(linkcolor)$$linkcolor$$else$black$endif$$if(title)$,
- title=$title$$endif$$if(subtitle)$,
- subtitle=$subtitle$$endif$$if(author)$,
- author=$for(author)$$author$$sep$; $endfor$$endif$$if(keywords)$,
- keyword=$keywords$$endif$]
+$if(title)$
+ title={$title$},
+$endif$
+$if(subtitle)$
+ subtitle={$subtitle$},
+$endif$
+$if(author)$
+ author={$for(author)$$author$$sep$; $endfor$},
+$endif$
+$if(keywords)$
+ keyword={$for(keywords)$$keywords$$sep$; $endfor$},
+$endif$
+ style=$linkstyle$,
+ color=$linkcolor$,
+ contrastcolor=$linkcontrastcolor$]
% make chapter, section bookmarks visible when opening document
\placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section]
\setupinteractionscreen[option=bookmark]
\setuptagging[state=start]
$if(papersize)$
-\setuppapersize[$for(papersize)$$papersize$$sep$,
- $endfor$]
+\setuppapersize[$for(papersize)$$papersize$$sep$,$endfor$]
$endif$
$if(layout)$
-\setuplayout[$for(layout)$$layout$$sep$,
- $endfor$]
+\setuplayout[$for(layout)$$layout$$sep$,$endfor$]
$endif$
$if(pagenumbering)$
-\setuppagenumbering[$for(pagenumbering)$$pagenumbering$$sep$,
- $endfor$]
+\setuppagenumbering[$for(pagenumbering)$$pagenumbering$$sep$,$endfor$]
$endif$
-\definefontfeature[default][default][protrusion=quality,expansion=quality,onum=yes] % use microtypography
+% use microtypography
+\definefontfeature[default][default][script=latn, protrusion=quality, expansion=quality, itlc=yes, textitalics=yes, onum=yes, pnum=yes]
+\definefontfeature[smallcaps][script=latn, protrusion=quality, expansion=quality, smcp=yes, onum=yes, pnum=yes]
\setupalign[hz,hanging]
+\setupitaliccorrection[global, always]
\setupbodyfontenvironment[default][em=italic] % use italic as em, not slanted
+\usemodule[simplefonts$if(fontsize)$,$fontsize$$endif$]
+\setmainfontfallback[DejaVu Serif][range={greekandcoptic, greekextended}, force=yes, rscale=auto]
$if(mainfont)$
-\definefontfamily[mainfont][serif][$mainfont$]
+\setmainfont[$mainfont$]
$endif$
$if(sansfont)$
-\definefontfamily[sansfont][sans][$sansfont$]
+\setsansfont[$sansfont$][rscale=auto]
$endif$
$if(monofont)$
-\definefontfamily[monofont][mono][$monofont$][features=none]
+\setmonofont[$monofont$][features=none, rscale=auto]
$endif$
$if(mathfont)$
-\definefontfamily[mathfont][math][$mathfont$]
+\setmathfont[$mathfont$][rscale=auto]
$endif$
-\setupbodyfont[mainfont$if(fontsize)$,$fontsize$$endif$]
-$if(whitespace)$
-\setupwhitespace[$whitespace$]
-$else$
-\setupwhitespace[medium]
+\setupwhitespace[$if(whitespace)$$whitespace$$else$medium$endif$]
+$if(indenting)$
+\setupindenting[$for(indenting)$$indenting$$sep$,$endfor$]
$endif$
$if(interlinespace)$
-\setupinterlinespace[$interlinespace$]
+\setupinterlinespace[$for(interlinespace)$$interlinespace$$sep$,$endfor$]
$endif$
\setuphead[chapter] [style=\tfd,header=empty]
@@ -65,10 +73,10 @@ $endif$
\setuphead[subsubsubsubsection][style=\it]
$if(headertext)$
-\setupheadertexts[$headertext$]
+\setupheadertexts$for(headertext)$[$headertext$]$endfor$
$endif$
$if(footertext)$
-\setupfootertexts[$footertext$]
+\setupfootertexts$for(footertext)$[$footertext$]$endfor$
$endif$
$if(number-sections)$
$else$
@@ -87,31 +95,28 @@ $endif$
\setupthinrules[width=15em] % width of horizontal rules
-\setuphead[title][
- style={\tfd\raggedcenter},
- before={\startalignment[middle]},
- after={
-$if(subtitle)$
- \smallskip
- {\tfa $subtitle$}
-$endif$
-$if(author)$
- \smallskip
- {\tfa $for(author)$$author$$sep$\crlf $endfor$}
-$endif$
-$if(date)$
- \smallskip
- {\tfa $date$}
-$endif$
- \bigskip\stopalignment}]
-
$for(header-includes)$
$header-includes$
$endfor$
\starttext
$if(title)$
-\title{$title$}
+\startalignment[middle]
+ {\tfd $title$}
+$if(subtitle)$
+ \smallskip
+ {\tfa $subtitle$}
+$endif$
+$if(author)$
+ \smallskip
+ {\tfa $for(author)$$author$$sep$\crlf $endfor$}
+$endif$
+$if(date)$
+ \smallskip
+ {\tfa $date$}
+$endif$
+ \bigskip
+\stopalignment
$endif$
$if(abstract)$
\midaligned{\it Abstract}