date and time created 92/10/17 13:31:40 by bostic
[unix-history] / usr / src / old / tmac / tmac.an
CommitLineData
8cdd8586
KB
1.\" Copyright (c) 1986 The Regents of the University of California.
2.\" All rights reserved.
6719a6ea 3.\"
8cdd8586 4.\" %sccs.include.proprietary.roff%
6719a6ea 5.\"
bfc1d4be 6.\" @(#)tmac.an 6.11 (Berkeley) %G%
8cdd8586
KB
7.\"
8
1d2340f3 9' DT, PD, SM, and B macros invoked internally.
6719a6ea
KM
10' # month name
11.if "\nd"0" .nr m \n(mo-1
12.if "\nm"0" .ds ]m January
13.if "\nm"1" .ds ]m February
14.if "\nm"2" .ds ]m March
15.if "\nm"3" .ds ]m April
16.if "\nm"4" .ds ]m May
17.if "\nm"5" .ds ]m June
18.if "\nm"6" .ds ]m July
19.if "\nm"7" .ds ]m August
20.if "\nm"8" .ds ]m September
21.if "\nm"9" .ds ]m October
22.if "\nm"10" .ds ]m November
23.if "\nm"11" .ds ]m December
24' # set the date
25.if n \{.nr m \nm+1
26. ie \nd .ds ]W Modified \nm/\nd/\ny
27. el .ds ]W Printed \n(mo/\n(dy/\n(yr\}
28.if t \{.ie \nd .ds ]W \*(]m \nd, 19\ny
29. el .ds ]W \*(]m \n(dy, 19\n(yr\}
30.if t .tr *\(**
31.ie n \{\
32. ds lq \&"\"
33. ds rq \&"\"
34.\}
35.el \{\
36. ds rq ''
37. ds lq ``
38.\}
540d9573 39.de AT
6719a6ea 40.if t \{\
540d9573
KM
41. ds ]W 7th Edition
42. if "\\$1"3" .ds ]W 7th Edition
43. if "\\$1"4" .ds ]W System III
44. if "\\$1"5" \{\
45. ie "\\$2"" .ds ]W System V
46. el .ds ]W System V Release \\$2
76fe4bac 47. \}
6719a6ea
KM
48.\}
49..
540d9573
KM
50.de UC
51.if t \{\
52. ds ]W 3rd Berkeley Distribution
53. if "\\$1"3" .ds ]W 3rd Berkeley Distribution
54. if "\\$1"4" .ds ]W 4th Berkeley Distribution
55. if "\\$1"5" .ds ]W 4.2 Berkeley Distribution
56. if "\\$1"6" .ds ]W 4.3 Berkeley Distribution
9d82eb68 57. if "\\$1"7" .ds ]W 4.4 Berkeley Distribution
540d9573
KM
58.\}
59..
6719a6ea
KM
60' # reset the basic page layout
61.de }E
62.}f
63.in \\n()Ru+\\n(INu
64.ll \\n(LLu
65..
66' # default tabs
67.de DT
68'ta .5i 1i 1.5i 2i 2.5i 3i 3.5i 4i 4.5i 5i 5.5i 6i 6.5i
69..
70' # set type font and size
71.de }f
72.ps 10
73.ft 1
74..
75' # handle the head of the page
76.de }H
77.ev 1
78.}C
40fcab3d
KM
79.ie "\*(.T"va" 'sp .1i
80.el 'sp .5i
6719a6ea
KM
81.ft 1
82.ps 10
83.tl @\\*(]H@\\*(]D@\\*(]H@
84'sp .5i
85.ev
86.ns
87..
88' # handle the foot of the page
89.de }F
90.ev 1
91.ft 1
92.ps 10
93'sp .5i
94.tl @\\*(]W@\\*(]L@%@
015bfa22
CL
95' # make groff happy
96.ie \n(.g \{\
97. bp
98.\}
99.el \{\
100' bp
101.\}
6719a6ea
KM
102.ev
103..
104' # the cut mark
105.if n .ig
6b2971d2 106.if !\nv=2 .ig
6719a6ea 107.de }C
1d2340f3
KM
108.po 0i
109.lt 7.45i
110.tl '__''__'
6719a6ea 111.po
1d2340f3 112.lt
6719a6ea
KM
113..
114' # the final cut mark
115.de }M
116.}N
117.wh -1p }C
118.ll \\n(LLu
119..
120' # no runout unless there was a .TH
121.de }K
122.}N
123.pl 1
124.ll \\n(LLu
125..
126.em }K
127' # set title and heading
128.de TH
129.PD
130.DT
131.if n .nr IN .5i
132.if t .nr IN .5i
133.nr LL \\n(.l
134.ds ]H \\$1\|(\|\\$2\|)
76fe4bac
KM
135.ie "\\$5"" .ds ]D UNIX Programmer's Manual
136.el .ds ]D \\$5
6719a6ea 137.wh 0 }H
1d2340f3
KM
138.if t .ie !"\*(.T"va" .wh -1i }F
139.if t .el .wh -1.4i }F
6719a6ea
KM
140.if n .wh -1.167i }F
141.em }M
142.if \\n(nl .bp 1
143.ds ]L \\$3
144.}E
145.DT
146.nr )I .5i
147.nr )R 0
148.if n .na
149.mk ka
150.if !'\\n(ka'-1' .bp
76fe4bac
KM
151.if t \{\
152. ie "\\$4"" .ds ]W 7th Edition
153. el .ds ]W \\$4
154.\}
6719a6ea
KM
155..
156' # section heading
157.de SH
1d2340f3
KM
158.ss 12
159.if "\\$2"SYNOPSIS" .ss 18
6719a6ea
KM
160.}X 0
161.nr )E 2
1d2340f3 162.SM
6719a6ea
KM
163\&\\$1 \|\\$2 \|\\$3 \|\\$4 \|\\$5 \|\\$6
164..
165' # sub section heading
166.de SS
167.}X \\n()Ru+\\n(INu
168\&\\$1 \|\\$2 \|\\$3 \|\\$4 \|\\$5 \|\\$6
169.br
170..
171' # subroutine for section heading
172.de }X
173.}E
174.ti \\$1
175.sp \\n()Pu
176.ne 2
177.nr )R 0
178.fi
179.it 1 }N
6719a6ea
KM
180.B
181..
182' # end of SH (cf }X above and }N below)
183.de }2
184.nr )E 0
185.}E
186.nr )I .5i
187.ns
188..
189' # italic
190.de I
191.ft 2
192.it 1 }N
193.if !"\\$1"" \&\\$1 \\$2 \\$3 \\$4 \\$5 \\$6
194..
195' # bold
196.de B
197.ft 3
198.it 1 }N
199.if !"\\$1"" \&\\$1 \\$2 \\$3 \\$4 \\$5 \\$6
200..
201' # small
202.de SM
203.ps 9
204.it 1 }N
205.if !"\\$1"" \&\\$1 \\$2 \\$3 \\$4 \\$5 \\$6
206..
207' # combinations of Roman, italic, bold
208.de RI
209.}S 1 2 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
210..
211.de VS
212'if '\\$1'4' .mc \s12\(br\s0
213..
214.de VE
215'mc
216..
217.de RB
218.}S 1 3 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
219..
220.de IR
221.}S 2 1 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
222..
223.de IB
224.}S 2 3 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
225..
226.de BR
227.}S 3 1 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
228..
229.de BI
230.}S 3 2 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
231..
232' # make special case of shift out of italic
233.de }S
234.ds ]F
235.if "\\$1"2" .if !"\\$5"" .ds ]F\^
236.ie !"\\$4"" .}S \\$2 \\$1 "\\$3\f\\$1\\$4\\*(]F" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9"
237.el \\$3
238.}f
239..
240' # paragraph
241.de LP
242.PP
243..
244.de PP
245.sp \\n()Pu
246.ne 2
247.}E
248.nr )I .5i
249.ns
250..
1d2340f3
KM
251' # synonym for .PP
252.de P
253.PP
254..
6719a6ea
KM
255' # paragraph distance
256.de PD
257.if t .nr )P .4v
258.if n .nr )P 1v
259.if !"\\$1"" .nr )P \\$1v
260..
1d2340f3 261' # paragraph with hanging indent
6719a6ea
KM
262.de HP
263.sp \\n()Pu
264.ne 2
265.if !"\\$1"" .nr )I \\$1n
266.ll \\n(LLu
267.in \\n()Ru+\\n(INu+\\n()Iu
268.ti \\n()Ru+\\n(INu
269.}f
270..
271' # indented paragraph
272.de IP
273.TP \\$2
274\&\\$1
275..
1d2340f3 276' # tagged paragraph (paragraph with hanging label)
6719a6ea
KM
277.de TP
278.if !"\\$1"" .nr )I \\$1n
279.sp \\n()Pu
1d2340f3 280.ne 1.1v
6719a6ea
KM
281.in \\n()Ru
282.nr )E 1
283.ns
284.it 1 }N
285.di ]B
286..
287' # end of TP (cf }N below)
288.de }1
289.ds ]X \&\\*(]B\\
290.nr )E 0
291.if !"\\$1"" .nr )I \\$1n
292.}f
293.ll \\n(LLu
294.in \\n()Ru+\\n(INu+\\n()Iu
295.ti \\n(INu
296.ie !\\n()Iu+\\n()Ru-\w@\\*(]X@u-3p \{\\*(]X
297.br\}
298.el \\*(]X\h@|\\n()Iu+\\n()Ru@\c
299.}f
300..
301' # handle end of 1-line features
302.de }N
303.if \\n()E .br
304.di
305.if "\\n()E"0" .}f
306.if "\\n()E"1" .}1
307.if "\\n()E"2" .}2
308.nr )E 0
309..
310' # increase relative indent
311.de RS
312.nr ]\\n+()p \\n()I
313.nr )\\n()p \\n()R
314.ie !"\\$1"" .nr )R +\\$1n
315.el .nr )R +\\n()I
316.nr )I .5i
317.}E
318..
1d2340f3
KM
319.de DS
320.RS
321.nf
322.sp
323..
6719a6ea
KM
324' # decrease relative indent
325.de RE
326.if !"\\$1"" \{.ie "\\$1"0" .nr )p 1 1
327. el .nr )p \\$1 1\}
328.ds ]i \\*(]I\\n()p
329.ds ]r \\*(]R\\n()p
330.nr )I \\*(]i
331.nr )R \\*(]r
332.if \\n()p .nr )p -1
333.}E
334..
1d2340f3
KM
335.de DE
336.fi
337.RE
338.sp .5
339..
6719a6ea
KM
340.nr )p 0 1
341.ds ]I \\\\n(]
342.ds ]R \\\\n()
6f14ff00 343.if t .bd S B 3
6719a6ea
KM
344.if t .ds R \(rg
345.if n .ds R (Reg.)
346.ds S \s10
347.hy 14
1d2340f3 348.if "\*(.T"va" .po -0.4i