Bell 32V development
[unix-history] / usr / lib / learn / eqn / L9.1a
CommitLineData
cb8c26cc
TL
1#once #create message
2.ND
3.tr %$
4.EQ
5delim $$
6.EN
7.LP
8The next step is to learn about "diacriticals", which
9is a big word for funny marks on symbols, like
10a bar over something ($x bar$), or a tilde or hat on
11something ($x tilde ,~a hat$), or perhaps a dot
12or dotdot ($T dot ,~U dotdot$), or even an
13underlining like $abc under$.
14
15These are all easy. Each funny character
16has a name, and all you have to do is put the name
17after the thing you want the character on.
18Thus
19 x hat makes $x hat$
20 y bar makes $y bar$
21 T dot makes $T dot$
22 x tilde makes $x tilde$ (notice that we spell tilde)
23 u dotdot makes $u dotdot$ (looks ugly on a terminal)
24.br
25and
26 i under makes $i under$.
27
28Except for "bar" and "under", these are almost always
29attached to just a single letter.
30If you want to put a bar over something longer, like
31${2 pi +1} bar$, simply enclose the thing in braces:
32
33 {2 pi +1} bar
34
35Modify "Example" to produce output that looks like this,
36then type "ready".
37.pl 1
38#once #create Ref
39.EQ
40delim $$
41.EN
42.LP
43Let $x bar$, $y bar$, and $z bar$ be the components of $pi bar$.
44Let ${alpha +1} bar$ be the mean value of $alpha hat$.
45.pl 1
46#once #create Example
47.EQ
48delim $$
49.EN
50.LP
51Let x bar, y bar, and z bar be the components of pi bar.
52Let alpha +1 bar be the mean value of alpha hat.
53.pl 1
54#
55#once neqn Ref | nroff >X1 &
56#once neqn message Ref | nroff -T$term %s/tinyms -
57#user
58neqn Example | nroff >X2
59#cmp X1 X2
60#fail
61Don't forget to set delimiters at the beginning,
62and get the spaces right around the dollar signs.
63#log
64#next
659.1b 10
669.2a 5