summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/eqn/L2.1b
blob: 277f17e41c65aef39cb53656cbb394c2d49522f7 (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
#print
Since spaces are thrown away, what do you do when
you want spaces? The answer is that you have to ask for
them explicitly.
If you type a "~" (tilde) it will be replaced by a space
on output; use one tilde for each space.
Thus to get
a + b
you need
.EQ
a~+~b
.EN

Modify the equation in file "Example" so there is one space
around each of the operators =, + and -, so it looks like

a = b + c - d

Print it with neqn and nroff -ms to verify it.
Type "ready" when done.
#once #create Ref
.PP
You probably thought you were done with this ridiculous
example of just
.EQ
a ~=~
b ~+~ c
~-~d
.EN
Sorry, but you will probably even see it again.
.pl 1
#once neqn Ref | nroff >X1 &
#once #create Example
.PP
You probably thought you were done with this ridiculous
example of just
.EQ
a =
b + c
-d
.EN
Sorry, but you will probably even see it again.
.pl 1
#user
neqn Example | nroff >X2
#cmp X1 X2
#log
#next
2.1c 10
2.2b 5