git.iko.soy/typeable/pandoc
on source_date_epoch help sign in
typeable/pandoc/test/writers-lang-and-dir.context
122 lines 3.3 kB history raw
1% Enable hyperlinks
2\setupinteraction
3 [state=start,
4 style=,
5 color=,
6 contrastcolor=]
8% make chapter, section bookmarks visible when opening document
9\placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section]
10\setupinteractionscreen[option=bookmark]
12\setuppagenumbering[location={footer,middle}]
13\setupbackend[export=yes]
14\setupstructure[state=start,method=auto]
16% use microtypography
17\definefontfeature[default][default][script=latn, protrusion=quality, expansion=quality, itlc=yes, textitalics=yes, onum=yes, pnum=yes]
18\definefontfeature[smallcaps][script=latn, protrusion=quality, expansion=quality, smcp=yes, onum=yes, pnum=yes]
19\setupalign[hz,hanging]
20\setupitaliccorrection[global, always]
22\setupbodyfontenvironment[default][em=italic] % use italic as em, not slanted
24\definefallbackfamily[mainface][rm][CMU Serif][preset=range:greek, force=yes]
25\definefontfamily[mainface][rm][Latin Modern Roman]
26\definefontfamily[mainface][mm][Latin Modern Math]
27\definefontfamily[mainface][ss][Latin Modern Sans]
28\definefontfamily[mainface][tt][Latin Modern Typewriter][features=none]
29\setupbodyfont[mainface]
31\setupwhitespace[medium]
33\setuphead[chapter] [style=\tfd\setupinterlinespace,header=empty]
34\setuphead[section] [style=\tfc\setupinterlinespace]
35\setuphead[subsection] [style=\tfb\setupinterlinespace]
36\setuphead[subsubsection] [style=\bf]
37\setuphead[subsubsubsection] [style=\sc]
38\setuphead[subsubsubsubsection][style=\it]
40\setuphead[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][number=no]
42\definedescription
43 [description]
44 [headstyle=bold, style=normal, location=hanging, width=broad, margin=1cm, alternative=hanging]
46\setupitemize[autointro] % prevent orphan list intro
47\setupitemize[indentnext=no]
49\setupfloat[figure][default={here,nonumber}]
50\setupfloat[table][default={here,nonumber}]
52\setupxtable[frame=off]
53\setupxtable[head][topframe=on,bottomframe=on]
54\setupxtable[body][]
55\setupxtable[foot][bottomframe=on]
58\starttext
60\section[title={Empty Divs and Spans},reference={empty-divs-and-spans}]
62Some text and
64div contents
66and more text.
68Next paragraph with a span and a word-thatincludesaspanright?
70\section[title={Directionality},reference={directionality}]
72Some text and
74\startalignment[righttoleft]
75rtl div contents
77\stopalignment
79and more text.
81\startalignment[lefttoright]
82and a ltr div. with a {\righttoleft rtl span}.
84\stopalignment
86Next paragraph with a {\righttoleft rtl span} and a
87word-that-includesa{\lefttoright ltrspan}right?
89\section[title={Languages},reference={languages}]
91Some text and
93\start\language[de]
94German div contents
96\stop
98and more text.
100Next paragraph with a {\language[en-gb]British span} and a
101word-that-includesa{\language[de-ch]Swiss German span}right?
103Some {\language[es]Spanish text}.
105\section[title={Combined},reference={combined}]
107Some text and
109\start\language[fr]
110\startalignment[righttoleft]
111French rtl div contents
113\stopalignment
114\stop
116and more text.
118Next paragraph with a {\language[en-gb]{\lefttoright British ltr span}}
119and a word-that-includesa{\language[de-ch]{\lefttoright Swiss German ltr
120span}}right?
122\stoptext