summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/eqn/L1.1d
blob: 949d4fac050b37c7d4e56618283376c420be7439 (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
#print
The "-ms" package lets you do some other nice things as
well.  For example, you can arrange for a number to be
placed on an equation, in the right margin:

  a = b + c - d                               (1.23)

by placing the number after the .EQ on the same line,
like this:

.EQ (1.23)

You must leave a space between .EQ and the number.

In the file "Example", number the equation "17.1a"
and print it properly with neqn and nroff -ms.
(Don't forget -Txxx for your terminal.)
Then type "ready".
#once #create Example
.PP
This is a tiny little text
that includes one equation
or at least it will when you find this line:
.EQ
x sub i = y sub i + z sub i
.EN
and convert it into an equation.
(Naturally I changed it again.)
.pl 1
#user
grep '\.EQ  *17\.1a$' <Example >/dev/null
#log
#next
1.1e 10