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