docs/bib-ref1

view style @ 23:aa84fb364794

Seitenzahlen korrigiert; Erklaerung hinzugefuegt
author markus schnalke <meillo@marmaro.de>
date Fri, 22 Nov 2013 10:34:41 +0100
parents 108e11233f6c
children 95f6412ff8f6
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 12
24 .nr VS 18
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
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 .br
156 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
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 .RT
166 .sp 4
167 .nr PP 0
168 ..
170 . \" AP - Start the Appendix
171 .de AP
172 .nr _A 1
173 .nr H1 0
174 .af H1 A
175 ..
177 . \" H0 - Chapter ($2=="no" -> not numbered)
178 .de H0
179 .\" bp
180 .\" .if e .rs \" begin chapter on an odd page
181 .\" .if e .bp
182 .sp
183 .lg 0
184 .nr PS +6
185 .nr VS +6
186 .ie ,\\$2,no, \{\
187 . SH
188 . ce 99
189 .\}
190 .el \{\
191 . NH 1
192 . ce 99
193 . ie \\n(_A Appendix \\*(SN
194 . el \\*(SN
195 .\}
196 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
197 \&\\$1
198 .br
199 .ce 0
200 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
201 .nr PS -6
202 .nr VS -6
203 .lg
204 .\" add to TOC
205 .rm t_
206 .if !,\\$2,no, .ds t_ \\Z'\\*(SN'\\h'3n'
207 .T_ .5v 0 "\fB\\*(t_\\$1
208 .RT
209 .sp 1.5
210 .ns
211 .nr PP 0
212 ..
215 . \" H1 - Section ($2=="no" -> not numbered)
216 .de H1
217 .br
218 .ne 7
219 .sp
220 .lg 0
221 .nr PS +2
222 .nr VS +2
223 .ie '\\$2'no' .SH
224 .el .NH 2
225 .if !'\\$2'no' \&\\*(SN
226 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
227 \&\\$1
228 .br
229 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
230 .nr PS -2
231 .nr VS -2
232 .lg
233 .if !'\\$2'no' .T_ .3v 1 "\\Z'\\*(SN'\\h'4n'\\$1 \" add to TOC
234 .RT
235 .nr PP 0
236 ..
238 . \" H2 - Subsection
239 .de H2
240 .br
241 .ne 4
242 .NH 3
243 \&\\*(SN \\$1
244 .T_ 0 2 "\\Z'\\*(SN'\\h'5.5n'\\$1 \" add to TOC
245 .RT
246 .nr PP 0
247 ..
249 . \" U1 - Section ($2=="yes" -> add to TOC)
250 .de U1
251 .br
252 .ne 7
253 .sp
254 .lg 0
255 .nr PS +2
256 .nr VS +2
257 .SH
258 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
259 \&\\$1
260 .br
261 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
262 .nr PS -2
263 .nr VS -2
264 .lg
265 .T_ .3v 1 "\\$1 \" add to TOC
266 .RT
267 .nr PP 0
268 ..
271 . \" U2 - Subsection unnumbered ($2=="yes" -> add to TOC)
272 .de U2
273 .br
274 .ne 4
275 .SH
276 \&\\$1
277 .if '\\$2'yes' .T_ 0 2 "\\Z'\\*(SN'\\h'5.5n'\\$1 \" add to TOC
278 .RT
279 .nr PP 0
280 ..
282 . \" U3 - Subsubsection unnumbered
283 .de U3
284 .br
285 .ne 4
286 .RT
287 .sp
288 .I "\\$1
289 .RT
290 .nr PP 0
291 ..
293 . \" P - Paragraph (indented unless following a heading)
294 .de P
295 .ie \\n(PP .PP
296 .el .LP
297 .nr PP 1
298 ..
300 .am LP
301 .nr PP 1
302 ..
305 . \" LI - Numbered paragraph ``list item'' ($1=label)
306 .de LI
307 .ie \\n(.$ .IP "\\h'\\n(PIu'\\$1." 2u*\\n(PIu
308 .el .IP "\\h'\\n(PIu'\\(bu" 2u*\\n(PIu
309 .nr PP 1
310 ..
311 .ig \" backup
312 .ie \\n(.$ .IP "\h'1n'\\$1"
313 .el .IP "\h'1.5n'\\(bu"
314 ..
316 . \" BU - Bulleted paragraph
317 .de BU
318 .LI
319 ..
321 . \" QS - Block quote start
322 .de QS
323 .ti \\n(.iu
324 .\"RT
325 .sp 2u*\\n(PDu
326 .ne 1.1
327 .ps -1
328 .vs -1
329 .in +\\n(QIu
330 .ll -\\n(QIu
331 .ti \\n(.iu
332 .\"if \\n(Qp .ti +\\n(PIu
333 .\"nr QP 1
334 .\"rr Qp
335 ..
337 . \" QP - Block quote paragraph
338 .de QP
339 .sp \n(PDu
340 .ne 1.1
341 .ti +\\n(PIu
342 ..
344 . \" QP - Block quote end
345 .de QE
346 .sp \\n(PDu
347 .in -\\n(QIu
348 .ll +\\n(QIu
349 .ti \\n(.iu
350 .ps +1
351 .vs +1
352 ..
354 . \" DS - Code display
355 .am DS
356 .ft CW
357 .ps -1
358 .ta T 8n
359 ..
361 . \" VS - verbatim text start (\\ -> ^G; ' -> disabled; . -> ^B)
362 .de VS
363 .br
364 .ne 3
365 .sp \n(DDu
366 .di _V
367 .nf
368 .ft CW
369 .ps -.5
370 .\" set up verbatim environment
371 \.blm
372 \.ec 
373 \.c2 ""
374 \.cc 
375 ..
377 . \" VE - verbatim text end (NOTE: Needs to be called as ^BVE !)
378 .de VE
379 \" restore the special characters
380 cc
381 .c2
382 .ec
383 .br
384 .di
385 .ne \\n(dnu+1v \" ensure enough space on the page
386 .in +2u*\\n(PIu
387 .ta T 8n
388 \.ec  \" set up verbatim environment, once again
389 \.c2 ""
390 \.cc 
391 _V \" output the verbatim content
392 \" restore the special characters
393 cc
394 .c2
395 .ec
396 .blm __
397 .in -2u*\\n(PIu
398 .sp \n(DDu
399 .ps +.5
400 .ft P
401 .fi
402 .TA
403 ..
405 . \" VF - verbatim text from file ($1=filename)
406 .de VF
407 .VS
408 so $1
409 VE
410 ..
412 .de Fn \" file name
413 .CW "\\$1" "\\$2
414 ..
415 .de Pn \" program name
416 .CW "\\$1" "\\$2
417 ..
418 .de Fu \" function
419 .CW "\\$1" "\\$2
420 ..
421 .de Ev \" env variable
422 .CW "\\$1" "\\$2
423 ..
424 .de Cl \" command line
425 `\c
426 .CW "\\$1" "'\\$2
427 ..
428 .de Sw \" switch
429 .CW "\\$1" "\\$2
430 ..
431 .de Ar \" argument
432 .CW "\f(CI\\$1" "\\$2
433 ..
434 .de Mp \" man page
435 .I "\\$1" "\\$2
436 ..
437 .de Pe \" profile entry
438 .CW "\\$1" "\\$2
439 ..
440 .de Hd \" mail header field
441 .CW "\\$1:\&" "\\$2
442 ..
444 .de Ci \" commit hash ref
445 .ds _t \\$1
446 .substring _t 0 6
447 [\(rh\|\fL\\*(_t\fP]\\$2
448 ..
450 . \" Cf - reference within the document ($1=name of ref file)
451 .de Cf
452 \.if !\\nZ .so refs/\\$1 \c
453 \\$2
454 ..
456 . \" Id - put a referenceable marker here ($1=identifier)
457 .de Id
458 .tm REF____\\$1\t\\*(SN\t\\n(PN
459 ..