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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
\startenvironment hybrid-environment
% \showgrid[outer,lines]
% \showgrid
\usemodule[abr-02,chart,narrowtt]
\starttypescript [hybrid]
\definetypeface [hybrid] [rm] [serif] [bookman] [default]
\definetypeface [hybrid] [ss] [sans] [dejavu] [default] [rscale=0.9]
\definetypeface [hybrid] [tt] [mono] [dejavu] [default] [rscale=0.9]
\definetypeface [hybrid] [mm] [math] [xits] [default] [rscale=1.00]
\stoptypescript
\setupbodyfont[hybrid]
\setupFLOWcharts
[offset=\zeropoint,
dx=1.2\bodyfontsize,
dy=1.2\bodyfontsize,
height=2\bodyfontsize,
width=7\bodyfontsize]
\setupFLOWshapes
[framecolor=blue]
\setupFLOWlines
[color=red]
\abbreviation[METAPOST]{MetaPost}{}
\abbreviation[EPUB] {Epub} {}
\setuplayout
[width=middle,
height=middle,
header=0cm,
topspace=2cm,
bottomspace=1cm,
footer=1cm,
footerdistance=.5cm]
\setupfootertexts
[][{\getmarking[chapter]\quad\pagenumber}]
[{\pagenumber\quad\getmarking[chapter]}][]
\setuppagenumbering
[alternative=doublesided]
\setupfooter
[color=blue,
style=\dontconvertfont\bf]
\setuplayout
[grid=tolerant] % we need a test
\setupformulas
[grid=min]
\setupwhitespace
[big]
\setuphead
[chapter]
[before=,
after={\blank[2*big]},
style=\bfc,
color=blue]
\setuphead
[section]
[before={\blank[2*big]},
after=\blank,
style=\bfb,
color=blue]
\setuphead
[subsection]
[before=\blank,
after=\blank,
style=\bfa,
color=blue]
% grid settings
% none will effectively smash the box to one line (zero inner) but is the same as strut as outer will snap
% however you can use {none,top:3} to move it down 3 lines then
% {local,strut} will use the style related settings and move one line down because the font is larger
\setuphead
[chapter]
[grid=none]
\setuphead
[section]
[grid=none]
\setuphead
[subsection]
[grid=none]
% so far
\setupitemgroup
[itemize]
[each]
[color=blue,
symcolor=blue]
\setuptyping
[color=blue]
\setuptype
[color=blue]
\definecolor[red] [r=.4]
\definecolor[green] [g=.4]
\definecolor[blue] [b=.4]
\definecolor[yellow] [r=.4,g=.4]
\definecolor[gray] [s=.6]
\setupcaptions
[color=blue]
\setupexternalfigures
[location={local,default}]
\stopenvironment
|