blob: af14087fe1bb8cc0e5a144b6504063bbe8a49511 (
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
|
#once #create message
.ND
.tr %$
.EQ
delim $$
.EN
.LP
One thing that you will occasionally need
is to be able to get a literal { or } in your
output, for an expression like
.EQ
{ "{" a + b "}" } over 2
.EN
The way to do this is to place the braces
that are really to appear ______inside ______quotes,
like this:
.EQ
{ "{" a + b "}" } over 2
.EN
.br
The quotes temporarily turn off the special meaning
of the braces so that you can have them printed.
The file "Example" has a lot of square brackets in
it. Modify them so they are all braces when they are
printed - so they look like this - then type "ready".
.pl 1
#once #create Ref
.LP
.EQ
f"{" x sub 1 ,..., x sub n "}" ~=~ "{" x sub 1 ,..., x sub n "}"
.EN
.pl 1
#once #create Example
.LP
.EQ
f[ x sub 1 ,..., x sub n ] ~=~ [ x sub 1 ,..., x sub n ]
.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
6.1a 10
|