docs/bib-ref1

view style @ 30:95f6412ff8f6

style: Ein paar Anpassungen
author markus schnalke <meillo@marmaro.de>
date Sat, 23 Nov 2013 23:08:22 +0100
parents aa84fb364794
children 4e271abbf18d
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
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 .br
183 .lg 0
184 .nr PS +4
185 .nr VS +4
186 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
187 .ie ,\\$2,no, \{\
188 . SH
189 . ce 99
190 \&\\$1
191 .\}
192 .el \{\
193 . NH 1
194 . ce 99
195 . ie \\n(_A Appendix \\*(SN. \\$1
196 . el \\*(SN. \\$1
197 .\}
198 .br
199 .ce 0
200 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
201 .nr PS -4
202 .nr VS -4
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 .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 .sp .5
252 .ne 7
253 .lg 0
254 .nr PS +2
255 .nr VS +2
256 .ns
257 .SH
258 \&\\$1
259 .br
260 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
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 .sp .5
274 .ne 4
275 .ns
276 .SH
277 \&\\$1
278 .if '\\$2'yes' .T_ 0 2 "\\Z'\\*(SN'\\h'5.5n'\\$1 \" add to TOC
279 .RT
280 .nr PP 0
281 ..
283 . \" U3 - Subsubsection unnumbered
284 .de U3
285 .br
286 .ne 4
287 .RT
288 .sp
289 .I "\\$1
290 .RT
291 .nr PP 0
292 ..
294 . \" P - Paragraph (indented unless following a heading)
295 .de P
296 .ie \\n(PP .PP
297 .el .LP
298 .nr PP 1
299 ..
301 .am LP
302 .nr PP 1
303 ..
306 . \" LI - Numbered paragraph ``list item'' ($1=label)
307 .de LI
308 .ie \\n(.$ .IP "\\h'\\n(PIu'\\$1." 2u*\\n(PIu
309 .el .IP "\\h'\\n(PIu'\\(bu" 2u*\\n(PIu
310 .nr PP 1
311 ..
312 .ig \" backup
313 .ie \\n(.$ .IP "\h'1n'\\$1"
314 .el .IP "\h'1.5n'\\(bu"
315 ..
317 . \" BU - Bulleted paragraph
318 .de BU
319 .LI
320 ..
322 . \" QS - Block quote start
323 .de QS
324 .ti \\n(.iu
325 .\"RT
326 .sp 2u*\\n(PDu
327 .ne 1.1
328 .ps -1
329 .vs -1
330 .in +\\n(QIu
331 .ll -\\n(QIu
332 .ti \\n(.iu
333 .\"if \\n(Qp .ti +\\n(PIu
334 .\"nr QP 1
335 .\"rr Qp
336 ..
338 . \" QP - Block quote paragraph
339 .de QP
340 .sp \n(PDu
341 .ne 1.1
342 .ti +\\n(PIu
343 ..
345 . \" QP - Block quote end
346 .de QE
347 .sp \\n(PDu
348 .in -\\n(QIu
349 .ll +\\n(QIu
350 .ti \\n(.iu
351 .ps +1
352 .vs +1
353 ..
355 . \" DS - Code display
356 .am DS
357 .ft CW
358 .ps -1
359 .ta T 8n
360 ..
362 . \" VS - verbatim text start (\\ -> ^G; ' -> disabled; . -> ^B)
363 .de VS
364 .br
365 .ne 3
366 .sp \n(DDu
367 .di _V
368 .nf
369 .ft CW
370 .ps -.5
371 .\" set up verbatim environment
372 \.blm
373 \.ec 
374 \.c2 ""
375 \.cc 
376 ..
378 . \" VE - verbatim text end (NOTE: Needs to be called as ^BVE !)
379 .de VE
380 \" restore the special characters
381 cc
382 .c2
383 .ec
384 .br
385 .di
386 .ne \\n(dnu+1v \" ensure enough space on the page
387 .in +2u*\\n(PIu
388 .ta T 8n
389 \.ec  \" set up verbatim environment, once again
390 \.c2 ""
391 \.cc 
392 _V \" output the verbatim content
393 \" restore the special characters
394 cc
395 .c2
396 .ec
397 .blm __
398 .in -2u*\\n(PIu
399 .sp \n(DDu
400 .ps +.5
401 .ft P
402 .fi
403 .TA
404 ..
406 . \" VF - verbatim text from file ($1=filename)
407 .de VF
408 .VS
409 so $1
410 VE
411 ..
413 .de Fn \" file name
414 .CW "\\$1" "\\$2
415 ..
416 .de Pn \" program name
417 .CW "\\$1" "\\$2
418 ..
419 .de Fu \" function
420 .CW "\\$1" "\\$2
421 ..
422 .de Ev \" env variable
423 .CW "\\$1" "\\$2
424 ..
425 .de Cl \" command line
426 `\c
427 .CW "\\$1" "'\\$2
428 ..
429 .de Sw \" switch
430 .CW "\\$1" "\\$2
431 ..
432 .de Ar \" argument
433 .CW "\f(CI\\$1" "\\$2
434 ..
435 .de Mp \" man page
436 .I "\\$1" "\\$2
437 ..
438 .de Pe \" profile entry
439 .CW "\\$1" "\\$2
440 ..
441 .de Hd \" mail header field
442 .CW "\\$1:\&" "\\$2
443 ..
445 .de Ci \" commit hash ref
446 .ds _t \\$1
447 .substring _t 0 6
448 [\(rh\|\fL\\*(_t\fP]\\$2
449 ..
451 . \" Cf - reference within the document ($1=name of ref file)
452 .de Cf
453 \.if !\\nZ .so refs/\\$1 \c
454 \\$2
455 ..
457 . \" Id - put a referenceable marker here ($1=identifier)
458 .de Id
459 .tm REF____\\$1\t\\*(SN\t\\n(PN
460 ..