Debian Codegraph @

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

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