summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/eqn/L4.1d
blob: 1eea10d9916cb812406aa6b2baa5309e50a89b37 (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
.LP
You can put fractions over fractions with multiple "over"'s
just as you can do multiple subscripts and superscripts,
although fractions within fractions are much
less common (probably because they are harder for
people to read).
Anyway, if you want, for example, something like
.EQ
a over b over c
.EN
you just type
  .EQ
  a over b over c
  .EN

As a drill, change "Example" so it produces an equation
that looks like the following one, then type "ready".
.pl 1
#once #create Ref
.LP
.EQ
x over x+x over x+x+x
.EN
.pl 1
#once #create Example
.LP
.EQ
right here
.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
5.1a