Mercurial > docs > bib-ref1
comparison style @ 0:c264ce6f5b83
let's start with that
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Wed, 13 Nov 2013 08:15:58 +0100 |
parents | |
children | deedec7f31eb |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c264ce6f5b83 |
---|---|
1 .do xflag 3 | |
2 .de __ | |
3 .. | |
4 .blm __ \" ignore empty lines in input | |
5 .lc_ctype en_US.utf8 | |
6 .mediasize a4 | |
7 | |
8 .ig | |
9 .fp 1 R LinLibertine_R otf | |
10 .feature R +onum | |
11 .fp 2 I LinLibertine_RI otf | |
12 .feature I +onum | |
13 .fp 3 B LinLibertine_RB otf | |
14 .feature B +onum | |
15 .fp 4 BI LinLibertine_RBI otf | |
16 .feature BI +onum | |
17 .. | |
18 | |
19 .fp 1 R urw/bookman/ubkl8a pfb | |
20 .fp 2 I urw/bookman/ubkli8a pfb | |
21 .fp 3 B urw/bookman/ubkd8a pfb | |
22 .fp 4 BI urw/bookman/ubkdi8a pfb | |
23 | |
24 .fp 5 CW TerminusMedium-4.36 ttf | |
25 .fp 0 CI TerminusMediumItalic-4.36 ttf | |
26 .fp 0 CB TerminusBold-4.36 ttf | |
27 .fp 0 L TerminusMedium-4.36 ttf | |
28 .fp 0 U TerminusMedium-4.36 ttf | |
29 .ftr CW -\-`\`'\' | |
30 .ftr CI -\-`\`'\' | |
31 .ftr CB -\-`\`'\' | |
32 .ftr L -\-`\`'\' | |
33 .ftr U -\-`\`'\' | |
34 .fzoom U .9 | |
35 .ig | |
36 .fp 0 SC LinLibertine_R otf | |
37 .feature SC +onum +smcp | |
38 .fp 0 IC LinLibertine_RI otf | |
39 .feature IC +onum +smcp | |
40 .fp 0 BC LinLibertine_RB otf | |
41 .feature BC +onum +smcp | |
42 .. | |
43 .fp 0 SC urw/avantgar/uagk8a pfb | |
44 | |
45 .ss 12 0 \" the second (non-portable) argument requests french spacing | |
46 | |
47 .nr PI 4n | |
48 .nr PD .3v | |
49 .nr QI 2u*\n(PIu | |
50 .nr lu 0 | |
51 .af PN i | |
52 | |
53 .nr PS 12 | |
54 .nr VS 18 | |
55 | |
56 .ig | |
57 .ds _E '\\\\n(PN''\f(SCMarkus Schnalke: The Modern Mail Handler\fP' \" left | |
58 .ds _a '\f(SCAppendix \\\\n(H1\ \ \\\\*(_C\fP''\\\\n(PN' \" right | |
59 .ds _o '\f(SC\\\\*(_C\fP''\\\\n(PN' \" right | |
60 .. | |
61 .ds _O '\f(SCMarkus Schnalke: Die Anfaenge der digitalen Revolution''\\\\n(PN' \" right | |
62 .ds _E \\*(_O | |
63 .ds _o \\*(_O | |
64 .ds CH " | |
65 | |
66 .nr HM 2.5c | |
67 .nr FM 2.5c | |
68 .nr LL 15c | |
69 .ll 15c | |
70 .nr LT \n(LL | |
71 | |
72 . \" _M - change margins for text block on next page | |
73 .de _M | |
74 .\" .if t .if o .nr PO 5c | |
75 .\" .if t .if e .nr PO 3c | |
76 .nr PO 2.5c | |
77 .ds CF " | |
78 .. | |
79 .wh -1u _M | |
80 | |
81 . \" ZZ - enlarge or shorten the text block on the current | |
82 . \" page to avoid widows | |
83 . \" .ZZ -> enlarge by one line | |
84 . \" .ZZ +3 -> enlarge by three lines | |
85 . \" .ZZ -2 -> shorten by two lines | |
86 . \" .ZZ +1c -> enlarge by one centimeter | |
87 . \" .ZZ "" -> reset to the default | |
88 .de ZZ | |
89 .ie \\n(.$=0 .ch FO -\\n(FMu+1v | |
90 .el .ch FO -\\n(FMu\\$1 | |
91 .. | |
92 | |
93 . \" CW - Set text in CW font (similar to .B and .I) | |
94 .de CW | |
95 .nr PQ \\n(.f | |
96 .if t \{\ | |
97 . ft CW | |
98 . if !^\\$1^^ \&\\$1\f\\n(PQ\\$2 | |
99 .\} | |
100 .if n \{\ | |
101 . ie ^\\$1^^ .ul 999 | |
102 . el .ul 1 | |
103 . if \\n(.$=1 \&\\$1 | |
104 . if \\n(.$>1 \&\\$1\c | |
105 . if \\n(.$>1 \&\\$2 | |
106 .\} | |
107 .. | |
108 | |
109 . \" refer(1) stuff | |
110 .ds [. " [ | |
111 .ds .] ] | |
112 .rm ]< | |
113 .de ]< | |
114 . de FP | |
115 . IP \\\\$1 | |
116 \\.. | |
117 . rm FS FE | |
118 .. | |
119 | |
120 . \" PT - page top macro of ms | |
121 .am PT | |
122 . rs | |
123 .. | |
124 | |
125 | |
126 . \" RN - Reset PN and continue on an odd page ($1=number-format) | |
127 .de RN | |
128 .ie e .pn 1 | |
129 .el \{ | |
130 . pn 0 | |
131 . bp | |
132 .\} | |
133 .ie \\n(.$=1 .af PN \\$1 | |
134 .el .af PN 1 | |
135 .. | |
136 | |
137 | |
138 . \" T_ - Add TOC entry ($1=pre-space $2=indent-level $3=text) | |
139 .de T_ | |
140 .tm TOC____.sp \\$1 | |
141 .tm TOC____\&\\h'\\$2u*2u*\\n(PIu'\\$3\0\0\a\t\\n(PN\fR | |
142 .. | |
143 | |
144 . \" NH - redefine numbered heading | |
145 .de NH | |
146 .SH | |
147 .nr NS \\$1 | |
148 .if !\\n(.$ .nr NS 1 | |
149 .if !\\n(NS .nr NS 1 | |
150 .nr H\\n(NS +1 | |
151 .if \\n(NS<2 .nr H2 0 | |
152 .if \\n(NS<3 .nr H3 0 | |
153 .ds SN \\n(H1 | |
154 .if \\n(NS>1 .as SN \&.\\n(H2 | |
155 .if \\n(NS>2 .as SN \&.\\n(H3 | |
156 .. | |
157 | |
158 . \" H- - Chapter not numbered and not in TOC | |
159 .de H- | |
160 .EH " | |
161 .OH " | |
162 .bp | |
163 .\" .if e .rs \" move to an odd page | |
164 .\" .if e .bp | |
165 .lg 0 | |
166 .nr PS +6 | |
167 .nr VS +6 | |
168 .SH | |
169 .ce 1 | |
170 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | |
171 \&\\$1 | |
172 .br | |
173 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz | |
174 .nr PS -6 | |
175 .nr VS -6 | |
176 .lg | |
177 .EH "\\\\*(_E | |
178 .OH "\\\\*(_o | |
179 .\" .ds CF \\n(PN | |
180 .RT | |
181 .sp 4 | |
182 .nr PP 0 | |
183 .. | |
184 | |
185 . \" AP - Start the Appendix | |
186 .de AP | |
187 .nr _A 1 | |
188 .nr H1 0 | |
189 .af H1 A | |
190 .. | |
191 | |
192 . \" H0 - Chapter ($2=="no" -> not numbered) | |
193 .de H0 | |
194 .EH " | |
195 .OH " | |
196 .bp | |
197 .\" .if e .rs \" begin chapter on an odd page | |
198 .\" .if e .bp | |
199 .lg 0 | |
200 .nr PS +6 | |
201 .nr VS +6 | |
202 .ie ,\\$2,no, .SH | |
203 .el \{\ | |
204 . NH 1 | |
205 . ce 1 | |
206 .ie \\n(_A Appendix \\*(SN | |
207 .el Chapter \\*(SN | |
208 . sp .5 | |
209 .\} | |
210 .ce 1 | |
211 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | |
212 \&\\$1 | |
213 .br | |
214 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz | |
215 .nr PS -6 | |
216 .nr VS -6 | |
217 .lg | |
218 .\" add to TOC | |
219 .rm t_ | |
220 .if !,\\$2,no, .ds t_ \\Z'\\*(SN'\\h'3n' | |
221 .T_ .5v 0 "\fB\\*(t_\\$1 | |
222 .\" set page headers and footers | |
223 .EH "\\\\*(_E | |
224 .ds _C "\\$1 | |
225 .ie ,\\$2,no, .OH "\\\\*(_o | |
226 .el .ie \\n(_A .OH "\\\\*(_a | |
227 .el .OH "\\\\*(_O | |
228 .\" .ds CF \\n(PN | |
229 .RT | |
230 .sp 4 | |
231 .nr PP 0 | |
232 .. | |
233 | |
234 | |
235 . \" H1 - Section ($2=="no" -> not numbered) | |
236 .de H1 | |
237 .br | |
238 .ne 7 | |
239 .sp | |
240 .lg 0 | |
241 .nr PS +2 | |
242 .nr VS +2 | |
243 .ie '\\$2'no' .SH | |
244 .el .NH 2 | |
245 .if !'\\$2'no' \&\\*(SN | |
246 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | |
247 \&\\$1 | |
248 .br | |
249 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz | |
250 .nr PS -2 | |
251 .nr VS -2 | |
252 .lg | |
253 .if !'\\$2'no' .T_ .3v 1 "\\Z'\\*(SN'\\h'4n'\\$1 \" add to TOC | |
254 .RT | |
255 .nr PP 0 | |
256 .. | |
257 | |
258 . \" H2 - Subsection | |
259 .de H2 | |
260 .br | |
261 .ne 4 | |
262 .NH 3 | |
263 \&\\*(SN \\$1 | |
264 .T_ 0 2 "\\Z'\\*(SN'\\h'5.5n'\\$1 \" add to TOC | |
265 .RT | |
266 .nr PP 0 | |
267 .. | |
268 | |
269 . \" U1 - Section ($2=="yes" -> add to TOC) | |
270 .de U1 | |
271 .br | |
272 .ne 7 | |
273 .sp | |
274 .lg 0 | |
275 .nr PS +2 | |
276 .nr VS +2 | |
277 .SH | |
278 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | |
279 \&\\$1 | |
280 .br | |
281 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz | |
282 .nr PS -2 | |
283 .nr VS -2 | |
284 .lg | |
285 .T_ .3v 1 "\\$1 \" add to TOC | |
286 .RT | |
287 .nr PP 0 | |
288 .. | |
289 | |
290 | |
291 . \" U2 - Subsection unnumbered ($2=="yes" -> add to TOC) | |
292 .de U2 | |
293 .br | |
294 .ne 4 | |
295 .SH | |
296 \&\\$1 | |
297 .if '\\$2'yes' .T_ 0 2 "\\Z'\\*(SN'\\h'5.5n'\\$1 \" add to TOC | |
298 .RT | |
299 .nr PP 0 | |
300 .. | |
301 | |
302 . \" U3 - Subsubsection unnumbered | |
303 .de U3 | |
304 .br | |
305 .ne 4 | |
306 .RT | |
307 .sp | |
308 .I "\\$1 | |
309 .RT | |
310 .nr PP 0 | |
311 .. | |
312 | |
313 . \" P - Paragraph (indented unless following a heading) | |
314 .de P | |
315 .ie \\n(PP .PP | |
316 .el .LP | |
317 .nr PP 1 | |
318 .. | |
319 | |
320 .am LP | |
321 .nr PP 1 | |
322 .. | |
323 | |
324 | |
325 . \" LI - Numbered paragraph ``list item'' ($1=label) | |
326 .de LI | |
327 .ie \\n(.$ .IP "\\h'\\n(PIu'\\$1." 2u*\\n(PIu | |
328 .el .IP "\\h'\\n(PIu'\\(bu" 2u*\\n(PIu | |
329 .nr PP 1 | |
330 .. | |
331 .ig \" backup | |
332 .ie \\n(.$ .IP "\h'1n'\\$1" | |
333 .el .IP "\h'1.5n'\\(bu" | |
334 .. | |
335 | |
336 . \" BU - Bulleted paragraph | |
337 .de BU | |
338 .LI | |
339 .. | |
340 | |
341 . \" QS - Block quote start | |
342 .de QS | |
343 .ti \\n(.iu | |
344 .\"RT | |
345 .sp 2u*\\n(PDu | |
346 .ne 1.1 | |
347 .ps -1 | |
348 .vs -1 | |
349 .in +\\n(QIu | |
350 .ll -\\n(QIu | |
351 .ti \\n(.iu | |
352 .\"if \\n(Qp .ti +\\n(PIu | |
353 .\"nr QP 1 | |
354 .\"rr Qp | |
355 .. | |
356 | |
357 . \" QP - Block quote paragraph | |
358 .de QP | |
359 .sp \n(PDu | |
360 .ne 1.1 | |
361 .ti +\\n(PIu | |
362 .. | |
363 | |
364 . \" QP - Block quote end | |
365 .de QE | |
366 .sp \\n(PDu | |
367 .in -\\n(QIu | |
368 .ll +\\n(QIu | |
369 .ti \\n(.iu | |
370 .ps +1 | |
371 .vs +1 | |
372 .. | |
373 | |
374 . \" DS - Code display | |
375 .am DS | |
376 .ft CW | |
377 .ps -1 | |
378 .ta T 8n | |
379 .. | |
380 | |
381 . \" VS - verbatim text start (\\ -> ^G; ' -> disabled; . -> ^B) | |
382 .de VS | |
383 .br | |
384 .ne 3 | |
385 .sp \n(DDu | |
386 .di _V | |
387 .nf | |
388 .ft CW | |
389 .ps -.5 | |
390 .\" set up verbatim environment | |
391 \.blm | |
392 \.ec | |
393 \.c2 "" | |
394 \.cc | |
395 .. | |
396 | |
397 . \" VE - verbatim text end (NOTE: Needs to be called as ^BVE !) | |
398 .de VE | |
399 \" restore the special characters | |
400 cc | |
401 .c2 | |
402 .ec | |
403 .br | |
404 .di | |
405 .ne \\n(dnu+1v \" ensure enough space on the page | |
406 .in +2u*\\n(PIu | |
407 .ta T 8n | |
408 \.ec \" set up verbatim environment, once again | |
409 \.c2 "" | |
410 \.cc | |
411 _V \" output the verbatim content | |
412 \" restore the special characters | |
413 cc | |
414 .c2 | |
415 .ec | |
416 .blm __ | |
417 .in -2u*\\n(PIu | |
418 .sp \n(DDu | |
419 .ps +.5 | |
420 .ft P | |
421 .fi | |
422 .TA | |
423 .. | |
424 | |
425 . \" VF - verbatim text from file ($1=filename) | |
426 .de VF | |
427 .VS | |
428 so $1 | |
429 VE | |
430 .. | |
431 | |
432 .de Fn \" file name | |
433 .CW "\\$1" "\\$2 | |
434 .. | |
435 .de Pn \" program name | |
436 .CW "\\$1" "\\$2 | |
437 .. | |
438 .de Fu \" function | |
439 .CW "\\$1" "\\$2 | |
440 .. | |
441 .de Ev \" env variable | |
442 .CW "\\$1" "\\$2 | |
443 .. | |
444 .de Cl \" command line | |
445 `\c | |
446 .CW "\\$1" "'\\$2 | |
447 .. | |
448 .de Sw \" switch | |
449 .CW "\\$1" "\\$2 | |
450 .. | |
451 .de Ar \" argument | |
452 .CW "\f(CI\\$1" "\\$2 | |
453 .. | |
454 .de Mp \" man page | |
455 .I "\\$1" "\\$2 | |
456 .. | |
457 .de Pe \" profile entry | |
458 .CW "\\$1" "\\$2 | |
459 .. | |
460 .de Hd \" mail header field | |
461 .CW "\\$1:\&" "\\$2 | |
462 .. | |
463 | |
464 .de Ci \" commit hash ref | |
465 .ds _t \\$1 | |
466 .substring _t 0 6 | |
467 [\(rh\|\fL\\*(_t\fP]\\$2 | |
468 .. | |
469 | |
470 . \" Cf - reference within the document ($1=name of ref file) | |
471 .de Cf | |
472 \.if !\\nZ .so refs/\\$1 \c | |
473 \\$2 | |
474 .. | |
475 | |
476 . \" Id - put a referenceable marker here ($1=identifier) | |
477 .de Id | |
478 .tm REF____\\$1\t\\*(SN\t\\n(PN | |
479 .. |