docs/bib-ref1

view style @ 10:4be68fdedf15

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