math-spacing-001.tex /size: 1048 b    last modification: 2021-10-28 13:50
1% language=us runpath=texruns:manuals/math
2
3\doifmodeelse {with-struts} {
4    \def\Line{\dontleavehmode{\showstruts\dorecurse{18}{x \strut x }}}
5} {
6    \def\Line{\dontleavehmode{\showstruts\dorecurse{18}{x        x }}}
7}
8
9\setuplayout
10  [width=middle,
11   height=middle,
12   backspace=1mm,
13   topspace=1cm]
14
15\setupbodyfont
16  [17.3pt]
17
18\starttext
19
20\Line
21
22\startformula
23    x
24\stopformula
25
26\Line
27
28\startformula
29    y
30\stopformula
31
32\Line
33
34\startformula
35    \strut x
36\stopformula
37
38\Line
39
40\startformula \startalign
41    \NC c - a     = \NC b \NR
42    \NC d + c - b = \NC a \NR
43\stopalign \stopformula
44
45\Line
46
47\startformula \startalign
48    \NC c - a     = \NC b \NR
49    \NC d + c - b = \NC a \NR
50\stopalign \stopformula
51
52\Line
53
54\startformula
55\mframed
56    [offset=1mm,loffset=3mm,roffset=3mm] {
57        a + b = c
58    }
59\stopformula
60
61\Line
62
63\startformula
64\mframed
65    [offset=1mm,loffset=3mm,roffset=3mm] {
66        \startalign
67            \NC c - a     = \NC b \NR
68            \NC d + c - b = \NC a \NR
69        \stopalign
70    }
71\stopformula
72
73\Line
74
75\stoptext
76