Debian Codegraph @

texmf-dist/bibtex/bst/chembst/cv.bst

raw
1 %%
2 %% This is file `cv.bst',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% chembst.dtx (with options: `cv')
8 %%
9 %% *****
10 %%
11 %% IMPORTANT NOTICE:
12 %%
13 %% For the copyright see below.
14 %%
15 %% Any modified versions of this file must be renamed
16 %% with new filenames distinct from cv.bst.
17 %% For distribution of the original source see the terms
18 %% for copying and modification in the file chembst.dtx.
19 %%
20 %% This generated file may be distributed as long as the
21 %% original source files, as listed above, are part of the
22 %% same distribution. (The sources need not necessarily be
23 %% in the same archive or directory.)
24 %%
25 %% *****
26 %%
27 %% The preliminary version of this bibliographic style file has been created
28 %% using the `makebst' program. The original header included:
29 %%
30 %% Copyright 1994-2005 Patrick W Daly
31 %% ===============================================================
32 %% IMPORTANT NOTICE:
33 %% This bibliographic style (bst) file has been generated from one or
34 %% more master bibliographic style (mbs) files, listed above [merlin.mbs].
35 %%
36 %% This generated file can be redistributed and/or modified under the terms
37 %% of the LaTeX Project Public License Distributed from CTAN
38 %% archives in directory macros/latex/base/lppl.txt; either
39 %% version 1 of the License, or any later version.
40 %% ===============================================================
41 %%
42 %% *****
43 %%
44 %% File: chembst.dtx Copyright (C) 2008 Stephan Schenk
45 %% $Id: chembst.dtx,v 1.12 2008/09/17 19:07:16 schenk Exp $
46 %%
47 %% Stephan Schenk ([email protected])
48 %%
49 %% This program may be distributed and/or modified under the
50 %% conditions of the LaTeX Project Public License, either version 1.3
51 %% of this license or (at your option) any later version.
52 %% The latest version of this license is in
53 %% http://www.latex-project.org/lppl.txt
54 %%
55 %% *****
56 %%
57 %% This file is intended for use with:
58 %% a curriculum vitae
59 %%
60 ENTRY
61 {
62 address
63 author
64 booktitle
65 chapter
66 collaboration
67 description
68 edition
69 editor
70 eid
71 erratumeid
72 erratumgermanpages
73 erratumnumpages
74 erratumpages
75 erratumvolume
76 erratumyear
77 germanpages
78 howpublished
79 institution
80 journal
81 key
82 language
83 month
84 note
85 number
86 numpages
87 organization
88 pages
89 publisher
90 school
91 series
92 title
93 type
94 url
95 version
96 volume
97 year
98 }
99 {}
100 { label }
101 INTEGERS {
102 before.all
103 i
104 j
105 longest.label.width
106 mid.sentence
107 multiresult
108 nameptr
109 namesleft
110 new.sentence
111 number.label
112 numnames
113 o
114 output.state
115 }
116 STRINGS {
117 bibinfo
118 delimiter
119 longest.label
120 s
121 t
122 }
123 FUNCTION {bbl.and} { "\bbland{}" }
124 FUNCTION {bbl.chap} { "\bblchap{}" }
125 FUNCTION {bbl.chapter} { "\bblchapter{}" }
126 FUNCTION {bbl.edition} { "\bbledn{}" }
127 FUNCTION {bbl.editor} { "\bbled{}" }
128 FUNCTION {bbl.editors} { "\bbleds{}" }
129 FUNCTION {bbl.eidp} { "\bbleidp{}" }
130 FUNCTION {bbl.eidpp} { "\bbleidpp{}" }
131 FUNCTION {bbl.erratum} { "\bblerratum{}" }
132 FUNCTION {bbl.etal} { "\bbletal{}" }
133 FUNCTION {bbl.fifth} { "\bblfiftho{}" }
134 FUNCTION {bbl.first} { "\bblfirsto{}" }
135 FUNCTION {bbl.fourth} { "\bblfourtho{}" }
136 FUNCTION {bbl.in} { "\bblin{}" }
137 FUNCTION {bbl.mthesis} { "\bblmthesis{}" }
138 FUNCTION {bbl.nd} { "\bblnd{}" }
139 FUNCTION {bbl.nr} { "\bblno{}" }
140 FUNCTION {bbl.number} { "\bblno{}" }
141 FUNCTION {bbl.of} { "\bblof{}" }
142 FUNCTION {bbl.page}{ "\bblp{}" }
143 FUNCTION {bbl.pages} { "\bblpp{}" }
144 FUNCTION {bbl.phdthesis} { "\bblphdthesis{}" }
145 FUNCTION {bbl.rd} { "\bblrd{}" }
146 FUNCTION {bbl.second} { "\bblsecondo{}" }
147 FUNCTION {bbl.st} { "\bblst{}" }
148 FUNCTION {bbl.techrep} { "\bbltechrep{}" }
149 FUNCTION {bbl.th} { "\bblth{}" }
150 FUNCTION {bbl.third} { "\bblthirdo{}" }
151 FUNCTION {bbl.volume} { "\bblvol{}" }
152 MACRO {jan} {"\bbljan{}"}
153 MACRO {feb} {"\bblfeb{}"}
154 MACRO {mar} {"\bblmar{}"}
155 MACRO {apr} {"\bblapr{}"}
156 MACRO {may} {"\bblmay{}"}
157 MACRO {jun} {"\bbljun{}"}
158 MACRO {jul} {"\bbljul{}"}
159 MACRO {aug} {"\bblaug{}"}
160 MACRO {sep} {"\bblsep{}"}
161 MACRO {oct} {"\bbloct{}"}
162 MACRO {nov} {"\bblnov{}"}
163 MACRO {dec} {"\bbldec{}"}
164 FUNCTION {delimiter.blank} { " " }
165 FUNCTION {delimiter.colon} { ": " }
166 FUNCTION {delimiter.comma} { ", " }
167 FUNCTION {delimiter.semicolon} { "; " }
168 FUNCTION {delimiter.default}
169 {
170 delimiter.comma
171 }
172 FUNCTION {output.bibitem}
173 {
174 newline$
175 "\bibitem{" write$
176 cite$ write$
177 "}" write$
178 newline$
179 ""
180 before.all 'output.state :=
181 }
182 FUNCTION {output.internal}
183 {
184 'delimiter :=
185 duplicate$ empty$
186 'pop$
187 {
188 's :=
189 output.state mid.sentence =
190 {
191 delimiter *
192 write$
193 }
194 {
195 output.state before.all =
196 'write$
197 { add.period$ " " * write$ }
198 if$
199 mid.sentence 'output.state :=
200 }
201 if$
202 s
203 }
204 if$
205 }
206 FUNCTION {output.check.internal}
207 {
208 'delimiter :=
209 't :=
210 duplicate$ empty$
211 { pop$ "empty " t * " in " * cite$ * warning$ }
212 { delimiter output.internal }
213 if$
214 }
215 FUNCTION {output} { delimiter.default output.internal }
216 FUNCTION {output.blank} { delimiter.blank output.internal }
217 FUNCTION {output.comma} { delimiter.comma output.internal }
218 FUNCTION {output.semicolon} { delimiter.semicolon output.internal }
219 FUNCTION {output.check} { delimiter.default output.check.internal }
220 FUNCTION {output.check.blank} { delimiter.blank output.check.internal }
221 FUNCTION {output.check.comma} { delimiter.comma output.check.internal }
222 FUNCTION {output.check.semicolon} { delimiter.semicolon output.check.internal }
223 FUNCTION {not}
224 {
225 { #0 }
226 { #1 }
227 if$
228 }
229 FUNCTION {and}
230 {
231 'skip$
232 { pop$ #0 }
233 if$
234 }
235 FUNCTION {or}
236 {
237 { pop$ #1 }
238 'skip$
239 if$
240 }
241 FUNCTION {multiply}
242 {
243 'i :=
244 'j :=
245 #0
246 j #0 =
247 'skip$
248 {
249 { i }
250 {
251 j +
252 i #1 - 'i :=
253 }
254 while$
255 }
256 if$
257 }
258 FUNCTION {bibinfo.check}
259 {
260 duplicate$ missing$
261 { pop$ "" }
262 'skip$
263 if$
264 }
265 FUNCTION {bibinfo.warn}
266 {
267 swap$
268 duplicate$ missing$
269 {
270 swap$ "missing " swap$ * " in " * cite$ * warning$ pop$
271 ""
272 }
273 { duplicate$ empty$
274 {
275 swap$ "empty " swap$ * " in " * cite$ * warning$
276 }
277 { swap$
278 pop$
279 }
280 if$
281 }
282 if$
283 }
284 FUNCTION {bolden}
285 {
286 duplicate$ empty$
287 { pop$ "" }
288 { "\textbf{" swap$ * "}" * }
289 if$
290 }
291 FUNCTION {capitalize}
292 {
293 "\capitalize" swap$ *
294 }
295 FUNCTION {cat.internal}
296 {
297 'delimiter :=
298 duplicate$ empty$
299 'pop$
300 {
301 swap$
302 duplicate$ empty$
303 'skip$
304 { delimiter * }
305 if$
306 swap$
307 *
308 }
309 if$
310 }
311 FUNCTION {cat.blank} { delimiter.blank cat.internal }
312 FUNCTION {cat.colon} { delimiter.colon cat.internal }
313 FUNCTION {cat.comma} { delimiter.comma cat.internal }
314 FUNCTION {cat.default} { delimiter.default cat.internal }
315 FUNCTION {cat.semicolon} { delimiter.semicolon cat.internal }
316 FUNCTION {eng.ord}
317 {
318 duplicate$ "1" swap$ *
319 #-2 #1 substring$ "1" =
320 { bbl.th * }
321 { duplicate$ #-1 #1 substring$
322 duplicate$ "1" =
323 { pop$ bbl.st * }
324 { duplicate$ "2" =
325 { pop$ bbl.nd * }
326 { "3" =
327 { bbl.rd * }
328 { bbl.th * }
329 if$
330 }
331 if$
332 }
333 if$
334 }
335 if$
336 }
337 FUNCTION {is.num}
338 {
339 chr.to.int$
340 duplicate$ "0" chr.to.int$ < not
341 swap$ "9" chr.to.int$ > not and
342 }
343 FUNCTION {extract.num}
344 {
345 duplicate$ 't :=
346 "" 's :=
347 { t empty$ not }
348 {
349 t #1 #1 substring$
350 t #2 global.max$ substring$ 't :=
351 duplicate$ is.num
352 { s swap$ * 's := }
353 { pop$ "" 't := }
354 if$
355 }
356 while$
357 s empty$
358 'skip$
359 { pop$ s }
360 if$
361 }
362 FUNCTION {convert.edition}
363 {
364 extract.num "l" change.case$ 's :=
365 s "first" = s "1" = or
366 { bbl.first 't := }
367 { s "second" = s "2" = or
368 { bbl.second 't := }
369 { s "third" = s "3" = or
370 { bbl.third 't := }
371 { s "fourth" = s "4" = or
372 { bbl.fourth 't := }
373 { s "fifth" = s "5" = or
374 { bbl.fifth 't := }
375 { s #1 #1 substring$ is.num
376 { s eng.ord 't := }
377 { edition 't := }
378 if$
379 }
380 if$
381 }
382 if$
383 }
384 if$
385 }
386 if$
387 }
388 if$
389 t
390 }
391 FUNCTION {either.or.check}
392 {
393 empty$
394 'pop$
395 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
396 if$
397 }
398 FUNCTION {emphasize}
399 {
400 duplicate$ empty$
401 { pop$ "" }
402 { "\emph{" swap$ * "}" * }
403 if$
404 }
405 FUNCTION {fin.entry}
406 {
407 add.period$
408 write$ newline$
409 }
410 FUNCTION {format.names}
411 {
412 'bibinfo :=
413 duplicate$ empty$
414 'skip$
415 {
416 's :=
417 "" 't :=
418 #1 'nameptr :=
419 s num.names$ 'numnames :=
420 numnames 'namesleft :=
421 { namesleft #0 > }
422 {
423 s nameptr
424 "{f.~}{vv~}{ll}{, jj}"
425 format.name$
426 bibinfo.check
427 't :=
428 nameptr #1 >
429 {
430 numnames #0
431 >
432 nameptr #0
433 =
434 and
435 {
436 "others" 't :=
437 #1 'namesleft :=
438 }
439 'skip$
440 if$
441 delimiter.default *
442 namesleft #1 >
443 { t * }
444 {
445 s nameptr "{ll}" format.name$
446 duplicate$ "others" =
447 { 't := }
448 { pop$ }
449 if$
450 t "others" =
451 { bbl.etal * }
452 { t * }
453 if$
454 }
455 if$
456 }
457 't
458 if$
459 nameptr #1 + 'nameptr :=
460 namesleft #1 - 'namesleft :=
461 }
462 while$
463 }
464 if$
465 }
466 FUNCTION {get.bbl.editor}
467 {
468 editor num.names$ #1 >
469 'bbl.editors
470 'bbl.editor
471 if$
472 }
473 FUNCTION {get.bbl.erratum}
474 {
475 bbl.erratum
476 ":" *
477 }
478 FUNCTION {multi.page.check}
479 {
480 't :=
481 #0 'multiresult :=
482 {
483 multiresult not
484 t empty$ not and
485 }
486 { t #1 #1 substring$
487 duplicate$ "-" =
488 swap$ duplicate$ "," =
489 swap$ "+" =
490 or or
491 { #1 'multiresult := }
492 { t #2 global.max$ substring$ 't := }
493 if$
494 }
495 while$
496 multiresult
497 }
498 FUNCTION {get.bbl.page}
499 {
500 duplicate$ multi.page.check
501 { bbl.pages }
502 { bbl.page }
503 if$
504 "." *
505 }
506 FUNCTION {n.dashify}
507 {
508 't :=
509 ""
510 { t empty$ not }
511 {
512 t #1 #1 substring$ "-" =
513 {
514 t #1 #2 substring$ "--" = not
515 {
516 "--" *
517 t #2 global.max$ substring$ 't :=
518 }
519 {
520 { t #1 #1 substring$ "-" = }
521 {
522 "-" *
523 t #2 global.max$ substring$ 't :=
524 }
525 while$
526 }
527 if$
528 }
529 {
530 t #1 #1 substring$ *
531 t #2 global.max$ substring$ 't :=
532 }
533 if$
534 }
535 while$
536 }
537 FUNCTION {select.language}
538 {
539 duplicate$ empty$
540 'skip$
541 {
542 language empty$
543 'skip$
544 { "\foreignlanguage{" language * "}{" * swap$ * "}" * }
545 if$
546 }
547 if$
548 }
549 FUNCTION {space.word}
550 {
551 " " swap$ * " " *
552 }
553 FUNCTION {str.to.int.warn}
554 {
555 "str.to.int: '" swap$ * "' is not a valid integer" * warning$
556 }
557 FUNCTION {str.to.int}
558 {
559 duplicate$ empty$
560 {
561 str.to.int.warn
562 #0
563 }
564 {
565 duplicate$ 't :=
566 t #1 #1 substring$ "-" =
567 {
568 t #2 global.max$ substring$ 't :=
569 t empty$
570 {
571 duplicate$ str.to.int.warn
572 #0
573 }
574 { #-1 }
575 if$
576 }
577 { #1 }
578 if$
579 #1 'o :=
580 #0
581 { t empty$ not}
582 {
583 t #-1 #1 substring$
584 duplicate$ is.num
585 {
586 chr.to.int$ #48 -
587 o multiply
588 +
589 t #-2 global.max$ substring$ 't :=
590 o #10 multiply 'o :=
591 }
592 {
593 pop$ pop$
594 swap$ duplicate$ str.to.int.warn
595 swap$ #0
596 "" 't :=
597 }
598 if$
599 }
600 while$
601 multiply
602 swap$ pop$
603 }
604 if$
605 }
606 FUNCTION {tie.or.space.prefix}
607 {
608 duplicate$ text.length$ #3 <
609 { "~" }
610 { " " }
611 if$
612 swap$
613 }
614 FUNCTION {word.in}
615 {
616 bbl.in delimiter.blank *
617 }
618 FUNCTION {format.year.internal}
619 {
620 bolden
621 }
622 FUNCTION {format.volume.internal}
623 {
624 duplicate$ empty$
625 'skip$
626 {
627 bbl.volume
628 swap$
629 tie.or.space.prefix
630 * *
631 }
632 if$
633 }
634 FUNCTION {format.authors}
635 {
636 author "author" format.names
637 duplicate$ empty$
638 'skip$
639 {
640 collaboration bibinfo.check
641 duplicate$ empty$
642 'skip$
643 { " (" * swap$ * ")" * }
644 if$
645 *
646 }
647 if$
648 }
649 FUNCTION {format.booktitle}
650 {
651 booktitle bibinfo.check
652 emphasize
653 select.language
654 }
655 FUNCTION {format.chapter}
656 {
657 chapter bibinfo.check
658 duplicate$ empty$
659 'skip$
660 {
661 type bibinfo.check
662 duplicate$ empty$
663 { pop$ bbl.chapter }
664 { "l" change.case$ }
665 if$
666 swap$
667 tie.or.space.prefix
668 * *
669 }
670 if$
671 }
672 FUNCTION {format.date}
673 {
674 year bibinfo.check
675 format.year.internal
676 }
677 FUNCTION {format.edition}
678 {
679 edition bibinfo.check
680 duplicate$ empty$
681 'skip$
682 {
683 convert.edition
684 output.state mid.sentence =
685 { "l" }
686 { "t" }
687 if$ change.case$
688 " " * bbl.edition *
689 emphasize
690 }
691 if$
692 }
693 FUNCTION {format.editors}
694 {
695 editor "editor" format.names
696 duplicate$ empty$
697 'skip$
698 {
699 " " *
700 get.bbl.editor
701 capitalize
702 "(" swap$ * ")" *
703 *
704 }
705 if$
706 }
707 FUNCTION {format.in.booktitle}
708 {
709 format.booktitle
710 duplicate$ empty$
711 'skip$
712 {
713 word.in
714 swap$ *
715 }
716 if$
717 }
718 FUNCTION {format.note}
719 {
720 note bibinfo.check
721 }
722 FUNCTION {format.number.series}
723 {
724 volume bibinfo.check
725 duplicate$ empty$
726 {
727 number empty$
728 { series bibinfo.check }
729 {
730 series empty$
731 { number bibinfo.check }
732 {
733 output.state mid.sentence =
734 { bbl.number }
735 { bbl.number capitalize }
736 if$
737 number bibinfo.check tie.or.space.prefix * *
738 word.in *
739 series bibinfo.check *
740 }
741 if$
742 }
743 if$
744 }
745 'skip$
746 if$
747 }
748 FUNCTION {format.org.or.pub}
749 {
750 't :=
751 address empty$ t empty$ and
752 { "" }
753 {
754 t
755 address bibinfo.check
756 duplicate$ empty$
757 'pop$
758 {
759 cat.comma
760 }
761 if$
762 }
763 if$
764 }
765 FUNCTION {format.organization.address}
766 {
767 organization bibinfo.check
768 format.org.or.pub
769 }
770 FUNCTION {format.pages}
771 {
772 pages bibinfo.check
773 duplicate$ empty$
774 'skip$
775 {
776 n.dashify
777 get.bbl.page
778 swap$
779 tie.or.space.prefix *
780 *
781 }
782 if$
783 }
784 FUNCTION {format.publisher.address}
785 {
786 publisher "publisher" bibinfo.warn
787 format.org.or.pub
788 }
789 FUNCTION {format.thesis.type}
790 {
791 type
792 duplicate$ empty$
793 'pop$
794 {
795 swap$ pop$
796 "t" change.case$ bibinfo.check
797 }
798 if$
799 }
800 FUNCTION {format.title}
801 {
802 title bibinfo.check
803 duplicate$ empty$
804 'skip$
805 {
806 emphasize
807 select.language
808 }
809 if$
810 }
811 FUNCTION {format.tr.number}
812 {
813 number bibinfo.check
814 type
815 duplicate$ empty$
816 { pop$ bbl.techrep }
817 'skip$
818 if$
819 bibinfo.check
820 swap$
821 duplicate$ empty$
822 { pop$ "t" change.case$ }
823 { tie.or.space.prefix * * }
824 if$
825 }
826 FUNCTION {format.url}
827 {
828 url bibinfo.check
829 duplicate$ empty$
830 'skip$
831 {
832 "\urlprefix\url{" swap$ * "}" *
833 new.sentence 'output.state :=
834 }
835 if$
836 }
837 FUNCTION {format.volume}
838 {
839 volume bibinfo.check
840 format.volume.internal
841 }
842 FUNCTION {format.volume.and.series}
843 {
844 volume empty$ series empty$ or
845 { "" }
846 {
847 volume format.volume.internal
848 swap$ bbl.of space.word * swap$
849 emphasize
850 *
851 "volume and number" number either.or.check
852 }
853 if$
854 }
855 FUNCTION {format.volume.noseries}
856 {
857 series empty$
858 {
859 volume bibinfo.check
860 format.volume.internal
861 emphasize
862 }
863 { "" }
864 if$
865 }
866 FUNCTION {bibliography.cite}
867 {
868 "\bibliographycite{" swap$ * "}" *
869 }
870 FUNCTION {format.crossref}
871 {
872 bbl.in " " *
873 crossref bibliography.cite *
874 }
875 FUNCTION {format.article.cat.journal.year}
876 {
877 cat.blank
878 }
879 FUNCTION {format.article.year.internal}
880 {
881 }
882 FUNCTION {format.article.volume.internal}
883 {
884 emphasize
885 }
886 FUNCTION {format.article.germanpages.volume.internal}
887 {
888 duplicate$ empty$
889 'skip$
890 {
891 str.to.int
892 duplicate$ #1 <
893 {
894 pop$
895 "volume in " cite$ * " is not a positive integer value" * warning$
896 ""
897 }
898 {
899 #73 +
900 int.to.str$
901 format.article.volume.internal
902 }
903 if$
904 }
905 if$
906 }
907 FUNCTION {format.article.germanpages.pages.internal}
908 {
909 n.dashify
910 }
911 FUNCTION {format.article.date}
912 {
913 format.date
914 format.article.year.internal
915 }
916 FUNCTION {format.article.numpages}
917 {
918 duplicate$ empty$
919 'skip$
920 {
921 duplicate$ "1" =
922 { "~" * bbl.eidp * }
923 { "~" * bbl.eidpp * }
924 if$
925 "(" swap$ * ")" *
926 }
927 if$
928 }
929 FUNCTION {format.article.eid}
930 {
931 eid bibinfo.check
932 duplicate$ empty$
933 'pop$
934 {
935 cat.comma
936 numpages bibinfo.check
937 format.article.numpages
938 cat.blank
939 }
940 if$
941 }
942 FUNCTION {format.article.journal}
943 {
944 journal bibinfo.check
945 duplicate$ empty$
946 'skip$
947 { emphasize }
948 if$
949 }
950 FUNCTION {format.article.germanpages.journalname}
951 {
952 "Angew.\ Chem."
953 emphasize
954 }
955 FUNCTION {format.article.erratum.germanpages.pages}
956 {
957 erratumgermanpages bibinfo.check
958 format.article.germanpages.pages.internal
959 }
960 FUNCTION {format.article.erratum.year}
961 {
962 erratumyear bibinfo.check
963 format.year.internal
964 format.article.year.internal
965 }
966 FUNCTION {format.article.erratum.germanpages.volume}
967 {
968 erratumvolume "erratumvolume" bibinfo.warn
969 format.article.germanpages.volume.internal
970 }
971 FUNCTION {format.article.erratum.germanpages}
972 {
973 erratumgermanpages empty$
974 { "" }
975 {
976 format.article.germanpages.journalname
977 format.article.erratum.year format.article.cat.journal.year
978 format.article.erratum.germanpages.volume cat.comma
979 format.article.erratum.germanpages.pages cat.comma
980 }
981 if$
982 }
983 FUNCTION {format.article.erratum.journal} { format.article.journal }
984 FUNCTION {format.article.erratum.pages}
985 {
986 erratumpages bibinfo.check
987 n.dashify
988 }
989 FUNCTION {format.article.erratum.eid}
990 {
991 erratumeid bibinfo.check
992 erratumnumpages bibinfo.check format.article.numpages *
993 }
994 FUNCTION {format.article.erratum.volume}
995 {
996 erratumvolume bibinfo.check
997 format.article.volume.internal
998 }
999 FUNCTION {format.article.erratum}
1000 {
1001 erratumyear bibinfo.check empty$
1002 erratumvolume bibinfo.check empty$ and
1003 erratumpages bibinfo.check empty$ and
1004 erratumeid bibinfo.check empty$ and
1005 { "" }
1006 {
1007 get.bbl.erratum
1008 format.article.erratum.journal cat.blank
1009 format.article.erratum.year format.article.cat.journal.year
1010 format.article.erratum.volume cat.comma
1011 erratumeid empty$
1012 { format.article.erratum.pages }
1013 { format.article.erratum.eid }
1014 if$
1015 cat.comma
1016 format.article.erratum.germanpages cat.semicolon
1017 }
1018 if$
1019 }
1020 FUNCTION {format.article.germanpages.pages}
1021 {
1022 germanpages bibinfo.check
1023 format.article.germanpages.pages.internal
1024 }
1025 FUNCTION {format.article.germanpages.volume}
1026 {
1027 volume "volume" bibinfo.warn
1028 format.article.germanpages.volume.internal
1029 }
1030 FUNCTION {format.article.germanpages.year} { format.article.date }
1031 FUNCTION {format.article.germanpages}
1032 {
1033 germanpages empty$
1034 { "" }
1035 {
1036 format.article.germanpages.journalname
1037 format.article.germanpages.year format.article.cat.journal.year
1038 format.article.germanpages.volume cat.comma
1039 format.article.germanpages.pages cat.comma
1040 }
1041 if$
1042 }
1043 FUNCTION {format.article.pages}
1044 {
1045 pages
1046 duplicate$ empty$
1047 'pop$
1048 {
1049 swap$
1050 duplicate$ empty$
1051 { pop$ pop$ format.pages }
1052 {
1053 swap$
1054 n.dashify
1055 cat.comma
1056 }
1057 if$
1058 }
1059 if$
1060 }
1061 FUNCTION {format.article.title}
1062 {
1063 title bibinfo.check
1064 duplicate$ empty$
1065 'skip$
1066 {
1067 new.sentence 'output.state :=
1068 }
1069 if$
1070 }
1071 FUNCTION {format.article.volume.and.number}
1072 {
1073 volume bibinfo.check
1074 duplicate$ empty$
1075 'skip$
1076 { bibinfo.check }
1077 if$
1078 format.article.volume.internal
1079 }
1080 FUNCTION {format.book.authors}
1081 {
1082 author empty$
1083 { format.editors }
1084 {
1085 format.authors
1086 "author and editor" editor either.or.check
1087 }
1088 if$
1089 }
1090 FUNCTION {format.book.editors}
1091 {
1092 author empty$
1093 { "" }
1094 { format.editors }
1095 if$
1096 }
1097 FUNCTION {format.book.volume.internal}
1098 {
1099 volume bibinfo.check
1100 duplicate$ empty$
1101 'skip$
1102 {
1103 tie.or.space.prefix *
1104 bbl.volume swap$ *
1105 }
1106 if$
1107 }
1108 FUNCTION {format.book.volume.and.series}
1109 {
1110 series bibinfo.check
1111 duplicate$ empty$
1112 'skip$
1113 {
1114 emphasize
1115 format.book.volume.internal
1116 bbl.of space.word *
1117 swap$ *
1118 }
1119 if$
1120 }
1121 FUNCTION {format.book.volume.noseries}
1122 {
1123 series empty$ not
1124 { "" }
1125 {
1126 format.book.volume.internal
1127 emphasize
1128 }
1129 if$
1130 }
1131 FUNCTION {misc.empty.check}
1132 {
1133 author empty$ title empty$ howpublished empty$
1134 month empty$ year empty$ note empty$ url empty$
1135 and and and and and and
1136 { "all relevant fields are empty in " cite$ * warning$ }
1137 'skip$
1138 if$
1139 }
1140 FUNCTION {format.program.description}
1141 {
1142 description bibinfo.check
1143 duplicate$ empty$
1144 'skip$
1145 { select.language }
1146 if$
1147 }
1148 FUNCTION {format.program.publisher.address}
1149 {
1150 publisher bibinfo.check
1151 format.org.or.pub
1152 }
1153 FUNCTION {format.program.title}
1154 {
1155 title "title" bibinfo.warn
1156 duplicate$ empty$
1157 'skip$
1158 {
1159 "t" change.case$
1160 " " swap$ *
1161 capitalize
1162 emphasize
1163 }
1164 if$
1165 }
1166 FUNCTION {format.program.version}
1167 {
1168 version
1169 }
1170 FUNCTION {article}
1171 {
1172 output.bibitem
1173 format.authors "author"
1174 output.check
1175 format.article.title "title" output.check
1176 new.sentence 'output.state :=
1177 format.article.journal "journal"
1178 output.check
1179 format.article.date "year"
1180 output.check.blank
1181 format.article.volume.and.number output.comma
1182 eid empty$
1183 { format.article.pages }
1184 { format.article.eid }
1185 if$
1186 format.article.germanpages output.semicolon
1187 format.article.erratum output.semicolon
1188 format.note output
1189 fin.entry
1190 }
1191 FUNCTION {book}
1192 {
1193 output.bibitem
1194 format.book.authors "author and editor" output.check
1195 format.title "title"
1196 output.check.comma
1197 format.edition
1198 output.blank
1199 format.book.volume.and.series output
1200 format.book.volume.noseries output
1201 format.book.editors output.comma
1202 format.publisher.address output
1203 format.date "year" output.check.comma
1204 format.note output
1205 fin.entry
1206 }
1207 FUNCTION {booklet}
1208 {
1209 output.bibitem
1210 format.authors output
1211 format.title "title" output.check
1212 howpublished bibinfo.check output
1213 address bibinfo.check output
1214 format.date output
1215 format.note output
1216 fin.entry
1217 }
1218 FUNCTION {inbook}
1219 {
1220 output.bibitem
1221 format.book.authors "author and editor" output.check
1222 crossref missing$
1223 {
1224 format.title "title"
1225 output.check.comma
1226 format.edition
1227 output.blank
1228 format.book.volume.and.series output
1229 format.book.volume.noseries output
1230 format.book.editors output.comma
1231 format.publisher.address output
1232 format.date "year" output.check.comma
1233 ""
1234 }
1235 {
1236 format.crossref output.blank
1237 ""
1238 }
1239 if$
1240 format.chapter cat.comma
1241 format.pages cat.comma
1242 output
1243 format.note output
1244 fin.entry
1245 }
1246 FUNCTION {incollection}
1247 {
1248 output.bibitem
1249 format.authors "author" output.check
1250 format.title "title" output.check
1251 crossref missing$
1252 {
1253 format.in.booktitle "booktitle" output.check.blank
1254 format.edition
1255 output.blank
1256 format.book.volume.and.series output
1257 format.book.volume.noseries output
1258 format.book.editors output.comma
1259 format.publisher.address output
1260 format.date "year" output.check.comma
1261 ""
1262 }
1263 {
1264 format.crossref output.blank
1265 ""
1266 }
1267 if$
1268 format.chapter cat.comma
1269 format.pages cat.comma
1270 output
1271 format.note output
1272 fin.entry
1273 }
1274 FUNCTION {inproceedings}
1275 {
1276 output.bibitem
1277 format.authors "author" output.check
1278 format.title "title" output.check
1279 crossref missing$
1280 {
1281 format.in.booktitle "booktitle" output.check.blank
1282 publisher empty$
1283 { format.organization.address output }
1284 {
1285 organization bibinfo.check output
1286 format.publisher.address output
1287 }
1288 if$
1289 format.book.volume.and.series output
1290 }
1291 { format.crossref output.blank }
1292 if$
1293 format.pages "pages" output.check
1294 format.note output
1295 format.url output
1296 fin.entry
1297 }
1298 FUNCTION {manual}
1299 {
1300 output.bibitem
1301 author empty$
1302 {
1303 organization bibinfo.check
1304 duplicate$ empty$
1305 'pop$
1306 {
1307 output
1308 address bibinfo.check output
1309 }
1310 if$
1311 }
1312 { format.authors output }
1313 if$
1314 format.title "title" output.check
1315 author empty$
1316 {
1317 organization empty$
1318 { address bibinfo.check output }
1319 'skip$
1320 if$
1321 }
1322 {
1323 organization bibinfo.check output
1324 address bibinfo.check output
1325 }
1326 if$
1327 format.edition output
1328 format.date output
1329 format.note output
1330 format.url output
1331 fin.entry
1332 }
1333 FUNCTION {mastersthesis}
1334 {
1335 output.bibitem
1336 format.authors "author" output.check
1337 bbl.mthesis format.thesis.type output
1338 school "school" bibinfo.warn output
1339 address bibinfo.check output
1340 format.date "year" output.check
1341 format.note output
1342 format.url output
1343 fin.entry
1344 }
1345 FUNCTION {misc}
1346 {
1347 output.bibitem
1348 format.authors output
1349 format.title output
1350 howpublished bibinfo.check output
1351 format.date output
1352 format.note output
1353 format.url output
1354 fin.entry
1355 misc.empty.check
1356 }
1357 FUNCTION {phdthesis}
1358 {
1359 output.bibitem
1360 format.authors "author" output.check
1361 format.title "title" output.check
1362 bbl.phdthesis format.thesis.type output
1363 school "school" bibinfo.warn output
1364 address bibinfo.check output
1365 format.date "year" output.check
1366 format.note output
1367 format.url output
1368 fin.entry
1369 }
1370 FUNCTION {proceedings}
1371 {
1372 output.bibitem
1373 editor empty$
1374 { organization bibinfo.check output }
1375 { format.editors output }
1376 if$
1377 format.title "title" output.check
1378 format.volume output
1379 format.number.series output
1380 editor empty$
1381 {
1382 publisher empty$
1383 'skip$
1384 { format.publisher.address output }
1385 if$
1386 }
1387 {
1388 publisher empty$
1389 { format.organization.address output }
1390 {
1391 organization bibinfo.check output
1392 format.publisher.address output
1393 }
1394 if$
1395 }
1396 if$
1397 format.date "year" output.check
1398 format.note output
1399 format.url output
1400 fin.entry
1401 }
1402 FUNCTION {program}
1403 {
1404 output.bibitem
1405 format.authors output
1406 format.program.title "title"
1407 output.check
1408 format.program.description output.comma
1409 format.program.version output
1410 format.date output
1411 format.program.publisher.address output
1412 format.note output
1413 format.url output
1414 fin.entry
1415 }
1416 FUNCTION {techreport}
1417 {
1418 output.bibitem
1419 format.authors "author" output.check
1420 format.title
1421 "title" output.check
1422 format.tr.number output
1423 institution "institution" bibinfo.warn output
1424 address bibinfo.check output
1425 format.date "year" output.check
1426 format.note output
1427 format.url output
1428 fin.entry
1429 }
1430 FUNCTION {unpublished}
1431 {
1432 output.bibitem
1433 format.authors "author" output.check
1434 format.title "title" output
1435 format.date output
1436 format.note "note" output.check
1437 format.url output
1438 fin.entry
1439 }
1440 FUNCTION {conference} { inproceedings }
1441 FUNCTION {default.type} { misc }
1442 FUNCTION {begin.bib}
1443 {
1444 "\begin{thebibliography}{" longest.label * "}" * write$ newline$
1445 }
1446 FUNCTION {end.bib}
1447 {
1448 newline$
1449 "\end{thebibliography}" write$ newline$
1450 }
1451 FUNCTION {initialize.longest.label}
1452 {
1453 "" 'longest.label :=
1454 #1 'number.label :=
1455 #0 'longest.label.width :=
1456 }
1457 FUNCTION {init.consts}
1458 {
1459 #0 'before.all :=
1460 #1 'mid.sentence :=
1461 #2 'new.sentence :=
1462 }
1463 FUNCTION {longest.label.pass}
1464 {
1465 number.label int.to.str$ 'label :=
1466 number.label #1 + 'number.label :=
1467 label width$ longest.label.width >
1468 {
1469 label 'longest.label :=
1470 label width$ 'longest.label.width :=
1471 }
1472 'skip$
1473 if$
1474 }
1475 FUNCTION {write.babel.misc}
1476 {
1477 "\providecommand{\bbland}{and}" write$ newline$
1478 "\providecommand{\bblchap}{chap.}" write$ newline$
1479 "\providecommand{\bblchapter}{chapter}" write$ newline$
1480 "\providecommand{\bbletal}{et~al.}" write$ newline$
1481 "\providecommand{\bbleditors}{editors}" write$ newline$
1482 "\providecommand{\bbleds}{eds.}" write$ newline$
1483 "\providecommand{\bbleditor}{editor}" write$ newline$
1484 "\providecommand{\bbled}{ed.}" write$ newline$
1485 "\providecommand{\bbledition}{edition}" write$ newline$
1486 "\providecommand{\bbledn}{ed.}" write$ newline$
1487 "\providecommand{\bbleidp}{page}" write$ newline$
1488 "\providecommand{\bbleidpp}{pages}" write$ newline$
1489 "\providecommand{\bblerratum}{erratum}" write$ newline$
1490 "\providecommand{\bblin}{in}" write$ newline$
1491 "\providecommand{\bblmthesis}{Master's thesis}" write$ newline$
1492 "\providecommand{\bblno}{no.}" write$ newline$
1493 "\providecommand{\bblnumber}{number}" write$ newline$
1494 "\providecommand{\bblof}{of}" write$ newline$
1495 "\providecommand{\bblpage}{page}" write$ newline$
1496 "\providecommand{\bblpages}{pages}" write$ newline$
1497 "\providecommand{\bblp}{p}" write$ newline$
1498 "\providecommand{\bblphdthesis}{Ph.D. thesis}" write$ newline$
1499 "\providecommand{\bblpp}{pp}" write$ newline$
1500 "\providecommand{\bbltechrep}{Tech. Rep.}" write$ newline$
1501 "\providecommand{\bbltechreport}{Technical Report}" write$ newline$
1502 "\providecommand{\bblvolume}{volume}" write$ newline$
1503 "\providecommand{\bblvol}{Vol.}" write$ newline$
1504 }
1505 FUNCTION {write.babel.months}
1506 {
1507 "\providecommand{\bbljan}{January}" write$ newline$
1508 "\providecommand{\bblfeb}{February}" write$ newline$
1509 "\providecommand{\bblmar}{March}" write$ newline$
1510 "\providecommand{\bblapr}{April}" write$ newline$
1511 "\providecommand{\bblmay}{May}" write$ newline$
1512 "\providecommand{\bbljun}{June}" write$ newline$
1513 "\providecommand{\bbljul}{July}" write$ newline$
1514 "\providecommand{\bblaug}{August}" write$ newline$
1515 "\providecommand{\bblsep}{September}" write$ newline$
1516 "\providecommand{\bbloct}{October}" write$ newline$
1517 "\providecommand{\bblnov}{November}" write$ newline$
1518 "\providecommand{\bbldec}{December}" write$ newline$
1519 }
1520 FUNCTION {write.babel.ordinals}
1521 {
1522 "\providecommand{\bblfirst}{First}" write$ newline$
1523 "\providecommand{\bblfirsto}{1st}" write$ newline$
1524 "\providecommand{\bblsecond}{Second}" write$ newline$
1525 "\providecommand{\bblsecondo}{2nd}" write$ newline$
1526 "\providecommand{\bblthird}{Third}" write$ newline$
1527 "\providecommand{\bblthirdo}{3rd}" write$ newline$
1528 "\providecommand{\bblfourth}{Fourth}" write$ newline$
1529 "\providecommand{\bblfourtho}{4th}" write$ newline$
1530 "\providecommand{\bblfifth}{Fifth}" write$ newline$
1531 "\providecommand{\bblfiftho}{5th}" write$ newline$
1532 "\providecommand{\bblst}{st}" write$ newline$
1533 "\providecommand{\bblnd}{nd}" write$ newline$
1534 "\providecommand{\bblrd}{rd}" write$ newline$
1535 "\providecommand{\bblth}{th}" write$ newline$
1536 }
1537 FUNCTION {write.babel}
1538 {
1539 write.babel.misc
1540 write.babel.months
1541 write.babel.ordinals
1542 }
1543 FUNCTION {write.commands}
1544 {
1545 "\providecommand{\url}[1]{\texttt{#1}}" write$ newline$
1546 "\providecommand{\urlprefix}{}" write$ newline$
1547 "\providecommand{\foreignlanguage}[2]{#2}" write$ newline$
1548 "\providecommand{\Capitalize}[1]{\uppercase{#1}}" write$ newline$
1549 "\providecommand{\capitalize}[1]{\expandafter\Capitalize#1}" write$ newline$
1550 "\providecommand{\bibliographycite}[1]{\cite{#1}}" write$ newline$
1551 write.babel
1552 }
1553 FUNCTION {write.header}
1554 {
1555 preamble$ empty$
1556 'skip$
1557 { preamble$ write$ newline$ }
1558 if$
1559 write.commands
1560 }
1561 READ
1562 EXECUTE {initialize.longest.label}
1563 ITERATE {longest.label.pass}
1564 EXECUTE {init.consts}
1565 EXECUTE {write.header}
1566 EXECUTE {begin.bib}
1567 ITERATE {call.type$}
1568 EXECUTE {end.bib}