BSD 3 development
[unix-history] / usr / lib / learn / eqn / L3.1a
CommitLineData
fd15fd37
BJ
1#once #create message
2.ND
3.PP
4Now that we have some of the preliminaries out of the way,
5we can get on to doing real mathematics.
6I have been slipping small things into the example files
7as we go along so that you will at least have seen
8some common neqn constructions.
9
10One of the most frequent is the word "sub", which
11indicates a subscript, like this:
12
13 .EQ
14 x sub i + y sub j
15 .EN
16
17which produces
18.EQ
19x sub i + y sub j
20.EN
21The main thing to notice is that the blanks are delimiters -
22the subscript of "x" is "i"; the blank after the "i" marks
23the end of the subscript.
24
25Modify the file "Example" so the equation in it looks like
26this:
27.EQ
28x sub alpha ~=~ y sub pi ~+~ z sub pi
29.EN
30Then type "ready".
31.pl 1
32#once #create Ref
33.LP
34.EQ
35x sub alpha ~=~ y sub pi ~+~ z sub pi
36.EN
37.pl 1
38#once #create Example
39.LP
40.EQ
41xxx
42.EN
43.pl 1
44#
45#once neqn Ref | nroff >X1 &
46#once neqn message | nroff -T$term %s/tinyms -
47#user
48neqn Example | nroff >X2
49#cmp X1 X2
50#log
51#next
523.1b 10
533.2a 5