Debian Codegraph @

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

raw
1 %%
2 %% This is file `JAmChemSoc_all.bst',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% chembst.dtx (with options: `JAmChemSoc')
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 JAmChemSoc_all.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 %% J. Am. Chem. Soc.
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.semicolon
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 "{vv~}{ll}{, f.}{, 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 FUNCTION {n.dashify}
506 {
507 't :=
508 ""
509 { t empty$ not }
510 {
511 t #1 #1 substring$ "-" =
512 {
513 t #1 #2 substring$ "--" = not
514 {
515 "--" *
516 t #2 global.max$ substring$ 't :=
517 }
518 {
519 { t #1 #1 substring$ "-" = }
520 {
521 "-" *
522 t #2 global.max$ substring$ 't :=
523 }
524 while$
525 }
526 if$
527 }
528 {
529 t #1 #1 substring$ *
530 t #2 global.max$ substring$ 't :=
531 }
532 if$
533 }
534 while$
535 }
536 FUNCTION {select.language}
537 {
538 duplicate$ empty$
539 'skip$
540 {
541 language empty$
542 'skip$
543 { "\foreignlanguage{" language * "}{" * swap$ * "}" * }
544 if$
545 }
546 if$
547 }
548 FUNCTION {space.word}
549 {
550 " " swap$ * " " *
551 }
552 FUNCTION {str.to.int.warn}
553 {
554 "str.to.int: '" swap$ * "' is not a valid integer" * warning$
555 }
556 FUNCTION {str.to.int}
557 {
558 duplicate$ empty$
559 {
560 str.to.int.warn
561 #0
562 }
563 {
564 duplicate$ 't :=
565 t #1 #1 substring$ "-" =
566 {
567 t #2 global.max$ substring$ 't :=
568 t empty$
569 {
570 duplicate$ str.to.int.warn
571 #0
572 }
573 { #-1 }
574 if$
575 }
576 { #1 }
577 if$
578 #1 'o :=
579 #0
580 { t empty$ not}
581 {
582 t #-1 #1 substring$
583 duplicate$ is.num
584 {
585 chr.to.int$ #48 -
586 o multiply
587 +
588 t #-2 global.max$ substring$ 't :=
589 o #10 multiply 'o :=
590 }
591 {
592 pop$ pop$
593 swap$ duplicate$ str.to.int.warn
594 swap$ #0
595 "" 't :=
596 }
597 if$
598 }
599 while$
600 multiply
601 swap$ pop$
602 }
603 if$
604 }
605 FUNCTION {tie.or.space.prefix}
606 {
607 duplicate$ text.length$ #3 <
608 { "~" }
609 { " " }
610 if$
611 swap$
612 }
613 FUNCTION {word.in}
614 {
615 bbl.in delimiter.blank *
616 }
617 FUNCTION {format.year.internal}
618 {
619 }
620 FUNCTION {format.volume.internal}
621 {
622 duplicate$ empty$
623 'skip$
624 {
625 bbl.volume
626 swap$
627 tie.or.space.prefix
628 * *
629 }
630 if$
631 }
632 FUNCTION {format.authors}
633 {
634 author "author" format.names
635 duplicate$ empty$
636 'skip$
637 {
638 collaboration bibinfo.check
639 duplicate$ empty$
640 'skip$
641 { " (" * swap$ * ")" * }
642 if$
643 *
644 }
645 if$
646 }
647 FUNCTION {format.booktitle}
648 {
649 booktitle bibinfo.check
650 emphasize
651 select.language
652 }
653 FUNCTION {format.chapter}
654 {
655 chapter bibinfo.check
656 duplicate$ empty$
657 'skip$
658 {
659 type bibinfo.check
660 duplicate$ empty$
661 { pop$ bbl.chapter }
662 { "l" change.case$ }
663 if$
664 capitalize
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 }
689 if$
690 }
691 FUNCTION {format.editors}
692 {
693 editor "editor" format.names
694 duplicate$ empty$
695 'skip$
696 {
697 author empty$
698 'skip$
699 {
700 "," *
701 " " *
702 get.bbl.editor
703 capitalize
704 *
705 }
706 if$
707 }
708 if$
709 }
710 FUNCTION {format.in.booktitle}
711 {
712 format.booktitle
713 duplicate$ empty$
714 'skip$
715 {
716 word.in
717 capitalize
718 swap$ *
719 }
720 if$
721 }
722 FUNCTION {format.note}
723 {
724 note bibinfo.check
725 }
726 FUNCTION {format.number.series}
727 {
728 volume bibinfo.check
729 duplicate$ empty$
730 {
731 number empty$
732 { series bibinfo.check }
733 {
734 series empty$
735 { number bibinfo.check }
736 {
737 output.state mid.sentence =
738 { bbl.number }
739 { bbl.number capitalize }
740 if$
741 number bibinfo.check tie.or.space.prefix * *
742 word.in *
743 series bibinfo.check *
744 }
745 if$
746 }
747 if$
748 }
749 'skip$
750 if$
751 }
752 FUNCTION {format.org.or.pub}
753 {
754 't :=
755 address empty$ t empty$ and
756 { "" }
757 {
758 t
759 address bibinfo.check
760 duplicate$ empty$
761 'pop$
762 {
763 cat.colon
764 }
765 if$
766 }
767 if$
768 }
769 FUNCTION {format.organization.address}
770 {
771 organization bibinfo.check
772 format.org.or.pub
773 }
774 FUNCTION {format.pages}
775 {
776 pages bibinfo.check
777 duplicate$ empty$
778 'skip$
779 {
780 n.dashify
781 get.bbl.page
782 swap$
783 tie.or.space.prefix *
784 *
785 }
786 if$
787 }
788 FUNCTION {format.publisher.address}
789 {
790 publisher "publisher" bibinfo.warn
791 format.org.or.pub
792 }
793 FUNCTION {format.thesis.type}
794 {
795 type
796 duplicate$ empty$
797 'pop$
798 {
799 swap$ pop$
800 "t" change.case$ bibinfo.check
801 }
802 if$
803 }
804 FUNCTION {format.title}
805 {
806 title bibinfo.check
807 duplicate$ empty$
808 'skip$
809 {
810 emphasize
811 select.language
812 }
813 if$
814 }
815 FUNCTION {format.tr.number}
816 {
817 number bibinfo.check
818 type
819 duplicate$ empty$
820 { pop$ bbl.techrep }
821 'skip$
822 if$
823 bibinfo.check
824 swap$
825 duplicate$ empty$
826 { pop$ "t" change.case$ }
827 { tie.or.space.prefix * * }
828 if$
829 }
830 FUNCTION {format.url}
831 {
832 url bibinfo.check
833 duplicate$ empty$
834 'skip$
835 {
836 "\urlprefix\url{" swap$ * "}" *
837 new.sentence 'output.state :=
838 }
839 if$
840 }
841 FUNCTION {format.volume}
842 {
843 volume bibinfo.check
844 format.volume.internal
845 }
846 FUNCTION {format.volume.and.series}
847 {
848 volume empty$ series empty$ or
849 { "" }
850 {
851 volume format.volume.internal
852 swap$ bbl.of space.word * swap$
853 emphasize
854 *
855 "volume and number" number either.or.check
856 }
857 if$
858 }
859 FUNCTION {format.volume.noseries}
860 {
861 series empty$
862 {
863 volume bibinfo.check
864 format.volume.internal
865 }
866 { "" }
867 if$
868 }
869 FUNCTION {bibliography.cite}
870 {
871 "\bibliographycite{" swap$ * "}" *
872 }
873 FUNCTION {format.crossref}
874 {
875 bbl.in " " *
876 capitalize
877 crossref bibliography.cite *
878 }
879 FUNCTION {format.article.cat.journal.year}
880 {
881 cat.blank
882 }
883 FUNCTION {format.article.year.internal}
884 {
885 bolden
886 }
887 FUNCTION {format.article.volume.internal}
888 {
889 emphasize
890 }
891 FUNCTION {format.article.germanpages.volume.internal}
892 {
893 duplicate$ empty$
894 'skip$
895 {
896 str.to.int
897 duplicate$ #1 <
898 {
899 pop$
900 "volume in " cite$ * " is not a positive integer value" * warning$
901 ""
902 }
903 {
904 #73 +
905 int.to.str$
906 format.article.volume.internal
907 }
908 if$
909 }
910 if$
911 }
912 FUNCTION {format.article.germanpages.pages.internal}
913 {
914 n.dashify
915 }
916 FUNCTION {format.article.date}
917 {
918 format.date
919 format.article.year.internal
920 }
921 FUNCTION {format.article.numpages}
922 {
923 duplicate$ empty$
924 'skip$
925 {
926 duplicate$ "1" =
927 { "~" * bbl.eidp * }
928 { "~" * bbl.eidpp * }
929 if$
930 "(" swap$ * ")" *
931 }
932 if$
933 }
934 FUNCTION {format.article.eid}
935 {
936 eid bibinfo.check
937 duplicate$ empty$
938 'pop$
939 {
940 cat.comma
941 }
942 if$
943 }
944 FUNCTION {format.article.journal}
945 {
946 journal bibinfo.check
947 duplicate$ empty$
948 'skip$
949 { emphasize }
950 if$
951 }
952 FUNCTION {format.article.germanpages.journalname}
953 {
954 "Angew.\ Chem."
955 emphasize
956 }
957 FUNCTION {format.article.erratum.germanpages.pages}
958 {
959 erratumgermanpages bibinfo.check
960 format.article.germanpages.pages.internal
961 }
962 FUNCTION {format.article.erratum.year}
963 {
964 erratumyear bibinfo.check
965 format.year.internal
966 format.article.year.internal
967 }
968 FUNCTION {format.article.erratum.germanpages.volume}
969 {
970 erratumvolume "erratumvolume" bibinfo.warn
971 format.article.germanpages.volume.internal
972 }
973 FUNCTION {format.article.erratum.germanpages}
974 {
975 erratumgermanpages empty$
976 { "" }
977 {
978 format.article.germanpages.journalname
979 format.article.erratum.year format.article.cat.journal.year
980 format.article.erratum.germanpages.volume cat.comma
981 format.article.erratum.germanpages.pages cat.comma
982 }
983 if$
984 }
985 FUNCTION {format.article.erratum.journal} { format.article.journal }
986 FUNCTION {format.article.erratum.pages}
987 {
988 erratumpages bibinfo.check
989 n.dashify
990 }
991 FUNCTION {format.article.erratum.eid}
992 {
993 erratumeid bibinfo.check
994 erratumnumpages bibinfo.check format.article.numpages *
995 }
996 FUNCTION {format.article.erratum.volume}
997 {
998 erratumvolume bibinfo.check
999 format.article.volume.internal
1000 }
1001 FUNCTION {format.article.erratum}
1002 {
1003 erratumyear bibinfo.check empty$
1004 erratumvolume bibinfo.check empty$ and
1005 erratumpages bibinfo.check empty$ and
1006 erratumeid bibinfo.check empty$ and
1007 { "" }
1008 {
1009 get.bbl.erratum
1010 format.article.erratum.journal cat.blank
1011 format.article.erratum.year format.article.cat.journal.year
1012 format.article.erratum.volume cat.comma
1013 erratumeid empty$
1014 { format.article.erratum.pages }
1015 { format.article.erratum.eid }
1016 if$
1017 cat.comma
1018 format.article.erratum.germanpages cat.semicolon
1019 }
1020 if$
1021 }
1022 FUNCTION {format.article.germanpages.pages}
1023 {
1024 germanpages bibinfo.check
1025 format.article.germanpages.pages.internal
1026 }
1027 FUNCTION {format.article.germanpages.volume}
1028 {
1029 volume "volume" bibinfo.warn
1030 format.article.germanpages.volume.internal
1031 }
1032 FUNCTION {format.article.germanpages.year} { format.article.date }
1033 FUNCTION {format.article.germanpages}
1034 {
1035 germanpages empty$
1036 { "" }
1037 {
1038 format.article.germanpages.journalname
1039 format.article.germanpages.year format.article.cat.journal.year
1040 format.article.germanpages.volume cat.comma
1041 format.article.germanpages.pages cat.comma
1042 }
1043 if$
1044 }
1045 FUNCTION {format.article.pages}
1046 {
1047 pages
1048 duplicate$ empty$
1049 'pop$
1050 {
1051 swap$
1052 duplicate$ empty$
1053 { pop$ pop$ format.pages }
1054 {
1055 swap$
1056 n.dashify
1057 cat.comma
1058 }
1059 if$
1060 }
1061 if$
1062 }
1063 FUNCTION {format.article.title}
1064 {
1065 title bibinfo.check
1066 duplicate$ empty$
1067 'skip$
1068 {
1069 new.sentence 'output.state :=
1070 }
1071 if$
1072 }
1073 FUNCTION {format.article.volume.and.number}
1074 {
1075 volume bibinfo.check
1076 duplicate$ empty$
1077 'skip$
1078 { bibinfo.check }
1079 if$
1080 format.article.volume.internal
1081 }
1082 FUNCTION {format.book.authors}
1083 {
1084 author empty$
1085 { format.editors }
1086 {
1087 format.authors
1088 "author and editor" editor either.or.check
1089 }
1090 if$
1091 }
1092 FUNCTION {format.book.editors}
1093 {
1094 author empty$
1095 { "" }
1096 { format.editors }
1097 if$
1098 }
1099 FUNCTION {format.book.volume.internal}
1100 {
1101 volume bibinfo.check
1102 duplicate$ empty$
1103 'skip$
1104 {
1105 tie.or.space.prefix *
1106 bbl.volume swap$ *
1107 }
1108 if$
1109 }
1110 FUNCTION {format.book.volume.and.series}
1111 {
1112 series bibinfo.check
1113 duplicate$ empty$
1114 'skip$
1115 {
1116 format.book.volume.internal
1117 cat.comma
1118 }
1119 if$
1120 }
1121 FUNCTION {format.book.volume.noseries}
1122 {
1123 series empty$ not
1124 { "" }
1125 {
1126 format.book.volume.internal
1127 }
1128 if$
1129 }
1130 FUNCTION {misc.empty.check}
1131 {
1132 author empty$ title empty$ howpublished empty$
1133 month empty$ year empty$ note empty$ url empty$
1134 and and and and and and
1135 { "all relevant fields are empty in " cite$ * warning$ }
1136 'skip$
1137 if$
1138 }
1139 FUNCTION {format.program.description}
1140 {
1141 description bibinfo.check
1142 duplicate$ empty$
1143 'skip$
1144 { select.language }
1145 if$
1146 }
1147 FUNCTION {format.program.publisher.address}
1148 {
1149 publisher bibinfo.check
1150 format.org.or.pub
1151 }
1152 FUNCTION {format.program.title}
1153 {
1154 title "title" bibinfo.warn
1155 duplicate$ empty$
1156 'skip$
1157 {
1158 "t" change.case$
1159 " " swap$ *
1160 capitalize
1161 emphasize
1162 }
1163 if$
1164 }
1165 FUNCTION {format.program.version}
1166 {
1167 version
1168 }
1169 FUNCTION {article}
1170 {
1171 output.bibitem
1172 format.authors "author"
1173 output.check.blank
1174 format.article.journal "journal"
1175 output.check.blank
1176 format.article.date "year"
1177 output.check.blank
1178 format.article.volume.and.number output.comma
1179 eid empty$
1180 { format.article.pages }
1181 { format.article.eid }
1182 if$
1183 format.article.germanpages output.semicolon
1184 format.article.erratum output.semicolon
1185 format.note output
1186 fin.entry
1187 }
1188 FUNCTION {book}
1189 {
1190 output.bibitem
1191 format.book.authors "author and editor" output.check
1192 format.title "title"
1193 output.check.blank
1194 format.edition
1195 output.comma
1196 format.book.editors output.semicolon
1197 format.book.volume.and.series output
1198 format.publisher.address output
1199 format.date "year" output.check.comma
1200 format.volume.noseries output.semicolon
1201 format.note output
1202 fin.entry
1203 }
1204 FUNCTION {booklet}
1205 {
1206 output.bibitem
1207 format.authors output
1208 format.title "title" output.check
1209 howpublished bibinfo.check output
1210 address bibinfo.check output
1211 format.date output
1212 format.note output
1213 fin.entry
1214 }
1215 FUNCTION {inbook}
1216 {
1217 output.bibitem
1218 format.book.authors "author and editor" output.check
1219 crossref missing$
1220 {
1221 format.title "title"
1222 output.check.blank
1223 format.edition
1224 output.comma
1225 format.book.editors output.semicolon
1226 format.book.volume.and.series output
1227 format.publisher.address output
1228 format.date "year" output.check.comma
1229 format.volume.noseries
1230 }
1231 {
1232 format.crossref output.blank
1233 ""
1234 }
1235 if$
1236 format.chapter cat.comma
1237 format.pages cat.comma
1238 output
1239 format.note output
1240 fin.entry
1241 }
1242 FUNCTION {incollection}
1243 {
1244 output.bibitem
1245 format.authors "author" output.check
1246 crossref missing$
1247 {
1248 format.in.booktitle "booktitle" output.check.blank
1249 format.edition
1250 output.comma
1251 format.book.editors output.semicolon
1252 format.book.volume.and.series output
1253 format.publisher.address output
1254 format.date "year" output.check.comma
1255 format.volume.noseries
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.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.blank
1399 format.program.description output.comma
1400 format.program.version output
1401 format.program.publisher.address output
1402 format.date output.comma
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}