docs/master

view style @ 77:0947c24dd4c6

style: Added .Cf for references within the document. I need to find out how to insert the correct section numbers.
author markus schnalke <meillo@marmaro.de>
date Tue, 05 Jun 2012 22:23:51 +0200
parents 0927d38589af
children f3c95ee96cc4
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 .ftr CW -\-
21 .ftr CI -\-
22 .ftr CB -\-
23 .ftr L -\-
24 .fp 0 SC LinLibertine_R otf
25 .feature SC +onum +smcp
26 .fp 0 IC LinLibertine_RI otf
27 .feature IC +onum +smcp
28 .fp 0 BC LinLibertine_RB otf
29 .feature BC +onum +smcp
31 .ig
32 . nr PS 11
33 . nr VS 13
34 . padj
35 ..
37 .nr PI 3n
38 .nr PD .3v
39 .nr lu 0
40 .af PN i
42 .ds _E '\\\\n(PN''\f(SCMarkus Schnalke: The Modern Mail Handler\fP' \" left
43 .ds _O '\f(SCChapter \\\\n(H1\ \ \\\\*(_C\fP''\\\\n(PN' \" right
44 .ds _o '\f(SC\\\\*(_C\fP''\\\\n(PN' \" right
45 .ds CH "
47 .nr HM 3.3c
48 .nr FM 6.6c
49 .nr LL 13c
50 .ll 13c
51 .nr LT \n(LL
52 .if t .nr PO 3.3c
54 .de _M \" change margins for text block on next page
55 .if t .if o .nr PO +(21c-\n(.lu-(2u*3.3c))c
56 .if t .if e .nr PO -(21c-\n(.lu-(2u*3.3c))c
57 .ds CF "
58 ..
59 .wh -1u _M
61 .de CW
62 .nr PQ \\n(.f
63 .if t \{\
64 . ft CW
65 . if !^\\$1^^ \&\\$1\f\\n(PQ\\$2
66 .\}
67 .if n \{\
68 . ie ^\\$1^^ .ul 999
69 . el .ul 1
70 . if \\n(.$=1 \&\\$1
71 . if \\n(.$>1 \&\\$1\c
72 . if \\n(.$>1 \&\\$2
73 .\}
74 ..
76 .ds [. " [
77 .ds .] ]
78 .rm ]<
79 .de ]<
80 . LP
81 . de FP
82 . IP \\\\$1.
83 \\..
84 . rm FS FE
85 ..
87 .am PT
88 . rs
89 ..
91 .rm NH
92 .de NH
93 .SH
94 .nr NS \\$1
95 .if !\\n(.$ .nr NS 1
96 .if !\\n(NS .nr NS 1
97 .nr H\\n(NS +1
98 .if \\n(NS<2 .nr H2 0
99 .if \\n(NS<3 .nr H3 0
100 .ds SN \\n(H1
101 .if \\n(NS>1 .as SN \&.\\n(H2
102 .if \\n(NS>2 .as SN \&.\\n(H3
103 ..
105 .de H-
106 .EH "
107 .OH "
108 .bp
109 .rs
110 .if e .bp
111 .lg 0
112 .nr PS +6
113 .nr VS +6
114 .SH
115 .ce 1
116 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
117 \&\\$1
118 .br
119 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
120 .nr PS -6
121 .nr VS -6
122 .lg
123 .RT
124 .if !,\\$2,no, \{
125 . EH "\\\\*(_E
126 . ie \\n(H1 .OH "\\\\*(_O
127 . el .OH "\\\\*(_o
128 . ds CF \\n(PN
129 .\}
130 .sp 4
131 .nr PP 0
132 ..
134 .de H0
135 .EH "
136 .OH "
137 .bp
138 .rs
139 .if e .bp
140 . lg 0
141 . nr PS +6
142 . nr VS +6
143 .ie \\n(.$=1 \{\
144 . NH 1
145 . ce 1
146 Chapter \\*(SN
147 . sp .5
148 .\}
149 .el .if ,\\$2,no, .SH
150 . ce 1
151 . tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
152 \&\\$1
153 . br
154 . tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
155 . nr PS -6
156 . nr VS -6
157 . lg
158 .ds _C "\\$1
159 . RT
160 . XS
161 . sp .5v
162 . B
163 .ie \\n(.$=1 \{\
164 \\*(SN \\$1
165 .\}
166 .el .if ,\\$2,no, \&\\$1
167 . XE
168 .EH "\\\\*(_E
169 .ie \\n(H1 .OH "\\\\*(_O
170 .el .OH "\\\\*(_o
171 .ds CF \\n(PN
172 .sp 4
173 .nr PP 0
174 ..
177 .\" Reset page Numbers, set page number format ($1) and move to a right page.
178 .de RN
179 .ie e .pn 1
180 .el \{
181 . pn 0
182 . bp
183 .\}
184 .ie \\n(.$=1 .af PN \\$1
185 .el .af PN 1
186 ..
189 .de H1
190 .br
191 .ne 7
192 .sp
193 . nr PS +2
194 . nr VS +2
195 .if '\\$2'no' .SH
196 .if \\n(.$=1 .NH 2
197 . lg 0
198 . tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
199 .if !'\\$2'no' \&\\*(SN
200 \\$1
201 . br
202 . tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
203 . nr PS -2
204 . nr VS -2
205 . lg
206 . RT
207 .if !'\\$2'no' \{\
208 .ds _S "\\$1
209 . XS
210 . sp .3v
211 \\*(SN \\$1
212 . XE
213 .\}
214 .nr PP 0
215 ..
217 .de H2
218 .br
219 .ne 4
220 .NH 3
221 \&\\*(SN
222 \\$1
223 .RT
224 .ds _S "\\$1
225 .XS
226 \\*(SN \\$1
227 .XE
228 .nr PP 0
229 ..
231 .de U2
232 .br
233 .ne 4
234 .SH
235 \\$1
236 .RT
237 .nr PP 0
238 ..
240 .de U3
241 .br
242 .ne 4
243 .RT
244 .sp
245 .I "\\$1
246 .RT
247 .nr PP 0
248 ..
250 .de P
251 .ie \\n(PP .PP
252 .el .LP
253 .nr PP 1
254 ..
256 .am IP
257 .nr PP 0
258 ..
260 .de BU
261 .IP \(bu
262 ..
264 .am QP
265 .ps -1
266 ..
268 .am DS
269 .ft CW
270 .ps -1
271 .ta T 8n
272 ..
274 .am FA
275 .ps 8
276 .vs 9
277 ..
279 .de Fn \" file name
280 .CW "\\$1" "\\$2
281 ..
282 .de Pn \" program name
283 .CW "\\$1" "\\$2
284 ..
285 .de Fu \" function
286 .CW "\\$1" "\\$2
287 ..
288 .de Ev \" env variable
289 .CW "\\$1" "\\$2
290 ..
291 .de Cl \" command line
292 `\c
293 .CW "\\$1" "'\\$2
294 ..
295 .de Sw \" switch
296 .CW "\\$1" "\\$2
297 ..
298 .de Mp \" man page
299 .I "\\$1" "\\$2
300 ..
301 .de Pe \" profile entry
302 .CW "\\$1" "\\$2
303 ..
305 .de Ci \" commit ref
306 .ds _t \\$1
307 .substring _t 0 6
308 [\(rh
309 .CW "\\*(_t" "]\\$2
310 ..
312 .de Cf \" cf. (ref within document)
313 (\(-> \\$1)\\$2
314 ..