BSD 4_2 development
[unix-history] / usr / lib / learn / eqn / L12.1a
CommitLineData
48baa1c3
C
1#once #create message
2.ND
3.tr %$
4.EQ
5delim $$
6.EN
7.LP
8The next step is to learn how to put big parentheses,
9brackets, braces or bars around equations, like this:
10.EQ
11left | a sup 2 over b sub i right |
12.EN
13
14This is done with two new words called "left" and "right".
15To put bars around something, you simply say, in the middle
16of an equation,
17 left | something right |
18and the job is done.
19"something" can indeed be anything, from a single letter
20up to some horribly complicated mess.
21The bars grow to the right height to cover the
22"something", automatically.
23To produce the example above, all that was needed was
24 .EQ
25 left | a sup 2 over b sub i right |
26 .EN
27
28For practice, modify file "Example" so it produces output
29that looks like this, then type "ready".
30.pl 1
31#once #create Ref
32.LP
33.EQ
34left |
35{a over b ~+~ c over d} over 2
36right |
37.EN
38.pl 1
39#once #create Example
40.LP
41.EQ
42replace me
43.EN
44.pl 1
45#
46#once neqn Ref | nroff >X1 &
47#once neqn message Ref | nroff -T$term %s/tinyms -
48#user
49neqn Example | nroff >X2
50#cmp X1 X2
51#log
52#next
5312.1b 10