git.iko.soy/typeable/pandoc
on fe86fad help sign in
typeable/pandoc/default.context
80 lines 1.6 kB history raw
1\startmode[*mkii]
2 \enableregime[utf-8]
3 \setupcolors[state=start]
4\stopmode
5$if(mainlang)$
6\mainlanguage[$mainlang$]
7$endif$
9% Enable hyperlinks
10\setupinteraction[state=start, color=middleblue]
12\setuppapersize [letter][letter]
13\setuplayout [width=middle, backspace=1.5in, cutspace=1.5in,
14 height=middle, topspace=0.75in, bottomspace=0.75in]
16\setuppagenumbering[location={footer,center}]
18\setupbodyfont[11pt]
20\setupwhitespace[medium]
22\setuphead[chapter] [style=\tfd]
23\setuphead[section] [style=\tfc]
24\setuphead[subsection] [style=\tfb]
25\setuphead[subsubsection][style=\bf]
27$if(number-sections)$
28$else$
29\setuphead[chapter, section, subsection, subsubsection][number=no]
30$endif$
32\definedescription
33 [description]
34 [headstyle=bold, style=normal, location=hanging, width=broad, margin=1cm]
36\setupitemize[autointro] % prevent orphan list intro
37\setupitemize[indentnext=no]
39\setupthinrules[width=15em] % width of horizontal rules
41\setupdelimitedtext
42 [blockquote]
43 [before={\blank[medium]},
44 after={\blank[medium]},
45 indentnext=no,
46 ]
48$for(header-includes)$
49$header-includes$
50$endfor$
52\starttext
53$if(title)$
54\startalignment[center]
55 \blank[2*big]
56 {\tfd $title$}
57$if(author)$
58 \blank[3*medium]
59 {\tfa $for(author)$$author$$sep$\crlf $endfor$}
60$endif$
61$if(date)$
62 \blank[2*medium]
63 {\tfa $date$}
64$endif$
65 \blank[3*medium]
66\stopalignment
67$endif$
68$for(include-before)$
69$include-before$
70$endfor$
71$if(toc)$
72\placecontent
73$endif$
75$body$
77$for(include-after)$
78$include-after$
79$endfor$
80\stoptext