blob: 7b22c337cb52443c8a4737a43c0448ce9af26621 (
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
54
55
56
57
|
#once #create message
.ND
.EQ
delim $$
.EN
.LP
You will get lots of practice
using braces as we go along.
One thing to keep in mind is that
braces can appear ______within braces.
(Remember that I said that anywhere you
could use an "x" you could put something in
braces instead. So to get this:
.EQ
e sup {x sup {pi +1} + y sup {pi +1}}
.EN
you can type
e sup {x sup {pi +1} + y sup {pi +1}}
The big superscript (the one on the "e") has
a pair of braces that take in everything.
Then the "x" and the "y" each have braces
to delimit their superscripts.
Of course the braces have to go in the right
places, or you won't get the output you
want.
To verify that you are still following this
lesson, modify "Example" so it looks like
this, then type "ready".
.pl 1
#once #create Ref
.LP
.EQ
e sup { - {x sup {pi +1} + y sup {pi +1}} over 2}
.EN
.pl 1
#once #create Example
.LP
.EQ
e sup {x sup {pi +1} + y sup {pi +1}}
.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
#fail
Don't forget that you need braces for the overall superscript,
and also for the "over" part.
#log
#next
5.1e 10
5.2d 5
|