BSD 3 development
[unix-history] / usr / lib / learn / eqn / L5.1a
CommitLineData
fd15fd37
BJ
1#once #create message
2.ND
3.EQ
4delim $$
5.EN
6.LP
7So far we have carefuly skirted around a potential
8problem; maybe you've wondered about it.
9Suppose we want to produce an equation that looks
10like this:
11.EQ
12x sup { pi + 1 }
13.EN
14The superscript is complicated, in that it contains
15both a $pi$ and a +1, which has to be separated
16from the $pi$ by a blank.
17But I already told you that a blank terminates
18the superscript. What's going on?
19
20As the first step to finding out, will the input
21equation
22
23 x sup pi + 1
24
25produce the output
26
27 $x sup {pi + 1}$ ?
28Answer yes or no.
29(You can play with the file "Example" if you like.)
30.pl 1
31#once #create Example
32.LP
33.EQ
34replace me
35.EN
36.pl 1
37#
38#once neqn message | nroff -T$term %s/tinyms -
39#copyin
40#user
41#uncopyin
42#match no
43#log
44#next
455.1b