Commit | Line | Data |
---|---|---|
cb8c26cc TL |
1 | #once #create message |
2 | .ND | |
3 | .tr %$ | |
4 | .EQ | |
5 | delim $$ | |
6 | .EN | |
7 | .LP | |
8 | The next step is to learn about "diacriticals", which | |
9 | is a big word for funny marks on symbols, like | |
10 | a bar over something ($x bar$), or a tilde or hat on | |
11 | something ($x tilde ,~a hat$), or perhaps a dot | |
12 | or dotdot ($T dot ,~U dotdot$), or even an | |
13 | underlining like $abc under$. | |
14 | ||
15 | These are all easy. Each funny character | |
16 | has a name, and all you have to do is put the name | |
17 | after the thing you want the character on. | |
18 | Thus | |
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 | |
25 | and | |
26 | i under makes $i under$. | |
27 | ||
28 | Except for "bar" and "under", these are almost always | |
29 | attached to just a single letter. | |
30 | If 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 | ||
35 | Modify "Example" to produce output that looks like this, | |
36 | then type "ready". | |
37 | .pl 1 | |
38 | #once #create Ref | |
39 | .EQ | |
40 | delim $$ | |
41 | .EN | |
42 | .LP | |
43 | Let $x bar$, $y bar$, and $z bar$ be the components of $pi bar$. | |
44 | Let ${alpha +1} bar$ be the mean value of $alpha hat$. | |
45 | .pl 1 | |
46 | #once #create Example | |
47 | .EQ | |
48 | delim $$ | |
49 | .EN | |
50 | .LP | |
51 | Let x bar, y bar, and z bar be the components of pi bar. | |
52 | Let 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 | |
58 | neqn Example | nroff >X2 | |
59 | #cmp X1 X2 | |
60 | #fail | |
61 | Don't forget to set delimiters at the beginning, | |
62 | and get the spaces right around the dollar signs. | |
63 | #log | |
64 | #next | |
65 | 9.1b 10 | |
66 | 9.2a 5 |