|
|
1.1 root 1: #once #create message
2: .ND
3: .tr %$
4: .EQ
5: delim $$
6: .EN
7: .LP
8: The next construction we're going to look at
9: is one for putting things above and below other
10: things, in a rather specialized way.
11: For example, if you want something like
12: .EQ
13: sum from i to j
14: .EN
15: you type
16: .EQ
17: sum from i to j
18: .EN
19: The words "from" and "to" are more magic, like
20: sub or sup or over. The "from" part is centered
21: under the main piece; the "to" part is centered
22: above it.
23: As a warmup, modify "Example" so it produces
24: output that looks like the following, then type
25: ready.
26: .pl 1
27: #once #create Ref
28: .EQ
29: delim $$
30: .EN
31: .LP
32: Let $Q( pi )$ be $sum from {i= pi sub 1} to {i= pi sub 2} x sub i$.
33: .pl 1
34: #once #create Example
35: .EQ
36: delim $$
37: .EN
38: .LP
39: Let $Q( pi )$ be $sum {i= pi sub 1} {i= pi sub 2} x sub i$.
40: .pl 1
41: #
42: #once neqn Ref | nroff >X1 &
43: #once neqn message Ref | nroff -T$term %s/tinyms -
44: #user
45: neqn Example | nroff >X2
46: #cmp X1 X2
47: #log
48: #next
49: 7.1b 10
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.