xref: /openbsd-src/regress/usr.bin/mandoc/roff/de/escname.in (revision a72149c535858e8c6447105df6192e1459f98c38)
1.\" $OpenBSD: escname.in,v 1.5 2022/06/03 11:50:25 schwarze Exp $
2.Dd $Mdocdate: June 3 2022 $
3.Dt DE-ESCNAME 1
4.Os
5.Sh NAME
6.Nm de-escname
7.Nd escape sequences in macro names
8.Sh DESCRIPTION
9initial text
10.Pp
11define second = val2
12.de second
13val2
14..
15.Pp
16define first\esecond = val3
17.de first\\second end3
18val3
19.end3
20.Pp
21define first = val1
22.de first\esecond
23val1
24..
25.Pp
26define first\e.second = val_dot
27.de first\.second
28val_dot
29..
30.Pp
31define first\eGsecond = val_inval
32.de first\Gsecond
33val_inval
34..
35.Pp
36Values:
37.Bl -tag -width first_.second -compact
38.It first
39.first
40.It second
41.second
42.It first\esecond
43.first\\second
44.It first.second
45.first.second
46.It first\e.second
47.first\.second
48.It firstGsecond
49.firstGsecond
50.It first\eGsecond
51.first\Gsecond
52.El
53.Pp
54Remove all but second:
55.rm first\\second first\esecond second
56.first
57.second
58.first\\second
59.Pp
60macro seperated from argument by an escape sequence:
61.de witharg end4 excess arguments
62.Dq \\$1
63.end4 tail argument
64.witharg\(enargument
65.Pp
66.de\e
67final text
68