BSD 4_2 development
[unix-history] / usr / lib / learn / eqn / L3.1d
CommitLineData
48baa1c3
C
1#once #create message
2.ND
3.PP
4There is one special construction with subscripts
5and superscripts that you have to be aware of, although
6it almost always does what you want automatically.
7When something has both a subscript and a superscript,
8it is usually printed as
9.EQ
10x sub i sup j
11.EN
12instead of
13.EQ
14{x sub i} sup j
15.EN
16To produce this effect, with the superscript _____\b\b\b\b\babove the
17subscript instead of to the right, you have to type
18the subscript ______\b\b\b\b\b\bbefore the superscript, like this:
19
20 .EQ
21 x sub i sup j
22 .EN
23
24That's all there is to it.
25
26Modify "Example" to produce the following output, then type "ready".
27.pl 1
28#once #create Ref
29.LP
30.EQ
31x sub ij sup kmn = y sub i sub j
32.EN
33.pl 1
34#once #create Example
35.LP
36.EQ
37xxx
38.EN
39.pl 1
40#
41#once neqn Ref | nroff >X1 &
42#once neqn message Ref | nroff -T$term %s/tinyms -
43#user
44neqn Example | nroff >X2
45#cmp X1 X2
46#log
47#next
483.1e 10
493.2d 5