summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/eqn/L3.1e
blob: 49fdba797c9e535c3ee94b86a79ac3c4f4221f9c (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
#once #create message
.ND
.PP
One common typing error that you should watch out for
is forgetting to end a superscript or subscript
with a blank or other delimiter (like tilde).
For instance, you often see output like
.EQ
f(x sup 2)=1
.EN
because there wasn't a space left between the 2 and the ).
What we really wanted, of course, was
.EQ
f(x sup 2 )=1
.EN

Modify "Example" to produce this output, then type "ready".
.pl 1
#once #create Ref
.LP
.EQ
g( x sup pi ) 
= pi (gx sup 2 )
.EN
.pl 1
#once #create Example
.LP
.EQ
g( x sup pi) 
=pi(gxsup2)
.EN
.pl 1
#
#once neqn Ref | nroff >X1 &
#once neqn message Ref | nroff -T$term %s/tinyms -
#user
neqn Example | nroff >X2
#cmp X1 X2
#log
#next
4.1a 10