summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/eqn/L5.1a
blob: 1434e1e3cb14a1cae378917d910fdded8feae3d0 (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
#once #create message
.ND
.EQ
delim $$
.EN
.LP
So far we have carefuly skirted around a potential
problem; maybe you've wondered about it.
Suppose we want to produce an equation that looks
like this:
.EQ
x sup { pi + 1 }
.EN
The superscript is complicated, in that it contains
both a $pi$ and a +1, which has to be separated
from the $pi$ by a blank.
But I already told you that a blank terminates
the superscript.  What's going on?

As the first step to finding out, will the input
equation

  x sup pi + 1

produce the output

  $x sup {pi + 1}$ ?
Answer yes or no.
(You can play with the file "Example" if you like.)
.pl 1
#once #create Example
.LP
.EQ
replace me
.EN
.pl 1
#
#once neqn message | nroff -T$term %s/tinyms -
#copyin
#user
#uncopyin
#match no
#log
#next
5.1b