Debian Codegraph @

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

raw
1 %%
2 %% This is file `ChemCommun.bst',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% chembst.dtx (with options: `ChemCommun')
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 ChemCommun.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. Commun.
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 }
621 FUNCTION {format.volume.internal}
622 {
623 duplicate$ empty$
624 'skip$
625 {
626 bbl.volume
627 swap$
628 tie.or.space.prefix
629 * *
630 }
631 if$
632 }
633 FUNCTION {format.authors}
634 {
635 author "author" format.names
636 duplicate$ empty$
637 'skip$
638 {
639 collaboration bibinfo.check
640 duplicate$ empty$
641 'skip$
642 { " (" * swap$ * ")" * }
643 if$
644 *
645 }
646 if$
647 }
648 FUNCTION {format.booktitle}
649 {
650 booktitle bibinfo.check
651 emphasize
652 select.language
653 }
654 FUNCTION {format.chapter}
655 {
656 chapter bibinfo.check
657 duplicate$ empty$
658 'skip$
659 {
660 type bibinfo.check
661 duplicate$ empty$
662 { pop$ bbl.chapter }
663 { "l" change.case$ }
664 if$
665 swap$
666 tie.or.space.prefix
667 * *
668 }
669 if$
670 }
671 FUNCTION {format.date}
672 {
673 year bibinfo.check
674 format.year.internal
675 }
676 FUNCTION {format.edition}
677 {
678 edition bibinfo.check
679 duplicate$ empty$
680 'skip$
681 {
682 convert.edition
683 output.state mid.sentence =
684 { "l" }
685 { "t" }
686 if$ change.case$
687 " " * bbl.edition *
688 emphasize
689 }
690 if$
691 }
692 FUNCTION {format.editors}
693 {
694 editor "editor" format.names
695 duplicate$ empty$
696 'skip$
697 {
698 " " *
699 get.bbl.editor
700 capitalize
701 "(" swap$ * ")" *
702 *
703 }
704 if$
705 }
706 FUNCTION {format.in.booktitle}
707 {
708 format.booktitle
709 duplicate$ empty$
710 'skip$
711 {
712 word.in
713 swap$ *
714 }
715 if$
716 }
717 FUNCTION {format.note}
718 {
719 note bibinfo.check
720 }
721 FUNCTION {format.number.series}
722 {
723 volume bibinfo.check
724 duplicate$ empty$
725 {
726 number empty$
727 { series bibinfo.check }
728 {
729 series empty$
730 { number bibinfo.check }
731 {
732 output.state mid.sentence =
733 { bbl.number }
734 { bbl.number capitalize }
735 if$
736 number bibinfo.check tie.or.space.prefix * *
737 word.in *
738 series bibinfo.check *
739 }
740 if$
741 }
742 if$
743 }
744 'skip$
745 if$
746 }
747 FUNCTION {format.org.or.pub}
748 {
749 't :=
750 address empty$ t empty$ and
751 { "" }
752 {
753 t
754 address bibinfo.check
755 duplicate$ empty$
756 'pop$
757 {
758 cat.comma
759 }
760 if$
761 }
762 if$
763 }
764 FUNCTION {format.organization.address}
765 {
766 organization bibinfo.check
767 format.org.or.pub
768 }
769 FUNCTION {format.pages}
770 {
771 pages bibinfo.check
772 duplicate$ empty$
773 'skip$
774 {
775 n.dashify
776 get.bbl.page
777 swap$
778 tie.or.space.prefix *
779 *
780 }
781 if$
782 }
783 FUNCTION {format.publisher.address}
784 {
785 publisher "publisher" bibinfo.warn
786 format.org.or.pub
787 }
788 FUNCTION {format.thesis.type}
789 {
790 type
791 duplicate$ empty$
792 'pop$
793 {
794 swap$ pop$
795 "t" change.case$ bibinfo.check
796 }
797 if$
798 }
799 FUNCTION {format.title}
800 {
801 title bibinfo.check
802 duplicate$ empty$
803 'skip$
804 {
805 emphasize
806 select.language
807 }
808 if$
809 }
810 FUNCTION {format.tr.number}
811 {
812 number bibinfo.check
813 type
814 duplicate$ empty$
815 { pop$ bbl.techrep }
816 'skip$
817 if$
818 bibinfo.check
819 swap$
820 duplicate$ empty$
821 { pop$ "t" change.case$ }
822 { tie.or.space.prefix * * }
823 if$
824 }
825 FUNCTION {format.url}
826 {
827 url bibinfo.check
828 duplicate$ empty$
829 'skip$
830 {
831 "\urlprefix\url{" swap$ * "}" *
832 new.sentence 'output.state :=
833 }
834 if$
835 }
836 FUNCTION {format.volume}
837 {
838 volume bibinfo.check
839 format.volume.internal
840 }
841 FUNCTION {format.volume.and.series}
842 {
843 volume empty$ series empty$ or
844 { "" }
845 {
846 volume format.volume.internal
847 swap$ bbl.of space.word * swap$
848 emphasize
849 *
850 "volume and number" number either.or.check
851 }
852 if$
853 }
854 FUNCTION {format.volume.noseries}
855 {
856 series empty$
857 {
858 volume bibinfo.check
859 format.volume.internal
860 emphasize
861 }
862 { "" }
863 if$
864 }
865 FUNCTION {bibliography.cite}
866 {
867 "\bibliographycite{" swap$ * "}" *
868 }
869 FUNCTION {format.crossref}
870 {
871 bbl.in " " *
872 crossref bibliography.cite *
873 }
874 FUNCTION {format.article.cat.journal.year}
875 {
876 cat.comma
877 }
878 FUNCTION {format.article.year.internal}
879 {
880 }
881 FUNCTION {format.article.volume.internal}
882 {
883 bolden
884 }
885 FUNCTION {format.article.germanpages.volume.internal}
886 {
887 duplicate$ empty$
888 'skip$
889 {
890 str.to.int
891 duplicate$ #1 <
892 {
893 pop$
894 "volume in " cite$ * " is not a positive integer value" * warning$
895 ""
896 }
897 {
898 #73 +
899 int.to.str$
900 format.article.volume.internal
901 }
902 if$
903 }
904 if$
905 }
906 FUNCTION {format.article.germanpages.pages.internal}
907 {
908 n.dashify
909 }
910 FUNCTION {format.article.date}
911 {
912 format.date
913 format.article.year.internal
914 }
915 FUNCTION {format.article.numpages}
916 {
917 duplicate$ empty$
918 'skip$
919 {
920 duplicate$ "1" =
921 { "~" * bbl.eidp * }
922 { "~" * bbl.eidpp * }
923 if$
924 "(" swap$ * ")" *
925 }
926 if$
927 }
928 FUNCTION {format.article.eid}
929 {
930 eid bibinfo.check
931 duplicate$ empty$
932 'pop$
933 {
934 cat.comma
935 }
936 if$
937 }
938 FUNCTION {format.article.journal}
939 {
940 journal bibinfo.check
941 duplicate$ empty$
942 'skip$
943 { emphasize }
944 if$
945 }
946 FUNCTION {format.article.germanpages.journalname}
947 {
948 "Angew.\ Chem."
949 emphasize
950 }
951 FUNCTION {format.article.erratum.germanpages.pages}
952 {
953 erratumgermanpages bibinfo.check
954 format.article.germanpages.pages.internal
955 }
956 FUNCTION {format.article.erratum.year}
957 {
958 erratumyear bibinfo.check
959 format.year.internal
960 format.article.year.internal
961 }
962 FUNCTION {format.article.erratum.germanpages.volume}
963 {
964 erratumvolume "erratumvolume" bibinfo.warn
965 format.article.germanpages.volume.internal
966 }
967 FUNCTION {format.article.erratum.germanpages}
968 {
969 erratumgermanpages empty$
970 { "" }
971 {
972 format.article.germanpages.journalname
973 format.article.erratum.year format.article.cat.journal.year
974 format.article.erratum.germanpages.volume cat.comma
975 format.article.erratum.germanpages.pages cat.comma
976 }
977 if$
978 }
979 FUNCTION {format.article.erratum.journal} { format.article.journal }
980 FUNCTION {format.article.erratum.pages}
981 {
982 erratumpages bibinfo.check
983 n.dashify
984 }
985 FUNCTION {format.article.erratum.eid}
986 {
987 erratumeid bibinfo.check
988 erratumnumpages bibinfo.check format.article.numpages *
989 }
990 FUNCTION {format.article.erratum.volume}
991 {
992 erratumvolume bibinfo.check
993 format.article.volume.internal
994 }
995 FUNCTION {format.article.erratum}
996 {
997 erratumyear bibinfo.check empty$
998 erratumvolume bibinfo.check empty$ and
999 erratumpages bibinfo.check empty$ and
1000 erratumeid bibinfo.check empty$ and
1001 { "" }
1002 {
1003 get.bbl.erratum
1004 format.article.erratum.journal cat.blank
1005 format.article.erratum.year format.article.cat.journal.year
1006 format.article.erratum.volume cat.comma
1007 erratumeid empty$
1008 { format.article.erratum.pages }
1009 { format.article.erratum.eid }
1010 if$
1011 cat.comma
1012 format.article.erratum.germanpages cat.semicolon
1013 }
1014 if$
1015 }
1016 FUNCTION {format.article.germanpages.pages}
1017 {
1018 germanpages bibinfo.check
1019 format.article.germanpages.pages.internal
1020 }
1021 FUNCTION {format.article.germanpages.volume}
1022 {
1023 volume "volume" bibinfo.warn
1024 format.article.germanpages.volume.internal
1025 }
1026 FUNCTION {format.article.germanpages.year} { format.article.date }
1027 FUNCTION {format.article.germanpages}
1028 {
1029 germanpages empty$
1030 { "" }
1031 {
1032 format.article.germanpages.journalname
1033 format.article.germanpages.year format.article.cat.journal.year
1034 format.article.germanpages.volume cat.comma
1035 format.article.germanpages.pages cat.comma
1036 }
1037 if$
1038 }
1039 FUNCTION {format.article.pages}
1040 {
1041 pages
1042 duplicate$ empty$
1043 'pop$
1044 {
1045 swap$
1046 duplicate$ empty$
1047 { pop$ pop$ format.pages }
1048 {
1049 swap$
1050 n.dashify
1051 cat.comma
1052 }
1053 if$
1054 }
1055 if$
1056 }
1057 FUNCTION {format.article.title}
1058 {
1059 title bibinfo.check
1060 duplicate$ empty$
1061 'skip$
1062 {
1063 new.sentence 'output.state :=
1064 }
1065 if$
1066 }
1067 FUNCTION {format.article.volume.and.number}
1068 {
1069 volume bibinfo.check
1070 duplicate$ empty$
1071 'skip$
1072 { bibinfo.check }
1073 if$
1074 format.article.volume.internal
1075 }
1076 FUNCTION {format.book.authors}
1077 {
1078 author empty$
1079 { format.editors }
1080 {
1081 format.authors
1082 "author and editor" editor either.or.check
1083 }
1084 if$
1085 }
1086 FUNCTION {format.book.editors}
1087 {
1088 author empty$
1089 { "" }
1090 { format.editors }
1091 if$
1092 }
1093 FUNCTION {format.book.volume.internal}
1094 {
1095 volume bibinfo.check
1096 duplicate$ empty$
1097 'skip$
1098 {
1099 tie.or.space.prefix *
1100 bbl.volume swap$ *
1101 }
1102 if$
1103 }
1104 FUNCTION {format.book.volume.and.series}
1105 {
1106 series bibinfo.check
1107 duplicate$ empty$
1108 'skip$
1109 {
1110 emphasize
1111 format.book.volume.internal
1112 bbl.of space.word *
1113 swap$ *
1114 }
1115 if$
1116 }
1117 FUNCTION {format.book.volume.noseries}
1118 {
1119 series empty$ not
1120 { "" }
1121 {
1122 format.book.volume.internal
1123 emphasize
1124 }
1125 if$
1126 }
1127 FUNCTION {misc.empty.check}
1128 {
1129 author empty$ title empty$ howpublished empty$
1130 month empty$ year empty$ note empty$ url empty$
1131 and and and and and and
1132 { "all relevant fields are empty in " cite$ * warning$ }
1133 'skip$
1134 if$
1135 }
1136 FUNCTION {format.program.description}
1137 {
1138 description bibinfo.check
1139 duplicate$ empty$
1140 'skip$
1141 { select.language }
1142 if$
1143 }
1144 FUNCTION {format.program.publisher.address}
1145 {
1146 publisher bibinfo.check
1147 format.org.or.pub
1148 }
1149 FUNCTION {format.program.title}
1150 {
1151 title "title" bibinfo.warn
1152 duplicate$ empty$
1153 'skip$
1154 {
1155 "t" change.case$
1156 " " swap$ *
1157 capitalize
1158 emphasize
1159 }
1160 if$
1161 }
1162 FUNCTION {format.program.version}
1163 {
1164 version
1165 }
1166 FUNCTION {article}
1167 {
1168 output.bibitem
1169 format.authors "author"
1170 output.check
1171 format.article.journal "journal"
1172 output.check
1173 format.article.date "year"
1174 output.check
1175 format.article.volume.and.number output.comma
1176 eid empty$
1177 { format.article.pages }
1178 { format.article.eid }
1179 if$
1180 format.article.germanpages output.semicolon
1181 format.article.erratum output.semicolon
1182 format.note output
1183 fin.entry
1184 }
1185 FUNCTION {book}
1186 {
1187 output.bibitem
1188 format.book.authors "author and editor" output.check
1189 format.title "title"
1190 output.check.comma
1191 format.edition
1192 output.blank
1193 format.book.volume.and.series output
1194 format.book.volume.noseries output
1195 format.book.editors output.comma
1196 format.publisher.address output
1197 format.date "year" output.check.comma
1198 format.note output
1199 fin.entry
1200 }
1201 FUNCTION {booklet}
1202 {
1203 output.bibitem
1204 format.authors output
1205 format.title "title" output.check
1206 howpublished bibinfo.check output
1207 address bibinfo.check output
1208 format.date output
1209 format.note output
1210 fin.entry
1211 }
1212 FUNCTION {inbook}
1213 {
1214 output.bibitem
1215 format.book.authors "author and editor" output.check
1216 crossref missing$
1217 {
1218 format.title "title"
1219 output.check.comma
1220 format.edition
1221 output.blank
1222 format.book.volume.and.series output
1223 format.book.volume.noseries output
1224 format.book.editors output.comma
1225 format.publisher.address output
1226 format.date "year" output.check.comma
1227 ""
1228 }
1229 {
1230 format.crossref output.blank
1231 ""
1232 }
1233 if$
1234 format.chapter cat.comma
1235 format.pages cat.comma
1236 output
1237 format.note output
1238 fin.entry
1239 }
1240 FUNCTION {incollection}
1241 {
1242 output.bibitem
1243 format.authors "author" output.check
1244 crossref missing$
1245 {
1246 format.in.booktitle "booktitle" output.check.blank
1247 format.edition
1248 output.blank
1249 format.book.volume.and.series output
1250 format.book.volume.noseries output
1251 format.book.editors output.comma
1252 format.publisher.address output
1253 format.date "year" output.check.comma
1254 ""
1255 }
1256 {
1257 format.crossref output.blank
1258 ""
1259 }
1260 if$
1261 format.chapter cat.comma
1262 format.pages cat.comma
1263 output
1264 format.note output
1265 fin.entry
1266 }
1267 FUNCTION {inproceedings}
1268 {
1269 output.bibitem
1270 format.authors "author" output.check
1271 crossref missing$
1272 {
1273 format.in.booktitle "booktitle" output.check.blank
1274 publisher empty$
1275 { format.organization.address output }
1276 {
1277 organization bibinfo.check output
1278 format.publisher.address output
1279 }
1280 if$
1281 format.book.volume.and.series output
1282 }
1283 { format.crossref output.blank }
1284 if$
1285 format.pages "pages" output.check
1286 format.note output
1287 format.url output
1288 fin.entry
1289 }
1290 FUNCTION {manual}
1291 {
1292 output.bibitem
1293 author empty$
1294 {
1295 organization bibinfo.check
1296 duplicate$ empty$
1297 'pop$
1298 {
1299 output
1300 address bibinfo.check output
1301 }
1302 if$
1303 }
1304 { format.authors output }
1305 if$
1306 format.title "title" output.check
1307 author empty$
1308 {
1309 organization empty$
1310 { address bibinfo.check output }
1311 'skip$
1312 if$
1313 }
1314 {
1315 organization bibinfo.check output
1316 address bibinfo.check output
1317 }
1318 if$
1319 format.edition output
1320 format.date output
1321 format.note output
1322 format.url output
1323 fin.entry
1324 }
1325 FUNCTION {mastersthesis}
1326 {
1327 output.bibitem
1328 format.authors "author" output.check
1329 bbl.mthesis format.thesis.type output
1330 school "school" bibinfo.warn output
1331 address bibinfo.check output
1332 format.date "year" output.check
1333 format.note output
1334 format.url output
1335 fin.entry
1336 }
1337 FUNCTION {misc}
1338 {
1339 output.bibitem
1340 format.authors output
1341 format.title output
1342 howpublished bibinfo.check output
1343 format.date output
1344 format.note output
1345 format.url output
1346 fin.entry
1347 misc.empty.check
1348 }
1349 FUNCTION {phdthesis}
1350 {
1351 output.bibitem
1352 format.authors "author" output.check
1353 bbl.phdthesis format.thesis.type output
1354 school "school" bibinfo.warn output
1355 address bibinfo.check output
1356 format.date "year" output.check
1357 format.note output
1358 format.url output
1359 fin.entry
1360 }
1361 FUNCTION {proceedings}
1362 {
1363 output.bibitem
1364 editor empty$
1365 { organization bibinfo.check output }
1366 { format.editors output }
1367 if$
1368 format.title "title" output.check
1369 format.volume output
1370 format.number.series output
1371 editor empty$
1372 {
1373 publisher empty$
1374 'skip$
1375 { format.publisher.address output }
1376 if$
1377 }
1378 {
1379 publisher empty$
1380 { format.organization.address output }
1381 {
1382 organization bibinfo.check output
1383 format.publisher.address output
1384 }
1385 if$
1386 }
1387 if$
1388 format.date "year" output.check
1389 format.note output
1390 format.url output
1391 fin.entry
1392 }
1393 FUNCTION {program}
1394 {
1395 output.bibitem
1396 format.authors output
1397 format.program.title "title"
1398 output.check
1399 format.program.description output.comma
1400 format.program.version output
1401 format.date output
1402 format.program.publisher.address output
1403 format.note output
1404 format.url output
1405 fin.entry
1406 }
1407 FUNCTION {techreport}
1408 {
1409 output.bibitem
1410 format.authors "author" output.check
1411 format.title
1412 "title" output.check
1413 format.tr.number output
1414 institution "institution" bibinfo.warn output
1415 address bibinfo.check output
1416 format.date "year" output.check
1417 format.note output
1418 format.url output
1419 fin.entry
1420 }
1421 FUNCTION {unpublished}
1422 {
1423 output.bibitem
1424 format.authors "author" output.check
1425 format.title "title" output
1426 format.date output
1427 format.note "note" output.check
1428 format.url output
1429 fin.entry
1430 }
1431 FUNCTION {conference} { inproceedings }
1432 FUNCTION {default.type} { misc }
1433 FUNCTION {begin.bib}
1434 {
1435 "\begin{thebibliography}{" longest.label * "}" * write$ newline$
1436 }
1437 FUNCTION {end.bib}
1438 {
1439 newline$
1440 "\end{thebibliography}" write$ newline$
1441 }
1442 FUNCTION {initialize.longest.label}
1443 {
1444 "" 'longest.label :=
1445 #1 'number.label :=
1446 #0 'longest.label.width :=
1447 }
1448 FUNCTION {init.consts}
1449 {
1450 #0 'before.all :=
1451 #1 'mid.sentence :=
1452 #2 'new.sentence :=
1453 }
1454 FUNCTION {longest.label.pass}
1455 {
1456 number.label int.to.str$ 'label :=
1457 number.label #1 + 'number.label :=
1458 label width$ longest.label.width >
1459 {
1460 label 'longest.label :=
1461 label width$ 'longest.label.width :=
1462 }
1463 'skip$
1464 if$
1465 }
1466 FUNCTION {write.babel.misc}
1467 {
1468 "\providecommand{\bbland}{and}" write$ newline$
1469 "\providecommand{\bblchap}{chap.}" write$ newline$
1470 "\providecommand{\bblchapter}{chapter}" write$ newline$
1471 "\providecommand{\bbletal}{et~al.}" write$ newline$
1472 "\providecommand{\bbleditors}{editors}" write$ newline$
1473 "\providecommand{\bbleds}{eds.}" write$ newline$
1474 "\providecommand{\bbleditor}{editor}" write$ newline$
1475 "\providecommand{\bbled}{ed.}" write$ newline$
1476 "\providecommand{\bbledition}{edition}" write$ newline$
1477 "\providecommand{\bbledn}{ed.}" write$ newline$
1478 "\providecommand{\bbleidp}{page}" write$ newline$
1479 "\providecommand{\bbleidpp}{pages}" write$ newline$
1480 "\providecommand{\bblerratum}{erratum}" write$ newline$
1481 "\providecommand{\bblin}{in}" write$ newline$
1482 "\providecommand{\bblmthesis}{Master's thesis}" write$ newline$
1483 "\providecommand{\bblno}{no.}" write$ newline$
1484 "\providecommand{\bblnumber}{number}" write$ newline$
1485 "\providecommand{\bblof}{of}" write$ newline$
1486 "\providecommand{\bblpage}{page}" write$ newline$
1487 "\providecommand{\bblpages}{pages}" write$ newline$
1488 "\providecommand{\bblp}{p}" write$ newline$
1489 "\providecommand{\bblphdthesis}{Ph.D. thesis}" write$ newline$
1490 "\providecommand{\bblpp}{pp}" write$ newline$
1491 "\providecommand{\bbltechrep}{Tech. Rep.}" write$ newline$
1492 "\providecommand{\bbltechreport}{Technical Report}" write$ newline$
1493 "\providecommand{\bblvolume}{volume}" write$ newline$
1494 "\providecommand{\bblvol}{Vol.}" write$ newline$
1495 }
1496 FUNCTION {write.babel.months}
1497 {
1498 "\providecommand{\bbljan}{January}" write$ newline$
1499 "\providecommand{\bblfeb}{February}" write$ newline$
1500 "\providecommand{\bblmar}{March}" write$ newline$
1501 "\providecommand{\bblapr}{April}" write$ newline$
1502 "\providecommand{\bblmay}{May}" write$ newline$
1503 "\providecommand{\bbljun}{June}" write$ newline$
1504 "\providecommand{\bbljul}{July}" write$ newline$
1505 "\providecommand{\bblaug}{August}" write$ newline$
1506 "\providecommand{\bblsep}{September}" write$ newline$
1507 "\providecommand{\bbloct}{October}" write$ newline$
1508 "\providecommand{\bblnov}{November}" write$ newline$
1509 "\providecommand{\bbldec}{December}" write$ newline$
1510 }
1511 FUNCTION {write.babel.ordinals}
1512 {
1513 "\providecommand{\bblfirst}{First}" write$ newline$
1514 "\providecommand{\bblfirsto}{1st}" write$ newline$
1515 "\providecommand{\bblsecond}{Second}" write$ newline$
1516 "\providecommand{\bblsecondo}{2nd}" write$ newline$
1517 "\providecommand{\bblthird}{Third}" write$ newline$
1518 "\providecommand{\bblthirdo}{3rd}" write$ newline$
1519 "\providecommand{\bblfourth}{Fourth}" write$ newline$
1520 "\providecommand{\bblfourtho}{4th}" write$ newline$
1521 "\providecommand{\bblfifth}{Fifth}" write$ newline$
1522 "\providecommand{\bblfiftho}{5th}" write$ newline$
1523 "\providecommand{\bblst}{st}" write$ newline$
1524 "\providecommand{\bblnd}{nd}" write$ newline$
1525 "\providecommand{\bblrd}{rd}" write$ newline$
1526 "\providecommand{\bblth}{th}" write$ newline$
1527 }
1528 FUNCTION {write.babel}
1529 {
1530 write.babel.misc
1531 write.babel.months
1532 write.babel.ordinals
1533 }
1534 FUNCTION {write.commands}
1535 {
1536 "\providecommand{\url}[1]{\texttt{#1}}" write$ newline$
1537 "\providecommand{\urlprefix}{}" write$ newline$
1538 "\providecommand{\foreignlanguage}[2]{#2}" write$ newline$
1539 "\providecommand{\Capitalize}[1]{\uppercase{#1}}" write$ newline$
1540 "\providecommand{\capitalize}[1]{\expandafter\Capitalize#1}" write$ newline$
1541 "\providecommand{\bibliographycite}[1]{\cite{#1}}" write$ newline$
1542 write.babel
1543 }
1544 FUNCTION {write.header}
1545 {
1546 preamble$ empty$
1547 'skip$
1548 { preamble$ write$ newline$ }
1549 if$
1550 write.commands
1551 }
1552 READ
1553 EXECUTE {initialize.longest.label}
1554 ITERATE {longest.label.pass}
1555 EXECUTE {init.consts}
1556 EXECUTE {write.header}
1557 EXECUTE {begin.bib}
1558 ITERATE {call.type$}
1559 EXECUTE {end.bib}