BSD 4_2 development
[unix-history] / usr / lib / learn / eqn / L3.1e
CommitLineData
48baa1c3
C
1#once #create message
2.ND
3.PP
4One common typing error that you should watch out for
5is forgetting to end a superscript or subscript
6with a blank or other delimiter (like tilde).
7For instance, you often see output like
8.EQ
9f(x sup 2)=1
10.EN
11because there wasn't a space left between the 2 and the ).
12What we really wanted, of course, was
13.EQ
14f(x sup 2 )=1
15.EN
16
17Modify "Example" to produce this output, then type "ready".
18.pl 1
19#once #create Ref
20.LP
21.EQ
22g( x sup pi )
23= pi (gx sup 2 )
24.EN
25.pl 1
26#once #create Example
27.LP
28.EQ
29g( x sup pi)
30=pi(gxsup2)
31.EN
32.pl 1
33#
34#once neqn Ref | nroff >X1 &
35#once neqn message Ref | nroff -T$term %s/tinyms -
36#user
37neqn Example | nroff >X2
38#cmp X1 X2
39#log
40#next
414.1a 10