]> git.cameronkatri.com Git - mandoc.git/blob - regress/roff/de/escname.in
For accessibility, label the last two widgets in the search form.
[mandoc.git] / regress / roff / de / escname.in
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
9 initial text
10 .Pp
11 define second = val2
12 .de second
13 val2
14 ..
15 .Pp
16 define first\esecond = val3
17 .de first\\second end3
18 val3
19 .end3
20 .Pp
21 define first = val1
22 .de first\esecond
23 val1
24 ..
25 .Pp
26 define first\e.second = val_dot
27 .de first\.second
28 val_dot
29 ..
30 .Pp
31 define first\eGsecond = val_inval
32 .de first\Gsecond
33 val_inval
34 ..
35 .Pp
36 Values:
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
54 Remove all but second:
55 .rm first\\second first\esecond second
56 .first
57 .second
58 .first\\second
59 .Pp
60 macro 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
67 final text