* tmac/an-ext.tmac: Protect against being sourced twice.
[s-roff.git] / tmac / an-ext.tmac
blobc126a20a040e88639ac95c136e7527eee65dc331
1 .\" an-ext.tmac
2 .\"
3 .\" Written by Eric S. Raymond <esr@thyrsus.com>
4 .\"            Werner Lemberg <wl@gnu.org>
5 .\"
6 .\" Version 2006-Jan-22
7 .\"
8 .\" This file is explicitly placed into the public domain.
9 .\"
10 .\"
11 .\" The code below provides extension macros for the `man' macro package.
12 .\" It is written without any groff extensions so that other `man'
13 .\" implementations can use it without changes.
14 .\"
15 .\" With groff, this file is sourced by the `man' macro package itself.
16 .\" Man page authors who are concerned about portability might add the
17 .\" used macros directly to the prologue of the man page(s).
20 .\" Protect against being sourced twice.
21 .nr EX +1
22 .if \n(EX>1 \
23 .  nx
26 .\" Map mono-width fonts to standard fonts for groff's TTY device
27 .if n \{\
28 .  do ftr CR R
29 .  do ftr CI I
30 .  do ftr CB B
31 .\}
33 .\" groff has glyph entities for angle brackets.
34 .ie \n(.g \{\
35 .  ds la \(la\"
36 .  ds ra \(ra\"
37 .\}
38 .el \{\
39 .  ds la <\"
40 .  ds ra >\"
41 .  nr HY 1
42 .\}
44 .nr SY 0
47 .\" Declare start of command synopsis.  Sets up hanging indentation.
48 .de SY
49 .  ie !\\n(SY \{\
50 .    nh
51 .    nr SY 1
52 .    nr a \\n(.j
53 .    ad l
54 .    nr i \\n(.i
55 .  \}
56 .  el \{\
57 .    br
58 .    ns
59 .  \}
61 .  HP \w'\fB\\$1\fP\ 'u
62 .  B "\\$1"
66 .\" End of command synopsis.  Restores adjustment.
67 .de YS
68 .  in \\niu
69 .  ad \\na
70 .  hy \\n(HY
71 .  nr SY 0
75 .\" Declare optional option.
76 .de OP
77 .  ie \\n(.$-1 \
78 .    RI "[\fB\\$1\fP" "\ \\$2" "]"
79 .  el \
80 .    RB "[" "\\$1" "]"
84 .\" Universal resource locator.
85 .\" XXX to be modified
86 .de URL
87 .  nh
88 .  ie \\n(.$-1 \
89 \\$2 \\*(laURL:\\$1\\*(ra\"
90 .  el \
91 \\*(la\\$1\\*(ra\"
92 .  hy \\n(HY
96 .\" Email address.
97 .\" XXX to be modified
98 .de MTO
99 .  nh
100 .  ie \\n(.$-1 \
101 \\$2 \\*(la\\$1\\*(ra\"
102 .  el \
103 \\*(la\\$1\\*(ra\"
104 .  hy \\n(HY
108 .\" Continuation line for .TP header.
109 .de TQ
110 .  br
111 .  ns
112 .  TP \\$1\" no doublequotes around argument!
116 .\" Start example.
117 .de EX
118 .  sp 0.5
119 .  nf
120 .  nh
121 .  ft CW
125 .\" End example.
126 .de EE
127 .  ft
128 .  fi
129 .  hy \\n(HY
130 .  sp 0.5
134 .\" Start display.
135 .de DS
136 .  \" XXX to be written
140 .\" End display.
141 .de DE
142 .  \" XXX to be written
145 .\" EOF