2015-10-17 14:48:42 +02:00
|
|
|
% Enable hyperlinks
|
2015-10-21 00:22:52 +02:00
|
|
|
\setupinteraction
|
|
|
|
[state=start,
|
2015-11-13 01:09:41 +01:00
|
|
|
style=,
|
|
|
|
color=,
|
|
|
|
contrastcolor=]
|
2017-05-06 14:58:32 +02:00
|
|
|
|
2015-10-21 00:22:52 +02:00
|
|
|
% make chapter, section bookmarks visible when opening document
|
|
|
|
\placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section]
|
|
|
|
\setupinteractionscreen[option=bookmark]
|
|
|
|
\setuptagging[state=start]
|
|
|
|
|
2017-05-06 14:58:32 +02:00
|
|
|
|
2015-11-13 01:09:41 +01:00
|
|
|
% use microtypography
|
2015-11-20 23:50:37 +01:00
|
|
|
\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]
|
2015-10-21 00:22:52 +02:00
|
|
|
\setupalign[hz,hanging]
|
2015-11-20 23:50:37 +01:00
|
|
|
\setupitaliccorrection[global, always]
|
2017-05-06 14:58:32 +02:00
|
|
|
|
2015-10-21 00:22:52 +02:00
|
|
|
\setupbodyfontenvironment[default][em=italic] % use italic as em, not slanted
|
2017-05-06 14:58:32 +02:00
|
|
|
|
2018-05-02 06:26:08 +02:00
|
|
|
\definefallbackfamily[mainface][rm][CMU Serif][preset=range:greek, force=yes]
|
2017-05-06 14:58:32 +02:00
|
|
|
\definefontfamily[mainface][rm][Latin Modern Roman]
|
|
|
|
\definefontfamily[mainface][mm][Latin Modern Math]
|
|
|
|
\definefontfamily[mainface][ss][Latin Modern Sans]
|
|
|
|
\definefontfamily[mainface][tt][Latin Modern Typewriter][features=none]
|
|
|
|
\setupbodyfont[mainface]
|
|
|
|
|
2015-10-17 14:48:42 +02:00
|
|
|
\setupwhitespace[medium]
|
|
|
|
|
2015-10-21 00:22:52 +02:00
|
|
|
\setuphead[chapter] [style=\tfd,header=empty]
|
|
|
|
\setuphead[section] [style=\tfc]
|
|
|
|
\setuphead[subsection] [style=\tfb]
|
|
|
|
\setuphead[subsubsection] [style=\bf]
|
|
|
|
\setuphead[subsubsubsection] [style=\sc]
|
|
|
|
\setuphead[subsubsubsubsection][style=\it]
|
2015-10-17 14:48:42 +02:00
|
|
|
|
2015-10-21 00:22:52 +02:00
|
|
|
\setuphead[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][number=no]
|
2015-10-17 14:48:42 +02:00
|
|
|
|
|
|
|
\definedescription
|
|
|
|
[description]
|
|
|
|
[headstyle=bold, style=normal, location=hanging, width=broad, margin=1cm, alternative=hanging]
|
|
|
|
|
|
|
|
\setupitemize[autointro] % prevent orphan list intro
|
|
|
|
\setupitemize[indentnext=no]
|
|
|
|
|
|
|
|
\setupfloat[figure][default={here,nonumber}]
|
|
|
|
\setupfloat[table][default={here,nonumber}]
|
|
|
|
|
|
|
|
\setupthinrules[width=15em] % width of horizontal rules
|
|
|
|
|
2018-01-16 02:38:33 +01:00
|
|
|
\setupxtable[frame=off]
|
|
|
|
\setupxtable[head][topframe=on,bottomframe=on]
|
|
|
|
\setupxtable[body][]
|
|
|
|
\setupxtable[foot][bottomframe=on]
|
|
|
|
|
2015-10-17 14:48:42 +02:00
|
|
|
|
|
|
|
\starttext
|
|
|
|
|
2018-01-25 20:56:28 +01:00
|
|
|
\section[title={Empty Divs and Spans},reference={empty-divs-and-spans}]
|
2015-10-17 14:48:42 +02:00
|
|
|
|
|
|
|
Some text and
|
|
|
|
|
|
|
|
div contents
|
|
|
|
|
|
|
|
and more text.
|
|
|
|
|
|
|
|
Next paragraph with a span and a word-thatincludesaspanright?
|
|
|
|
|
2018-01-25 20:56:28 +01:00
|
|
|
\section[title={Directionality},reference={directionality}]
|
2015-10-17 14:48:42 +02:00
|
|
|
|
|
|
|
Some text and
|
|
|
|
|
|
|
|
\startalignment[righttoleft]
|
|
|
|
rtl div contents
|
|
|
|
|
|
|
|
\stopalignment
|
|
|
|
|
|
|
|
and more text.
|
|
|
|
|
|
|
|
\startalignment[lefttoright]
|
|
|
|
and a ltr div. with a {\righttoleft rtl span}.
|
|
|
|
|
|
|
|
\stopalignment
|
|
|
|
|
|
|
|
Next paragraph with a {\righttoleft rtl span} and a
|
|
|
|
word-that-includesa{\lefttoright ltrspan}right?
|
|
|
|
|
2018-01-25 20:56:28 +01:00
|
|
|
\section[title={Languages},reference={languages}]
|
2015-10-17 14:48:42 +02:00
|
|
|
|
|
|
|
Some text and
|
|
|
|
|
|
|
|
\start\language[de]
|
|
|
|
German div contents
|
|
|
|
|
|
|
|
\stop
|
|
|
|
|
|
|
|
and more text.
|
|
|
|
|
|
|
|
Next paragraph with a \start\language[en-gb]British span\stop and a
|
|
|
|
word-that-includesa\start\language[de-ch]Swiss German span\stop right?
|
|
|
|
|
|
|
|
Some \start\language[es]Spanish text\stop .
|
|
|
|
|
2018-01-25 20:56:28 +01:00
|
|
|
\section[title={Combined},reference={combined}]
|
2015-10-17 14:48:42 +02:00
|
|
|
|
|
|
|
Some text and
|
|
|
|
|
|
|
|
\start\language[fr]
|
|
|
|
\startalignment[righttoleft]
|
|
|
|
French rtl div contents
|
|
|
|
|
|
|
|
\stopalignment
|
|
|
|
\stop
|
|
|
|
|
|
|
|
and more text.
|
|
|
|
|
|
|
|
Next paragraph with a \start\language[en-gb]{\lefttoright British ltr
|
|
|
|
span}\stop and a
|
|
|
|
word-that-includesa\start\language[de-ch]{\lefttoright Swiss German ltr
|
|
|
|
span}\stop right?
|
|
|
|
|
|
|
|
\stoptext
|