summaryrefslogtreecommitdiff
path: root/doc/context/sources/general/manuals/math/math-spacing-001.tex
blob: a0ccda449e3d982e196f42aa5b0075b669f4b263 (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
\doifmodeelse {with-struts} {
    \def\Line{\dontleavehmode{\showstruts\dorecurse{18}{x \strut x }}}
} {
    \def\Line{\dontleavehmode{\showstruts\dorecurse{18}{x        x }}}
}

\setuplayout
  [width=middle,
   height=middle,
   backspace=1mm,
   topspace=1cm]

\setupbodyfont
  [17.3pt]

\starttext

\Line

\startformula
    x
\stopformula

\Line

\startformula
    y
\stopformula

\Line

\startformula
    \strut x
\stopformula

\Line

\startformula \startalign
    \NC c - a     = \NC b \NR
    \NC d + c - b = \NC a \NR
\stopalign \stopformula

\Line

\startformula \startalign
    \NC c - a     = \NC b \NR
    \NC d + c - b = \NC a \NR
\stopalign \stopformula

\Line

\startformula
\mframed
    [offset=1mm,loffset=3mm,roffset=3mm] {
        a + b = c
    }
\stopformula

\Line

\startformula
\mframed
    [offset=1mm,loffset=3mm,roffset=3mm] {
        \startalign
            \NC c - a     = \NC b \NR
            \NC d + c - b = \NC a \NR
        \stopalign
    }
\stopformula

\Line

\stoptext