docs/bib-ref2

view style @ 8:b1e8910f83b3

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