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