[BACK]Return to escname.in CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / roff / de

Annotation of mandoc/regress/roff/de/escname.in, Revision 1.2

1.2     ! schwarze    1: .\" $OpenBSD: escname.in,v 1.4 2017/07/04 14:53:27 schwarze Exp $
        !             2: .Dd $Mdocdate: July 4 2017 $
1.1       schwarze    3: .Dt DE-ESCNAME 1
1.2     ! schwarze    4: .Os
1.1       schwarze    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: Values (first, second, first\esecond):
                     27: .first
                     28: .second
                     29: .first\\second
                     30: .Pp
                     31: Remove all but second:
                     32: .rm first\\second first\esecond second
                     33: .first
                     34: .second
                     35: .first\\second
                     36: .Pp
                     37: macro seperated from argument by an escape sequence:
                     38: .de witharg end4 excess arguments
                     39: .Dq \\$1
                     40: .end4 tail argument
                     41: .witharg\(enargument
                     42: .Pp
                     43: .de\e
                     44: final text

CVSweb