summaryrefslogtreecommitdiff
path: root/doc/manual.tex
blob: 127a9cbe5e4aaf72d5a08deb98591bfb571b2143 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
\usemodule[bib]

\setuppapersize[A5][A5]

\setupcombinedlist[content][interaction=all,focus=standard]

\setupindenting[yes,next,medium] % -> lead to the glue node error in mkiv

\setuphead[chapter]   [style={\rm\sc},before={\blank[line,force]},after={\blank[2*line,force]}]
\setuphead[section]   [style={\rm\it},before={\blank[line]}      ,after={\blank[line]}]
\setuphead[subsection][style={\rm},before={\blank[line]}         ,after={\blank[line]}]

\setupheads[indentnext=yes]
\setupfloats[indentnext=yes]

\setupbodyfont[10pt]

% title page
\startbuffer[frontpage]
\startstandardmakeup
\raggedcenter
\vfill
{\setupbodyfont[,19pt]
{\em Typesetting}
\blank [2*big]
{\tfc {\em re}{\ss Structured}{\em \kern-6ptText}}
\blank [2*big]
{\em with \CONTEXT}
\blank [5*big]
{\tfa A Manual for {\em rst}{\kern1pt\CONTEXT}}
}
\vfill
\stopstandardmakeup
\stopbuffer

% additional information
\startbuffer[author]
\startstandardmakeup
\vfill
\framed [align=right,frame=off,topframe=on] {%
\tfxx\ss\setupinterlinespace[small]
Copyright 2010 by Philipp Gesang, Dossenheim.\par
Mail any patches or suggestions to\par
\type{string.format("%s@%s.com", "megas.kapaneus", "gmail")}\par
or pay a visit to \goto{my BitBucket home}[url(http://bitbucket.org/phg/)].\par
}
\stopstandardmakeup
\stopbuffer


% table of contents
\startbuffer[toc]
\setuppagenumbering[state=start,alternative=doublesided,location=]
\setupheadertexts
  [{\tfx\sc\getmarking[chapter]}]   [{\tfx\bf \pagenumber}]
  [{\tfx\bf \pagenumber}]           [{\tfx{\em rst}{\kern.5pt\CONTEXT}}]
\completecontent
\stopbuffer

% something radically changed in mkiv
\startluacode
jobvariables = jobvariables or {}
jobvariables.tobesaved = jobvariables.tobesaved or {}
\stopluacode

% list of publications
\startbuffer[pubs]
\setuplayout[grid=no]
\setuptolerance[verytolerant]
\setuptolerance[vertical,verytolerant]

\completepublications
\stopbuffer

\appendtoks  \getbuffer[frontpage] \to \everystarttext
\appendtoks  \getbuffer[author]    \to \everystarttext
\appendtoks  \getbuffer[toc]       \to \everystarttext

%\prependtoks \getbuffer[pubs]      \to \everystoptext

\setupwhitespace[none]
\setupindentation[yes,medium,next]
\setuplayout[grid=verystrict]
\setuptolerance[tolerant]
\language[en]
\setuppagenumbering[state=stop,location=]
\input doc.tex