chiark / gitweb /
Expunge CVS cruft.
[tripe] / doc / tmac.rfc
1 .\" -*-nroff-*-
2 .
3 .\"----- Page layout --------------------------------------------------------
4 .
5 .pl 10.0i
6 .ie t \{\
7 .  po 1i
8 .  pl 11i
9 .  if \n(.g \{\
10 .    fam P
11 .  \}
12 .\}
13 .el \{\
14 .  po 0
15 .  ll 7.2i
16 .  lt 7.2i
17 .  nr LT 7.2i
18 .  nr LL 7.2i
19 .  ad l
20 .\}
21 .ds LF Author
22 .ie t .ds RF Page %
23 .el .ds RF FORMFEED[Page %]
24 .ds CF
25 .ds LH RFC XXXX
26 .ds RH Date
27 .ds CH Title
28 .hy 0
29 .
30 .\"----- Font handling ------------------------------------------------------
31 .
32 .\" .Ff font nfont [stuff more-stuff]
33 .\" Without stuff, changes to font.  With stuff, prints stuff in font
34 .\" and more-stuff in the current font, with no intervening space.
35 .ie t \{\
36 .  de Ff
37 .  ie '\\$3'' \f\\$1\c
38 .  el \&\f\\$1\\$3\fP\\$4
39 ..
40 .\}
41 .el \{\
42 .  de Ff
43 .  ie '\\$3'' \f\\$2\c
44 .  el \&\f\\$2\\$3\fP\\$4
45 ..
46 .\}
47 .
48 .\" .R|.B|.I|... [stuff more-stuff]
49 .\" Change to appropriate font, or print stuff in chosen font followed
50 .\" by more-stuff in current font, with no intervening space.
51 .de R
52 .Ff R R "\\$1" "\\$2"
53 ..
54 .de B
55 .Ff B B "\\$1" "\\$2"
56 ..
57 .de I
58 .Ff I I "\\$1" "\\$2"
59 ..
60 .de P
61 .Ff P P "\\$1" "\\$2"
62 ..
63 .de C
64 .Ff (CR R "\\$1" "\\$2"
65 ..
66 .de CB
67 .Ff (CB B "\\$1" "\\$2"
68 ..
69 .de CI
70 .Ff (CI I "\\$1" "\\$2"
71 ..
72 .de H
73 .Ff (HR R "\\$1" "\\$2"
74 ..
75 .de HB
76 .Ff (HB B "\\$1" "\\$2"
77 ..
78 .de HI
79 .Ff (HI I "\\$1" "\\$2"
80 ..
81 .
82 .\"----- Titling ------------------------------------------------------------
83 .
84 .\" .TL left right
85 .\" Typesets one of the RFC header lines.
86 .de TL
87 .B
88 .tl '\\$1''\\$2'
89 .P
90 ..
91 .
92 .\" .TT number author title
93 .\" Sets the main title, and fiddles the running headers and footers.
94 .ds RN xxxx
95 .de TT
96 .ds LH RFC \\$1
97 .ds LF \\$2
98 .ds RH \\$3
99 .ds CH \\$4
100 .HB
101 .ps 18
102 .ce
103 \&\\$4
104 .ps
105 .P
106 .fi
107 .in +3m
108 ..
109 .
110 .\" .TI level title [number]
111 .\" Sets a title without a number.
112 .nr S0 14
113 .nr S1 12
114 .nr S2 10
115 .nr S3 10
116 .de TI
117 .if t .sp 1
118 .ne 4
119 .ti -3m
120 .nr _i 3m
121 .ps \\n(S\\$1
122 .HB
123 .if !'\\$3'' \{\
124 .  ie t \&\\$3.\h'\\n(_iu-\w'\\$3.'u'\c
125 .  el \&\\$3.\ \ \c
126 .\}
127 \&\\$2
128 .P
129 .ps
130 .br
131 ..
132 .
133 .\" .Tn title
134 .\" Sets a level-n title (n = 0, 1, 2, 3).  Does automatic numbering.
135 .nr T0 0 1
136 .de T0
137 .nr T1 0 1
138 .TI 0 "\\$1" "\\n+(T0"
139 ..
140 .de T1
141 .nr T2 0 1
142 .TI 1 "\\$1" "\\n(T0.\\n+(T1"
143 ..
144 .de T2
145 .nr T3 0 1
146 .TI 2 "\\$1" "\\n(T0.\\n(T1.\\n+(T2"
147 ..
148 .de T3
149 .TI 3 "\\$1" "\\n(T0.\\n(T1.\\n(T2.\\n+(T3"
150 ..
151 .
152 .\" .AP
153 .\" Starts the appendix.
154 .de AP
155 .nr T0 0 1
156 .af T0 A
157 ..
158 .
159 .\"----- Bibliography -------------------------------------------------------
160 .
161 .\" .BS thing
162 .\" Starts a bibliography section.  The thing is the widest bibliography
163 .\" key.
164 .de BS
165 .nr bw \\w'[\\$1]\h'1m''
166 .in +\\n(bwu
167 ..
168 .
169 .\" .BR ref
170 .\" Puts in the header for a bibliography item.
171 .de BR
172 .ne 2
173 .ti -\\n(bwu
174 [\\$1]\h'\\n(bwu-\\w'[\\$1]'u'\c
175 ..
176 .
177 .\" .BE
178 .\" Ends a bibliography section.
179 .de BE
180 .in -4
181 ..
182 .
183 .\"----- Lists of things ----------------------------------------------------
184 .
185 .\" .LS [indent]
186 .\" Starts a list
187 .nr ld 0
188 .de LS
189 .ie '\\$1'' .ds _i 4n
190 .el .ds _i \\$1
191 .in +\\*(_i
192 .rn L L\\n(ld
193 .rn LE E\\n(ld
194 .de LE
195 .in -\\*(_i
196 .rn L\\n(ld L
197 .rn E\\n(ld LE
198 .nr ld \\n(ld
199 \\..
200 .nr ld +1
201 ..
202 .
203 .\" .LE
204 .\" Ends a list
205 .de LE
206 .ab unexpected .LE (at line \\n(.c)
207 ..
208 .
209 .\" .UL
210 .\" Starts an unordered list
211 .nr ul 0
212 .de do
213 .ie t .ds b\\$1 \\$2
214 .el .ds b\\$1 \fB\\$3\fP
215 ..
216 .do 0 \(bu o
217 .do 1 \(em \-
218 .do 2 \(sq []
219 .do 3 \(ci *
220 .de UL
221 .LS
222 .ds L \\*(b\\n(ul
223 .nr ul +1
224 .am E
225 .nr ul -1
226 \\..
227 ..
228 .
229 .\" .OL
230 .\" Starts an ordered (numbered) list
231 .nr ol 0
232 .de do
233 .ds l\\$1 \\$2
234 .ds m\\$1 \\$3
235 .ds r\\$1 \\$4
236 ..
237 .do 0 "" 1 .
238 .do 1 ( a )
239 .do 2 ( i )
240 .do 3 "" A .
241 .
242 .de OL
243 .LS
244 .nr i\\n(ol 0 1
245 .af i\\n(ol \\*(m\\n(ol
246 .ds L \\*(l\\n(ol\\\\n+(i\\n(ol\\*(r\\n(ol
247 .nr ol +1
248 .am E
249 .nr ol -1
250 \\..
251 ..
252 .
253 .\" .DL
254 .\" Starts a definition list
255 .de DL
256 .LS 1i
257 ..
258 .
259 .\" .DI name
260 .\" Starts a definition item for `name'
261 .de DI
262 .br
263 .B
264 \h'-1i'\\$1\c
265 .ie \w'\\$1\h'2n''u<1i \h'1i-\w'\\$1'u'\c
266 .el .br
267 .P
268 ..
269 .
270 .\" .LI [tag]
271 .\" Starts a new list item
272 .de LI
273 .br
274 .ie '\\$1'' .ds LL \\*L
275 .el .ds LL \\$1
276 \h'-\w'\\*(LL\h'1n''u'\\*(LL\h'1n'\c
277 ..
278 .
279 .\" --- Displays ---
280 .
281 .\" .QS
282 .\" Starts a display.
283 .de QS
284 .in +4n
285 .ll -4n
286 ..
287 .
288 .\" .QE
289 .\" Ends a display
290 .de QE
291 .in -4n
292 .ll +4n
293 ..
294 .
295 .\" .VS
296 .\" Starts a listing kinda thing.
297 .de VS
298 .QS
299 .nf
300 .fam C
301 ..
302 .
303 .\" .VE
304 .\" Ends a listing kinda thing.
305 .de VE
306 .fam P
307 .fi
308 .QE
309 ..
310 .
311 .\" --- Mathematical things ---
312 .
313 .\" Superscript and subscript (not very good).
314 .ie t \{\
315 .  ds ^( \s8\v'-.5m'
316 .  ds ^) \v'.5m'\s0
317 .  ds _( \s8\v'.2m'
318 .  ds _) \v'-.2m'\s0
319 .\}
320 .el \{\
321 .  ds ^( ^
322 .  ds ^)
323 .  ds _( _
324 .  ds _)
325 .\}
326 .
327 .de K
328 \&\\$2\c
329 .I K \c
330 .R \*(_(\\$1\*(_)\c
331 \&\\$3
332 ..
333 .de K'
334 \&\\$2\c
335 .I K \c
336 .R \z'\*(_(\\$1\*(_)\c
337 \&\\$3
338 ..
339 .
340 .\"------ That's all, folks -------------------------------------------------