Debian Codegraph @

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

raw
1 %%
2 %% This is file `ChemEurJ.bst',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% chembst.dtx (with options: `ChemEurJ')
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 ChemEurJ.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 %% Chem.-Eur. J.
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 }
937 if$
938 }
939 FUNCTION {format.article.journal}
940 {
941 journal bibinfo.check
942 duplicate$ empty$
943 'skip$
944 { emphasize }
945 if$
946 }
947 FUNCTION {format.article.germanpages.journalname}
948 {
949 "Angew.\ Chem."
950 emphasize
951 }
952 FUNCTION {format.article.erratum.germanpages.pages}
953 {
954 erratumgermanpages bibinfo.check
955 format.article.germanpages.pages.internal
956 }
957 FUNCTION {format.article.erratum.year}
958 {
959 erratumyear bibinfo.check
960 format.year.internal
961 format.article.year.internal
962 }
963 FUNCTION {format.article.erratum.germanpages.volume}
964 {
965 erratumvolume "erratumvolume" bibinfo.warn
966 format.article.germanpages.volume.internal
967 }
968 FUNCTION {format.article.erratum.germanpages}
969 {
970 erratumgermanpages empty$
971 { "" }
972 {
973 format.article.germanpages.journalname
974 format.article.erratum.year format.article.cat.journal.year
975 format.article.erratum.germanpages.volume cat.comma
976 format.article.erratum.germanpages.pages cat.comma
977 }
978 if$
979 }
980 FUNCTION {format.article.erratum.journal} { format.article.journal }
981 FUNCTION {format.article.erratum.pages}
982 {
983 erratumpages bibinfo.check
984 n.dashify
985 }
986 FUNCTION {format.article.erratum.eid}
987 {
988 erratumeid bibinfo.check
989 erratumnumpages bibinfo.check format.article.numpages *
990 }
991 FUNCTION {format.article.erratum.volume}
992 {
993 erratumvolume bibinfo.check
994 format.article.volume.internal
995 }
996 FUNCTION {format.article.erratum}
997 {
998 erratumyear bibinfo.check empty$
999 erratumvolume bibinfo.check empty$ and
1000 erratumpages bibinfo.check empty$ and
1001 erratumeid bibinfo.check empty$ and
1002 { "" }
1003 {
1004 get.bbl.erratum
1005 format.article.erratum.journal cat.blank
1006 format.article.erratum.year format.article.cat.journal.year
1007 format.article.erratum.volume cat.comma
1008 erratumeid empty$
1009 { format.article.erratum.pages }
1010 { format.article.erratum.eid }
1011 if$
1012 cat.comma
1013 format.article.erratum.germanpages cat.semicolon
1014 }
1015 if$
1016 }
1017 FUNCTION {format.article.germanpages.pages}
1018 {
1019 germanpages bibinfo.check
1020 format.article.germanpages.pages.internal
1021 }
1022 FUNCTION {format.article.germanpages.volume}
1023 {
1024 volume "volume" bibinfo.warn
1025 format.article.germanpages.volume.internal
1026 }
1027 FUNCTION {format.article.germanpages.year} { format.article.date }
1028 FUNCTION {format.article.germanpages}
1029 {
1030 germanpages empty$
1031 { "" }
1032 {
1033 format.article.germanpages.journalname
1034 format.article.germanpages.year format.article.cat.journal.year
1035 format.article.germanpages.volume cat.comma
1036 format.article.germanpages.pages cat.comma
1037 }
1038 if$
1039 }
1040 FUNCTION {format.article.pages}
1041 {
1042 pages
1043 duplicate$ empty$
1044 'pop$
1045 {
1046 swap$
1047 duplicate$ empty$
1048 { pop$ pop$ format.pages }
1049 {
1050 swap$
1051 n.dashify
1052 cat.comma
1053 }
1054 if$
1055 }
1056 if$
1057 }
1058 FUNCTION {format.article.title}
1059 {
1060 title bibinfo.check
1061 duplicate$ empty$
1062 'skip$
1063 {
1064 new.sentence 'output.state :=
1065 }
1066 if$
1067 }
1068 FUNCTION {format.article.volume.and.number}
1069 {
1070 volume bibinfo.check
1071 duplicate$ empty$
1072 'skip$
1073 { bibinfo.check }
1074 if$
1075 format.article.volume.internal
1076 }
1077 FUNCTION {format.book.authors}
1078 {
1079 author empty$
1080 { format.editors }
1081 {
1082 format.authors
1083 "author and editor" editor either.or.check
1084 }
1085 if$
1086 }
1087 FUNCTION {format.book.editors}
1088 {
1089 author empty$
1090 { "" }
1091 { format.editors }
1092 if$
1093 }
1094 FUNCTION {format.book.volume.internal}
1095 {
1096 volume bibinfo.check
1097 duplicate$ empty$
1098 'skip$
1099 {
1100 tie.or.space.prefix *
1101 bbl.volume swap$ *
1102 }
1103 if$
1104 }
1105 FUNCTION {format.book.volume.and.series}
1106 {
1107 series bibinfo.check
1108 duplicate$ empty$
1109 'skip$
1110 {
1111 emphasize
1112 format.book.volume.internal
1113 bbl.of space.word *
1114 swap$ *
1115 }
1116 if$
1117 }
1118 FUNCTION {format.book.volume.noseries}
1119 {
1120 series empty$ not
1121 { "" }
1122 {
1123 format.book.volume.internal
1124 emphasize
1125 }
1126 if$
1127 }
1128 FUNCTION {misc.empty.check}
1129 {
1130 author empty$ title empty$ howpublished empty$
1131 month empty$ year empty$ note empty$ url empty$
1132 and and and and and and
1133 { "all relevant fields are empty in " cite$ * warning$ }
1134 'skip$
1135 if$
1136 }
1137 FUNCTION {format.program.description}
1138 {
1139 description bibinfo.check
1140 duplicate$ empty$
1141 'skip$
1142 { select.language }
1143 if$
1144 }
1145 FUNCTION {format.program.publisher.address}
1146 {
1147 publisher bibinfo.check
1148 format.org.or.pub
1149 }
1150 FUNCTION {format.program.title}
1151 {
1152 title "title" bibinfo.warn
1153 duplicate$ empty$
1154 'skip$
1155 {
1156 "t" change.case$
1157 " " swap$ *
1158 capitalize
1159 emphasize
1160 }
1161 if$
1162 }
1163 FUNCTION {format.program.version}
1164 {
1165 version
1166 }
1167 FUNCTION {article}
1168 {
1169 output.bibitem
1170 format.authors "author"
1171 output.check
1172 format.article.journal "journal"
1173 output.check
1174 format.article.date "year"
1175 output.check.blank
1176 format.article.volume.and.number output.comma
1177 eid empty$
1178 { format.article.pages }
1179 { format.article.eid }
1180 if$
1181 format.article.germanpages output.semicolon
1182 format.article.erratum output.semicolon
1183 format.note output
1184 fin.entry
1185 }
1186 FUNCTION {book}
1187 {
1188 output.bibitem
1189 format.book.authors "author and editor" output.check
1190 format.title "title"
1191 output.check.comma
1192 format.edition
1193 output.blank
1194 format.book.volume.and.series output
1195 format.book.volume.noseries output
1196 format.book.editors output.comma
1197 format.publisher.address output
1198 format.date "year" output.check.comma
1199 format.note output
1200 fin.entry
1201 }
1202 FUNCTION {booklet}
1203 {
1204 output.bibitem
1205 format.authors output
1206 format.title "title" output.check
1207 howpublished bibinfo.check output
1208 address bibinfo.check output
1209 format.date output
1210 format.note output
1211 fin.entry
1212 }
1213 FUNCTION {inbook}
1214 {
1215 output.bibitem
1216 format.book.authors "author and editor" output.check
1217 crossref missing$
1218 {
1219 format.title "title"
1220 output.check.comma
1221 format.edition
1222 output.blank
1223 format.book.volume.and.series output
1224 format.book.volume.noseries output
1225 format.book.editors output.comma
1226 format.publisher.address output
1227 format.date "year" output.check.comma
1228 ""
1229 }
1230 {
1231 format.crossref output.blank
1232 ""
1233 }
1234 if$
1235 format.chapter cat.comma
1236 format.pages cat.comma
1237 output
1238 format.note output
1239 fin.entry
1240 }
1241 FUNCTION {incollection}
1242 {
1243 output.bibitem
1244 format.authors "author" output.check
1245 crossref missing$
1246 {
1247 format.in.booktitle "booktitle" output.check.blank
1248 format.edition
1249 output.blank
1250 format.book.volume.and.series output
1251 format.book.volume.noseries output
1252 format.book.editors output.comma
1253 format.publisher.address output
1254 format.date "year" output.check.comma
1255 ""
1256 }
1257 {
1258 format.crossref output.blank
1259 ""
1260 }
1261 if$
1262 format.chapter cat.comma
1263 format.pages cat.comma
1264 output
1265 format.note output
1266 fin.entry
1267 }
1268 FUNCTION {inproceedings}
1269 {
1270 output.bibitem
1271 format.authors "author" output.check
1272 crossref missing$
1273 {
1274 format.in.booktitle "booktitle" output.check.blank
1275 publisher empty$
1276 { format.organization.address output }
1277 {
1278 organization bibinfo.check output
1279 format.publisher.address output
1280 }
1281 if$
1282 format.book.volume.and.series output
1283 }
1284 { format.crossref output.blank }
1285 if$
1286 format.pages "pages" output.check
1287 format.note output
1288 format.url output
1289 fin.entry
1290 }
1291 FUNCTION {manual}
1292 {
1293 output.bibitem
1294 author empty$
1295 {
1296 organization bibinfo.check
1297 duplicate$ empty$
1298 'pop$
1299 {
1300 output
1301 address bibinfo.check output
1302 }
1303 if$
1304 }
1305 { format.authors output }
1306 if$
1307 format.title "title" output.check
1308 author empty$
1309 {
1310 organization empty$
1311 { address bibinfo.check output }
1312 'skip$
1313 if$
1314 }
1315 {
1316 organization bibinfo.check output
1317 address bibinfo.check output
1318 }
1319 if$
1320 format.edition output
1321 format.date output
1322 format.note output
1323 format.url output
1324 fin.entry
1325 }
1326 FUNCTION {mastersthesis}
1327 {
1328 output.bibitem
1329 format.authors "author" output.check
1330 bbl.mthesis format.thesis.type output
1331 school "school" bibinfo.warn output
1332 address bibinfo.check output
1333 format.date "year" output.check
1334 format.note output
1335 format.url output
1336 fin.entry
1337 }
1338 FUNCTION {misc}
1339 {
1340 output.bibitem
1341 format.authors output
1342 format.title output
1343 howpublished bibinfo.check output
1344 format.date output
1345 format.note output
1346 format.url output
1347 fin.entry
1348 misc.empty.check
1349 }
1350 FUNCTION {phdthesis}
1351 {
1352 output.bibitem
1353 format.authors "author" output.check
1354 bbl.phdthesis format.thesis.type output
1355 school "school" bibinfo.warn output
1356 address bibinfo.check output
1357 format.date "year" output.check
1358 format.note output
1359 format.url output
1360 fin.entry
1361 }
1362 FUNCTION {proceedings}
1363 {
1364 output.bibitem
1365 editor empty$
1366 { organization bibinfo.check output }
1367 { format.editors output }
1368 if$
1369 format.title "title" output.check
1370 format.volume output
1371 format.number.series output
1372 editor empty$
1373 {
1374 publisher empty$
1375 'skip$
1376 { format.publisher.address output }
1377 if$
1378 }
1379 {
1380 publisher empty$
1381 { format.organization.address output }
1382 {
1383 organization bibinfo.check output
1384 format.publisher.address output
1385 }
1386 if$
1387 }
1388 if$
1389 format.date "year" output.check
1390 format.note output
1391 format.url output
1392 fin.entry
1393 }
1394 FUNCTION {program}
1395 {
1396 output.bibitem
1397 format.authors output
1398 format.program.title "title"
1399 output.check
1400 format.program.description output.comma
1401 format.program.version output
1402 format.date output
1403 format.program.publisher.address output
1404 format.note output
1405 format.url output
1406 fin.entry
1407 }
1408 FUNCTION {techreport}
1409 {
1410 output.bibitem
1411 format.authors "author" output.check
1412 format.title
1413 "title" output.check
1414 format.tr.number output
1415 institution "institution" bibinfo.warn output
1416 address bibinfo.check output
1417 format.date "year" output.check
1418 format.note output
1419 format.url output
1420 fin.entry
1421 }
1422 FUNCTION {unpublished}
1423 {
1424 output.bibitem
1425 format.authors "author" output.check
1426 format.title "title" output
1427 format.date output
1428 format.note "note" output.check
1429 format.url output
1430 fin.entry
1431 }
1432 FUNCTION {conference} { inproceedings }
1433 FUNCTION {default.type} { misc }
1434 FUNCTION {begin.bib}
1435 {
1436 "\begin{thebibliography}{" longest.label * "}" * write$ newline$
1437 }
1438 FUNCTION {end.bib}
1439 {
1440 newline$
1441 "\end{thebibliography}" write$ newline$
1442 }
1443 FUNCTION {initialize.longest.label}
1444 {
1445 "" 'longest.label :=
1446 #1 'number.label :=
1447 #0 'longest.label.width :=
1448 }
1449 FUNCTION {init.consts}
1450 {
1451 #0 'before.all :=
1452 #1 'mid.sentence :=
1453 #2 'new.sentence :=
1454 }
1455 FUNCTION {longest.label.pass}
1456 {
1457 number.label int.to.str$ 'label :=
1458 number.label #1 + 'number.label :=
1459 label width$ longest.label.width >
1460 {
1461 label 'longest.label :=
1462 label width$ 'longest.label.width :=
1463 }
1464 'skip$
1465 if$
1466 }
1467 FUNCTION {write.babel.misc}
1468 {
1469 "\providecommand{\bbland}{and}" write$ newline$
1470 "\providecommand{\bblchap}{chap.}" write$ newline$
1471 "\providecommand{\bblchapter}{chapter}" write$ newline$
1472 "\providecommand{\bbletal}{et~al.}" write$ newline$
1473 "\providecommand{\bbleditors}{editors}" write$ newline$
1474 "\providecommand{\bbleds}{eds.}" write$ newline$
1475 "\providecommand{\bbleditor}{editor}" write$ newline$
1476 "\providecommand{\bbled}{ed.}" write$ newline$
1477 "\providecommand{\bbledition}{edition}" write$ newline$
1478 "\providecommand{\bbledn}{ed.}" write$ newline$
1479 "\providecommand{\bbleidp}{page}" write$ newline$
1480 "\providecommand{\bbleidpp}{pages}" write$ newline$
1481 "\providecommand{\bblerratum}{erratum}" write$ newline$
1482 "\providecommand{\bblin}{in}" write$ newline$
1483 "\providecommand{\bblmthesis}{Master's thesis}" write$ newline$
1484 "\providecommand{\bblno}{no.}" write$ newline$
1485 "\providecommand{\bblnumber}{number}" write$ newline$
1486 "\providecommand{\bblof}{of}" write$ newline$
1487 "\providecommand{\bblpage}{page}" write$ newline$
1488 "\providecommand{\bblpages}{pages}" write$ newline$
1489 "\providecommand{\bblp}{p}" write$ newline$
1490 "\providecommand{\bblphdthesis}{Ph.D. thesis}" write$ newline$
1491 "\providecommand{\bblpp}{pp}" write$ newline$
1492 "\providecommand{\bbltechrep}{Tech. Rep.}" write$ newline$
1493 "\providecommand{\bbltechreport}{Technical Report}" write$ newline$
1494 "\providecommand{\bblvolume}{volume}" write$ newline$
1495 "\providecommand{\bblvol}{Vol.}" write$ newline$
1496 }
1497 FUNCTION {write.babel.months}
1498 {
1499 "\providecommand{\bbljan}{January}" write$ newline$
1500 "\providecommand{\bblfeb}{February}" write$ newline$
1501 "\providecommand{\bblmar}{March}" write$ newline$
1502 "\providecommand{\bblapr}{April}" write$ newline$
1503 "\providecommand{\bblmay}{May}" write$ newline$
1504 "\providecommand{\bbljun}{June}" write$ newline$
1505 "\providecommand{\bbljul}{July}" write$ newline$
1506 "\providecommand{\bblaug}{August}" write$ newline$
1507 "\providecommand{\bblsep}{September}" write$ newline$
1508 "\providecommand{\bbloct}{October}" write$ newline$
1509 "\providecommand{\bblnov}{November}" write$ newline$
1510 "\providecommand{\bbldec}{December}" write$ newline$
1511 }
1512 FUNCTION {write.babel.ordinals}
1513 {
1514 "\providecommand{\bblfirst}{First}" write$ newline$
1515 "\providecommand{\bblfirsto}{1st}" write$ newline$
1516 "\providecommand{\bblsecond}{Second}" write$ newline$
1517 "\providecommand{\bblsecondo}{2nd}" write$ newline$
1518 "\providecommand{\bblthird}{Third}" write$ newline$
1519 "\providecommand{\bblthirdo}{3rd}" write$ newline$
1520 "\providecommand{\bblfourth}{Fourth}" write$ newline$
1521 "\providecommand{\bblfourtho}{4th}" write$ newline$
1522 "\providecommand{\bblfifth}{Fifth}" write$ newline$
1523 "\providecommand{\bblfiftho}{5th}" write$ newline$
1524 "\providecommand{\bblst}{st}" write$ newline$
1525 "\providecommand{\bblnd}{nd}" write$ newline$
1526 "\providecommand{\bblrd}{rd}" write$ newline$
1527 "\providecommand{\bblth}{th}" write$ newline$
1528 }
1529 FUNCTION {write.babel}
1530 {
1531 write.babel.misc
1532 write.babel.months
1533 write.babel.ordinals
1534 }
1535 FUNCTION {write.commands}
1536 {
1537 "\providecommand{\url}[1]{\texttt{#1}}" write$ newline$
1538 "\providecommand{\urlprefix}{}" write$ newline$
1539 "\providecommand{\foreignlanguage}[2]{#2}" write$ newline$
1540 "\providecommand{\Capitalize}[1]{\uppercase{#1}}" write$ newline$
1541 "\providecommand{\capitalize}[1]{\expandafter\Capitalize#1}" write$ newline$
1542 "\providecommand{\bibliographycite}[1]{\cite{#1}}" write$ newline$
1543 write.babel
1544 }
1545 FUNCTION {write.header}
1546 {
1547 preamble$ empty$
1548 'skip$
1549 { preamble$ write$ newline$ }
1550 if$
1551 write.commands
1552 }
1553 READ
1554 EXECUTE {initialize.longest.label}
1555 ITERATE {longest.label.pass}
1556 EXECUTE {init.consts}
1557 EXECUTE {write.header}
1558 EXECUTE {begin.bib}
1559 ITERATE {call.type$}
1560 EXECUTE {end.bib}