Sync-to-go: update copyright for 2015
[s-roff.git] / tmac / an-ext.tmac
blobbbf3adf13c867b8b2a63ef47480ceb0b171d7d67
1 .\"@ an-ext.tmac
2 .\"@ Version 2007-Feb-02
3 .\"
4 .\" Copyright (c) 2014 - 2015 Steffen (Daode) Nurpmeso <sdaoden@users.sf.net>.
5 .\"
6 .\" Copyright (C) 2007 Free Software Foundation, Inc.
7 .\" You may freely use, modify and/or distribute this file.
8 .\"
9 .\" Written by Eric S. Raymond <esr@thyrsus.com>
10 .\"            Werner Lemberg <wl@gnu.org>
11 .\"
12 .\" The code below provides extension macros for the `man' macro package.
13 .\" Care has been taken to make the code portable; groff extensions are
14 .\" properly hidden so that all troff implementations can use it without
15 .\" changes.
16 .\"
17 .\" With groff, this file is sourced by the `man' macro package itself.
18 .\" Man page authors who are concerned about portability might add the
19 .\" used macros directly to the prologue of the man page(s).
22 .\" Convention: Auxiliary macros and registers start with `m' followed
23 .\"             by an uppercase letter or digit.
26 .\" Protect against being sourced twice.
27 .nr mX +1
28 .if \n(mX>1 \
29 .  nx
31 .\" Check whether we are using grohtml.
32 .nr mH 0
33 .if \n(.g \
34 .  if '\*(.T'html' \
35 .    nr mH 1
38 .\" Map mono-width fonts to standard fonts for groff's TTY device.
39 .if n \{\
40 .  do ftr CR R
41 .  do ftr CI I
42 .  do ftr CB B
43 .\}
45 .\" groff has glyph entities for angle brackets.
46 .ie \n(.g \{\
47 .  ds la \(la\"
48 .  ds ra \(ra\"
49 .\}
50 .el \{\
51 .  ds la <\"
52 .  ds ra >\"
53 .  \" groff's man macros control hyphenation with this register.
54 .  nr HY 1
55 .\}
57 .nr mS 0
60 .\" Declare start of command synopsis.  Sets up hanging indentation.
61 .de SY
62 .  ie !\\n(mS \{\
63 .    nh
64 .    nr mS 1
65 .    nr mA \\n(.j
66 .    ad l
67 .    nr mI \\n(.i
68 .  \}
69 .  el \{\
70 .    br
71 .    ns
72 .  \}
74 .  nr mT \w'\fB\\$1\fP\ '
75 .  HP \\n(mTu
76 .  rr mT
77 .  B "\\$1"
81 .\" End of command synopsis.  Restores adjustment.
82 .de YS
83 .  in \\n(mIu
84 .  ad \\n(mA
85 .  hy \\n(HY
86 .  nr mS 0
90 .\" Declare optional option.
91 .de OP
92 .  ie \\n(.$-1 \
93 .    RI "[\fB\\$1\fP" "\ \\$2" "]"
94 .  el \
95 .    RB "[" "\\$1" "]"
99 .\" Start URL.
100 .de UR
101 .  ds m1 \\$1\"
102 .  nh
103 .  if \\n(mH \{\
104 .    \" Start diversion in a new environment.
105 .    do ev URL-div
106 .    do di URL-div
107 .  \}
111 .\" End URL.
112 .de UE
113 .  ie \\n(mH \{\
114 .    br
115 .    di
116 .    ev
118 .    \" Has there been one or more input lines for the link text?
119 .    ie \\n(dn \{\
120 .      do HTML-NS "<a href=""\\*(m1"">"
121 .      \" Yes, strip off final newline of diversion and emit it.
122 .      do chop URL-div
123 .      do URL-div
125 .      do HTML-NS </a>
126 .    \}
127 .    el \
128 .      do HTML-NS "<a href=""\\*(m1"">\\*(m1</a>"
129 \&\\$*\"
130 .  \}
131 .  el \
132 \\*(la\\*(m1\\*(ra\\$*\"
134 .  hy \\n(HY
138 .\" Start email address.
139 .de MT
140 .  ds m1 \\$1\"
141 .  nh
142 .  if \\n(mH \{\
143 .    \" Start diversion in a new environment.
144 .    do ev URL-div
145 .    do di URL-div
146 .  \}
150 .\" End email address.
151 .de ME
152 .  ie \\n(mH \{\
153 .    br
154 .    di
155 .    ev
157 .    \" Has there been one or more input lines for the link text?
158 .    ie \\n(dn \{\
159 .      do HTML-NS "<a href=""mailto:\\*(m1"">"
160 .      \" Yes, strip off final newline of diversion and emit it.
161 .      do chop URL-div
162 .      do URL-div
164 .      do HTML-NS </a>
165 .    \}
166 .    el \
167 .      do HTML-NS "<a href=""mailto:\\*(m1"">\\*(m1</a>"
168 \&\\$*\"
169 .  \}
170 .  el \
171 \\*(la\\*(m1\\*(ra\\$*\"
173 .  hy \\n(HY
177 .\" Continuation line for .TP header.
178 .de TQ
179 .  br
180 .  ns
181 .  TP \\$1\" no doublequotes around argument!
185 .\" Start example.
186 .de EX
187 .  do ds mF \\n[.fam]
188 .  nr mE \\n(.f
189 .  nf
190 .  nh
191 .  do fam C
192 .  ft CW
196 .\" End example.
197 .de EE
198 .  do fam \\*(mF
199 .  ft \\n(mE
200 .  fi
201 .  hy \\n(HY
205 .\" Start display.
206 .de DS
207 .  \" XXX to be written
211 .\" End display.
212 .de DE
213 .  \" XXX to be written
216 .\" s-ts-mode