docs/master
view style @ 40:7b620f6b1e97
style: TOC is in corporate design now; Extended AB macro and renamed it to H-.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Tue, 15 May 2012 22:33:57 +0200 |
parents | 22ae3981a76b |
children | 443dda7ccb4a |
line source
1 .do xflag 3
2 .de __
3 ..
4 .blm __ \" ignore empty lines in input
5 .lc_ctype en_US.utf8
6 .mediasize a4
8 .fp 1 R LinLibertine_R otf
9 .feature R +onum
10 .fp 2 I LinLibertine_RI otf
11 .feature I +onum
12 .fp 3 B LinLibertine_RB otf
13 .feature B +onum
14 .fp 4 BI LinLibertine_RBI otf
15 .feature BI +onum
16 .fp 5 CW TerminusMedium-4.36 ttf
17 .fp 0 CI TerminusMediumItalic-4.36 ttf
18 .fp 0 CB TerminusBold-4.36 ttf
19 .fp 0 L TerminusMedium-4.36 ttf
20 .fp 0 SC LinLibertine_R otf
21 .feature SC +onum +smcp
22 .fp 0 IC LinLibertine_RI otf
23 .feature IC +onum +smcp
24 .fp 0 BC LinLibertine_RB otf
25 .feature BC +onum +smcp
27 .ig
28 . nr PS 10
29 . nr VS 12
30 ..
32 .nr PI 3n
33 .nr PD .5v
34 .nr lu 0
35 .af PN i
37 .ds _E '\\\\n(PN''\f(SCMarkus Schnalke: The Modern Mail Handler\fP' \" left
38 .ds _O '\f(SCChapter \\\\n(H1\ \ \\\\*(_C\fP''\\\\n(PN' \" right
39 .ds _o '\f(SC\\\\*(_C\fP''\\\\n(PN' \" right
40 .ds CH "
42 .nr HM 3.3c
43 .nr FM 6.6c
44 .nr LL 14c
45 .ll 14c
46 .nr LT \n(LL
47 .nr PO 2.3c
48 .de _X
49 \&
50 ..
51 .wh 2.8c _X
53 .de _M \" change margins for text block on next page
54 .if e .nr PO -2.3c
55 .if o .nr PO +2.3c
56 .ds CF "
57 ..
58 .wh -1u _M
60 .de CW
61 .nr PQ \\n(.f
62 .if t \{\
63 . ft CW
64 . if !^\\$1^^ \&\\$1\f\\n(PQ\\$2
65 .\}
66 .if n \{\
67 . ie ^\\$1^^ .ul 999
68 . el .ul 1
69 . if \\n(.$=1 \&\\$1
70 . if \\n(.$>1 \&\\$1\c
71 . if \\n(.$>1 \&\\$2
72 .\}
73 ..
75 .ds [. " [
76 .ds .] ]
77 .rm ]<
78 .de ]<
79 . LP
80 . de FP
81 . IP \\\\$1.
82 \\..
83 . rm FS FE
84 ..
86 .am PT
87 . rs
88 ..
90 .rm NH
91 .de NH
92 .SH
93 .nr NS \\$1
94 .if !\\n(.$ .nr NS 1
95 .if !\\n(NS .nr NS 1
96 .nr H\\n(NS +1
97 .if \\n(NS<2 .nr H2 0
98 .if \\n(NS<3 .nr H3 0
99 .ds SN \\n(H1
100 .if \\n(NS>1 .as SN \&.\\n(H2
101 .if \\n(NS>2 .as SN \&.\\n(H3
102 ..
104 .de H-
105 .EH "
106 .OH "
107 .bp
108 .if e .bp
109 \
110 .lg 0
111 .nr PS +6
112 .nr VS +6
113 .SH
114 .ce 1
115 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
116 \&\\$1
117 .br
118 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
119 .nr PS -6
120 .nr VS -6
121 .lg
122 .RT
123 .if !,\\$2,no, \{
124 . EH "\\\\*(_E
125 . ie \\n(H1 .OH "\\\\*(_O
126 . el .OH "\\\\*(_o
127 . ds CF \\n(PN
128 .\}
129 .sp 4
130 .nr PP 0
131 ..
133 .de H0
134 .EH "
135 .OH "
136 .bp
137 .if e .bp
138 \
139 . lg 0
140 . nr PS +6
141 . nr VS +6
142 .ie \\n(.$=1 \{\
143 . NH 1
144 . ce 1
145 Chapter \\*(SN
146 . sp .5
147 .\}
148 .el .if ,\\$2,no, .SH
149 . ce 1
150 . tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
151 \&\\$1
152 . br
153 . tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
154 . nr PS -6
155 . nr VS -6
156 . lg
157 .ds _C "\\$1
158 . RT
159 . XS
160 . sp .5v
161 . B
162 .ie \\n(.$=1 \{\
163 Chapter \\*(SN \\$1
164 .\}
165 .el .if ,\\$2,no, \&\\$1
166 . XE
167 .EH "\\\\*(_E
168 .ie \\n(H1 .OH "\\\\*(_O
169 .el .OH "\\\\*(_o
170 .ds CF \\n(PN
171 .sp 4
172 .nr PP 0
173 ..
176 .\" Reset page Numbers, set page number format ($1) and move to a right page.
177 .de RN
178 .ie e .pn 1
179 .el \{
180 . pn 0
181 . bp
182 .\}
183 .ie \\n(.$=1 .af PN \\$1
184 .el .af PN 1
185 ..
188 .de H1
189 .br
190 .ne 7
191 .sp
192 . nr PS +2
193 . nr VS +2
194 .if '\\$2'no' .SH
195 .if \\n(.$=1 .NH 2
196 . lg 0
197 . tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
198 .if !'\\$2'no' \&\\*(SN
199 \\$1
200 . br
201 . tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
202 . nr PS -2
203 . nr VS -2
204 . lg
205 . RT
206 .if !'\\$2'no' \{\
207 .ds _S "\\$1
208 . XS
209 \\*(SN \\$1
210 . XE
211 .\}
212 .nr PP 0
213 ..
215 .de H2
216 .br
217 .ne 4
218 .if \\n(.$=1 .NH 3
219 \&\\*(SN
220 \\$1
221 .RT
222 .ds _S "\\$1
223 .XS
224 \\*(SN \\$1
225 .XE
226 .nr PP 0
227 ..
229 .de U2
230 .br
231 .ne 4
232 .SH
233 .if \\n(.$=1 .NH 3
234 \\$1
235 .RT
236 .nr PP 0
237 ..
239 .de P
240 .ie \\n(PP .PP
241 .el .LP
242 .nr PP 1
243 ..
245 .am IP
246 .nr PP 0
247 ..
249 .de BU
250 .IP \(bu
251 ..
253 .am QP
254 .ps -1
255 ..
257 .am DS
258 .ft CW
259 .ps -1
260 .ta T 8n
261 .nr PP 0
262 ..
264 .am FA
265 .ps 8
266 .vs 9
267 ..
269 .de Fn \" file name
270 .CW "\\$1" "\\$2
271 ..
272 .de Pn \" program name
273 .CW "\\$1" "\\$2
274 ..
275 .de Fu \" function
276 .CW "\\$1" "\\$2
277 ..
278 .de Ev \" env variable
279 .CW "\\$1" "\\$2
280 ..
281 .de Cl \" command line
282 `\c
283 .CW "\\$1" "'\\$2
284 ..
285 .de Sw \" switch
286 .CW "\\$1" "\\$2
287 ..
288 .de Mp \" man page
289 .I "\\$1" "\\$2
290 ..
291 .de Pe \" profile entry
292 .CW "\\$1" "\\$2
293 ..