Debian Codegraph @

texmf-dist/bibtex/bst/spie/spiebib.bst

raw
1 % spiebib.bst - Version 2.7
2 % for Proc. SPIE, remove comma between journal name and vol.
3 % BibTeX bibliography style file for MaxEnt95
4 % Essentially same as ieeetr.sty,
5 % but with bold journal volume number,
6 % no parentheses around editors,
7 % and publisher/address fields reversed.
8 % July 3, 1995 (kmh) Ken Hanson
9 % In "inproceedings" allow 'journal' and avoid complaint
10 % if 'booktitle' missing.
11 % Dec. 10, 1997 (kmh) Ken Hanson
12 % In "inproceedings", 'series' produces the same output as previous 'journal'
13 % May 14, 2001 (hto) Hwa-Tung Ong
14 % Put 'volume' in bold after 'series' in "collection", "incollection",
15 % and "inproceedings".
16 % Aug. 29, 2001 (kmh) Ken Hanson
17 % insert ~ in volume bold line to avoid line break between journal and volume
18 % Jan. 23, 2006 (kmh)
19 %
20 % IEEE Transactions bibliography style (29-Jan-88 version)
21 % numeric labels, order-of-reference, IEEE abbreviations,
22 % quotes around article titles, commas separate all fields
23 % except after book titles and before "notes". Otherwise,
24 % much like the "plain" family, from which this is adapted.
25 %
26 % History
27 % 9/30/85 (HWT) Original version, by Howard Trickey.
28 % 1/29/88 (OP&HWT) Updated for BibTeX version 0.99a, Oren Patashnik;
29 % THIS `ieeetr' VERSION DOES NOT WORK WITH BIBTEX 0.98i.
30
31 ENTRY
32 { address
33 author
34 booktitle
35 chapter
36 edition
37 editor
38 howpublished
39 institution
40 journal
41 key
42 month
43 note
44 number
45 organization
46 pages
47 publisher
48 school
49 series
50 title
51 type
52 volume
53 year
54 }
55 {}
56 { label }
57
58 INTEGERS { output.state before.all mid.sentence after.quote after.sentence
59 after.quoted.block after.block }
60
61 FUNCTION {init.state.consts}
62 { #0 'before.all :=
63 #1 'mid.sentence :=
64 #2 'after.quote :=
65 #3 'after.sentence :=
66 #4 'after.quoted.block :=
67 #5 'after.block :=
68 }
69
70 STRINGS { s t }
71
72 FUNCTION {output.nonnull}
73 { 's :=
74 output.state mid.sentence =
75 { ", " * write$ }
76 { output.state after.quote =
77 { " " * write$ }
78 { output.state after.block =
79 { add.period$ write$
80 newline$
81 "\newblock " write$
82 }
83 { output.state before.all =
84 'write$
85 { output.state after.quoted.block =
86 { write$
87 newline$
88 "\newblock " write$
89 }
90 { add.period$ " " * write$ }
91 if$
92 }
93 if$
94 }
95 if$
96 }
97 if$
98 mid.sentence 'output.state :=
99 }
100 if$
101 s
102 }
103
104 FUNCTION {output}
105 { duplicate$ empty$
106 'pop$
107 'output.nonnull
108 if$
109 }
110
111 FUNCTION {output.check}
112 { 't :=
113 duplicate$ empty$
114 { pop$ "empty " t * " in " * cite$ * warning$ }
115 'output.nonnull
116 if$
117 }
118
119 FUNCTION {output.bibitem}
120 { newline$
121 "\bibitem{" write$
122 cite$ write$
123 "}" write$
124 newline$
125 ""
126 before.all 'output.state :=
127 }
128
129 FUNCTION {blank.sep}
130 { after.quote 'output.state :=
131 }
132
133 FUNCTION {fin.entry}
134 { output.state after.quoted.block =
135 'skip$
136 'add.period$
137 if$
138 write$
139 newline$
140 }
141
142 FUNCTION {new.block}
143 { output.state before.all =
144 'skip$
145 { output.state after.quote =
146 { after.quoted.block 'output.state := }
147 { after.block 'output.state := }
148 if$
149 }
150 if$
151 }
152
153 FUNCTION {new.sentence}
154 { output.state after.block =
155 'skip$
156 { output.state before.all =
157 'skip$
158 { after.sentence 'output.state := }
159 if$
160 }
161 if$
162 }
163
164 FUNCTION {not}
165 { { #0 }
166 { #1 }
167 if$
168 }
169
170 FUNCTION {and}
171 { 'skip$
172 { pop$ #0 }
173 if$
174 }
175
176 FUNCTION {or}
177 { { pop$ #1 }
178 'skip$
179 if$
180 }
181
182 FUNCTION {new.block.checka}
183 { empty$
184 'skip$
185 'new.block
186 if$
187 }
188
189 FUNCTION {new.block.checkb}
190 { empty$
191 swap$ empty$
192 and
193 'skip$
194 'new.block
195 if$
196 }
197
198 FUNCTION {new.sentence.checka}
199 { empty$
200 'skip$
201 'new.sentence
202 if$
203 }
204
205 FUNCTION {field.or.null}
206 { duplicate$ empty$
207 { pop$ "" }
208 'skip$
209 if$
210 }
211
212 FUNCTION {emphasize}
213 { duplicate$ empty$
214 { pop$ "" }
215 { "{\em " swap$ * "}" * }
216 if$
217 }
218
219 FUNCTION {bold} %% kmh - new function like emphasize
220 { duplicate$ empty$
221 { pop$ "" }
222 { "{\bf " swap$ * "}" * }
223 if$
224 }
225
226 INTEGERS { nameptr namesleft numnames }
227
228 FUNCTION {format.names}
229 { 's :=
230 #1 'nameptr :=
231 s num.names$ 'numnames :=
232 numnames 'namesleft :=
233 { namesleft #0 > }
234 { s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't :=
235 nameptr #1 >
236 { namesleft #1 >
237 { ", " * t * }
238 { numnames #2 >
239 { "," * }
240 'skip$
241 if$
242 t "others" =
243 { " {\em et~al.}" * }
244 { " and " * t * }
245 if$
246 }
247 if$
248 }
249 't
250 if$
251 nameptr #1 + 'nameptr :=
252 namesleft #1 - 'namesleft :=
253 }
254 while$
255 }
256
257 FUNCTION {format.authors}
258 { author empty$
259 { "" }
260 { author format.names }
261 if$
262 }
263
264 FUNCTION {format.editors}
265 { editor empty$
266 { "" }
267 { editor format.names
268 editor num.names$ #1 >
269 { ", eds." * }
270 { ", ed." * }
271 if$
272 }
273 if$
274 }
275
276 FUNCTION {format.title}
277 { title empty$
278 { "" }
279 { "``" title "t" change.case$ * ",''" * }
280 if$
281 }
282
283 FUNCTION {format.title.p}
284 { title empty$
285 { "" }
286 { "``" title "t" change.case$ * ".''" * }
287 if$
288 }
289
290 FUNCTION {n.dashify}
291 { 't :=
292 ""
293 { t empty$ not }
294 { t #1 #1 substring$ "-" =
295 { t #1 #2 substring$ "--" = not
296 { "--" *
297 t #2 global.max$ substring$ 't :=
298 }
299 { { t #1 #1 substring$ "-" = }
300 { "-" *
301 t #2 global.max$ substring$ 't :=
302 }
303 while$
304 }
305 if$
306 }
307 { t #1 #1 substring$ *
308 t #2 global.max$ substring$ 't :=
309 }
310 if$
311 }
312 while$
313 }
314
315 FUNCTION {format.date}
316 { year empty$
317 { month empty$
318 { "" }
319 { "there's a month but no year in " cite$ * warning$
320 month
321 }
322 if$
323 }
324 { month empty$
325 'year
326 { month " " * year * }
327 if$
328 }
329 if$
330 }
331
332 FUNCTION {format.btitle}
333 { title emphasize
334 }
335
336 FUNCTION {tie.or.space.connect}
337 { duplicate$ text.length$ #3 <
338 { "~" }
339 { " " }
340 if$
341 swap$ * *
342 }
343
344 FUNCTION {either.or.check}
345 { empty$
346 'pop$
347 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
348 if$
349 }
350
351 FUNCTION {format.bvolume}
352 { volume empty$
353 { "" }
354 { "vol.~" volume *
355 series empty$
356 'skip$
357 { " of " * series emphasize * }
358 if$
359 "volume and number" number either.or.check
360 }
361 if$
362 }
363
364 FUNCTION {format.number.series}
365 { volume empty$
366 { number empty$
367 { series field.or.null }
368 { output.state mid.sentence =
369 { "no.~" }
370 { "No.~" }
371 if$
372 number *
373 series empty$
374 { "there's a number but no series in " cite$ * warning$ }
375 { " in " * series * }
376 if$
377 }
378 if$
379 }
380 { "" }
381 if$
382 }
383
384 FUNCTION {format.edition}
385 { edition empty$
386 { "" }
387 { edition "l" change.case$ "~ed." * }
388 if$
389 }
390
391 INTEGERS { multiresult }
392
393 FUNCTION {multi.page.check}
394 { 't :=
395 #0 'multiresult :=
396 { multiresult not
397 t empty$ not
398 and
399 }
400 { t #1 #1 substring$
401 duplicate$ "-" =
402 swap$ duplicate$ "," =
403 swap$ "+" =
404 or or
405 { #1 'multiresult := }
406 { t #2 global.max$ substring$ 't := }
407 if$
408 }
409 while$
410 multiresult
411 }
412
413 FUNCTION {format.pages}
414 { pages empty$
415 { "" }
416 { pages multi.page.check
417 { "pp.~" pages n.dashify * }
418 { "p.~" pages * }
419 if$
420 }
421 if$
422 }
423
424 FUNCTION {format.number}
425 { number empty$
426 { "" }
427 { "(" number * ")" *} %% put number in paren
428 %% { "no.~" number * } %% ieeetr
429 if$
430 }
431
432 FUNCTION {format.journal.volume.number}
433 { journal empty$
434 { "empty " t * " in " * cite$ * warning$ ""}
435 { journal emphasize }
436 if$
437 volume empty$ %% kmh - warning if no volume
438 { "empty volume in " cite$ * warning$ " " *}
439 { "~" * volume bold *} %% kmh - make volume bold
440 %% { "vol.~" volume * }
441 if$
442 month empty$
443 { format.number *}
444 'skip$
445 if$
446 }
447
448 FUNCTION {format.series.volume.number} %% hto01 - similar to format.journal.volume.number
449 { series empty$
450 %% { "empty " t * " in " * cite$ * warning$ ""}
451 { "" } %% hto01 - no warning of empty title
452 { series emphasize }
453 if$
454 volume empty$
455 { "" *} %% kmh - no warning if no volume
456 { " " * volume bold *} %% kmh - make volume bold
457 %% { "vol.~" volume * }
458 if$
459 month empty$
460 { format.number *}
461 'skip$
462 if$
463 }
464
465 % following not used
466 FUNCTION {format.volume}
467 { volume empty$
468 { "" }
469 { volume bold } %% kmh - make volume bold
470 %% { "vol.~" volume * }
471 if$
472 }
473
474 FUNCTION {format.chapter.pages}
475 { chapter empty$
476 'format.pages
477 { type empty$
478 { "ch.~" chapter * }
479 { type "l" change.case$ chapter tie.or.space.connect }
480 if$
481 pages empty$
482 'skip$
483 { ", " * format.pages * }
484 if$
485 }
486 if$
487 }
488
489 FUNCTION {format.in.ed.booktitle}
490 { booktitle empty$
491 { "" }
492 { " in " * booktitle emphasize * ", " *
493 format.editors %% editors without paren.
494 % editor empty$ %% ieeetr adds paren.
495 % 'skip$
496 % { " (" * format.editors * ")" * }
497 % if$
498 }
499 if$
500 }
501
502 FUNCTION {format.thesis.type}
503 { type empty$
504 'skip$
505 { pop$
506 output.state after.block =
507 { type "t" change.case$ }
508 { type "l" change.case$ }
509 if$
510 }
511 if$
512 }
513
514 FUNCTION {empty.misc.check}
515 { author empty$ title empty$ howpublished empty$
516 month empty$ year empty$ note empty$
517 and and and and and
518 { "all relevant fields are empty in " cite$ * warning$ }
519 'skip$
520 if$
521 }
522
523 FUNCTION {format.tr.number}
524 { type empty$
525 { "Tech. Rep." }
526 'type
527 if$
528 number empty$
529 { "l" change.case$ }
530 { number tie.or.space.connect }
531 if$
532 }
533
534 FUNCTION {format.addr.pub} %% kmh - not used now
535 { publisher empty$
536 { "" }
537 { address empty$
538 { "" }
539 { address ": " * }
540 if$
541 publisher *
542 }
543 if$
544 }
545
546 FUNCTION {format.paddress}
547 { address empty$
548 { "" }
549 { "(" address * ")" * }
550 if$
551 }
552
553 FUNCTION {format.article.crossref}
554 { key empty$
555 { journal empty$
556 { "need key or journal for " cite$ * " to crossref " * crossref *
557 warning$
558 ""
559 }
560 { " in {\em " journal * "\/}" * }
561 if$
562 }
563 { " in " key * }
564 if$
565 " \cite{" * crossref * "}" *
566 }
567
568 FUNCTION {format.crossref.editor}
569 { editor #1 "{vv~}{ll}" format.name$
570 editor num.names$ duplicate$
571 #2 >
572 { pop$ " {\em et~al.}" * }
573 { #2 <
574 'skip$
575 { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
576 { " {\em et~al.}" * }
577 { " and " * editor #2 "{vv~}{ll}" format.name$ * }
578 if$
579 }
580 if$
581 }
582 if$
583 }
584
585 FUNCTION {format.book.crossref}
586 { volume empty$
587 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
588 "In "
589 }
590 { "Vol.~" volume *
591 " of " *
592 }
593 if$
594 editor empty$
595 editor field.or.null author field.or.null =
596 or
597 { key empty$
598 { series empty$
599 { "need editor, key, or series for " cite$ * " to crossref " *
600 crossref * warning$
601 "" *
602 }
603 { "{\em " * series * "\/}" * }
604 if$
605 }
606 { key * }
607 if$
608 }
609 { format.crossref.editor * }
610 if$
611 " \cite{" * crossref * "}" *
612 }
613
614 FUNCTION {format.incoll.inproc.crossref}
615 { editor empty$
616 editor field.or.null author field.or.null =
617 or
618 { key empty$
619 { booktitle empty$
620 { "need editor, key, or booktitle for " cite$ * " to crossref " *
621 crossref * warning$
622 ""
623 }
624 { " in {\em " booktitle * "\/}" * }
625 %% kmh - add space before 'in'
626 if$
627 }
628 { " in " key * } %% kmh - add space before 'in'
629 if$
630 }
631 { " in " format.crossref.editor * }
632 %% kmh - add space before 'in'
633 if$
634 " \cite{" * crossref * "}" *
635 }
636
637 FUNCTION {article}
638 { output.bibitem
639 format.authors "author" output.check
640 format.title "title" output.check
641 blank.sep
642 crossref missing$
643 { format.journal.volume.number output
644 format.pages output
645 format.date "year" output.check
646 }
647 { format.article.crossref output.nonnull
648 format.pages output
649 }
650 if$
651 new.block
652 note output
653 fin.entry
654 }
655
656 FUNCTION {book}
657 { output.bibitem
658 author empty$
659 { format.editors "author and editor" output.check }
660 { format.authors output.nonnull
661 crossref missing$
662 { "author and editor" editor either.or.check }
663 'skip$
664 if$
665 }
666 if$
667 format.btitle "title" output.check
668 crossref missing$
669 { format.bvolume output
670 %% new.block %% ieeetr, kmh - remove period
671 format.number.series output
672 %% format.addr.pub "publisher" output.check %% ieeetr
673 publisher "publisher" output.check %% kmh
674 address output
675 }
676 { new.block
677 format.book.crossref output.nonnull
678 }
679 if$
680 format.edition output
681 format.date "year" output.check
682 new.block
683 note output
684 fin.entry
685 }
686
687 FUNCTION {booklet}
688 { output.bibitem
689 format.authors output
690 title empty$
691 { "empty title in " cite$ * warning$
692 howpublished new.sentence.checka
693 }
694 { howpublished empty$ not
695 address empty$ month empty$ year empty$ and and
696 or
697 { format.title.p output.nonnull }
698 { format.title output.nonnull }
699 if$
700 blank.sep
701 }
702 if$
703 howpublished output
704 address output
705 format.date output
706 new.block
707 note output
708 fin.entry
709 }
710
711 FUNCTION {inbook}
712 { output.bibitem
713 author empty$
714 { format.editors "author and editor" output.check }
715 { format.authors output.nonnull
716 crossref missing$
717 { "author and editor" editor either.or.check }
718 'skip$
719 if$
720 }
721 if$
722 format.btitle "title" output.check
723 crossref missing$
724 { format.bvolume output
725 format.chapter.pages "chapter and pages" output.check
726 new.block
727 format.number.series output
728 %% format.addr.pub "publisher" output.check %% ieeetr
729 publisher "publisher" output.check %% kmh
730 address output
731 }
732 { format.chapter.pages "chapter and pages" output.check
733 new.block
734 format.book.crossref output.nonnull
735 }
736 if$
737 format.edition output
738 format.date "year" output.check
739 new.block
740 note output
741 fin.entry
742 }
743
744 FUNCTION {incollection}
745 { output.bibitem
746 format.authors "author" output.check
747 format.title "title" output.check
748 blank.sep
749 crossref missing$
750 { format.in.ed.booktitle "booktitle or editor" output.check
751 %% format.bvolume output
752 %% format.number.series output
753 format.series.volume.number output %% kmh01
754 format.chapter.pages output
755 %% format.addr.pub "publisher" output.check %% ieeetr
756 publisher "publisher" output.check %% kmh
757 address output
758 format.edition output
759 format.date "year" output.check
760 }
761 { format.incoll.inproc.crossref output.nonnull
762 format.chapter.pages output
763 }
764 if$
765 new.block
766 note output
767 fin.entry
768 }
769
770 FUNCTION {inproceedings}
771 { output.bibitem
772 format.authors "author" output.check
773 format.title "title" output.check
774 blank.sep
775 crossref missing$
776 { format.in.ed.booktitle output %remove check for booktitle
777 %% { format.in.ed.booktitle "booktitle" output.check %% unsrt
778 journal empty$
779 %% {format.bvolume output %% this is standard unsrt
780 %% format.number.series output
781 {format.series.volume.number output %% hto01
782 %% moved below format.paddress output
783 format.pages output
784 }
785 {format.journal.volume.number output
786
787 %% add jour., vol.,and number
788 format.pages output
789 }
790 if$
791 organization output
792 publisher output
793 format.paddress output %% publ. address moved to here
794 format.date "year" output.check
795 }
796 { format.incoll.inproc.crossref output.nonnull
797 format.pages output
798 }
799 if$
800 new.block
801 note output
802 fin.entry
803 }
804
805 FUNCTION {conference} { inproceedings }
806
807 FUNCTION {manual}
808 { output.bibitem
809 author empty$
810 { organization empty$
811 'skip$
812 { organization output.nonnull
813 address output
814 }
815 if$
816 }
817 { format.authors output.nonnull }
818 if$
819 format.btitle "title" output.check
820 author empty$
821 { organization empty$
822 { address new.block.checka
823 address output
824 }
825 'skip$
826 if$
827 }
828 { organization address new.block.checkb
829 organization output
830 address output
831 }
832 if$
833 format.edition output
834 format.date output
835 new.block
836 note output
837 fin.entry
838 }
839
840 FUNCTION {mastersthesis}
841 { output.bibitem
842 format.authors "author" output.check
843 format.title "title" output.check
844 blank.sep
845 "Master's thesis" format.thesis.type output.nonnull
846 school "school" output.check
847 address output
848 format.date "year" output.check
849 new.block
850 note output
851 fin.entry
852 }
853
854 FUNCTION {misc}
855 { output.bibitem
856 format.authors output
857 title empty$
858 { howpublished new.sentence.checka }
859 { howpublished empty$ not
860 month empty$ year empty$ and
861 or
862 { format.title.p output.nonnull }
863 { format.title output.nonnull }
864 if$
865 blank.sep
866 }
867 if$
868 howpublished output
869 format.date output
870 new.block
871 note output
872 fin.entry
873 empty.misc.check
874 }
875
876 FUNCTION {phdthesis}
877 { output.bibitem
878 format.authors "author" output.check
879 format.btitle "title" output.check
880 new.block
881 "PhD thesis" format.thesis.type output.nonnull
882 school "school" output.check
883 address output
884 format.date "year" output.check
885 new.block
886 note output
887 fin.entry
888 }
889
890 FUNCTION {proceedings}
891 { output.bibitem
892 editor empty$
893 { organization output }
894 { format.editors output.nonnull }
895 if$
896 format.btitle "title" output.check
897 %% format.bvolume output
898 %% format.number.series output
899 format.series.volume.number output %%kmh01
900 format.paddress output
901 editor empty$
902 'skip$
903 { organization output }
904 if$
905 publisher output
906 format.date "year" output.check
907 new.block
908 note output
909 fin.entry
910 }
911
912 FUNCTION {techreport}
913 { output.bibitem
914 format.authors "author" output.check
915 format.title "title" output.check
916 blank.sep
917 format.tr.number output.nonnull
918 institution "institution" output.check
919 address output
920 format.date "year" output.check
921 new.block
922 note output
923 fin.entry
924 }
925
926 FUNCTION {unpublished}
927 { output.bibitem
928 format.authors "author" output.check
929 format.title.p "title" output.check
930 blank.sep
931 note "note" output.check
932 format.date output
933 fin.entry
934 }
935
936 FUNCTION {default.type} { misc }
937
938 MACRO {jan} {"Jan."}
939
940 MACRO {feb} {"Feb."}
941
942 MACRO {mar} {"Mar."}
943
944 MACRO {apr} {"Apr."}
945
946 MACRO {may} {"May"}
947
948 MACRO {jun} {"June"}
949
950 MACRO {jul} {"July"}
951
952 MACRO {aug} {"Aug."}
953
954 MACRO {sep} {"Sept."}
955
956 MACRO {oct} {"Oct."}
957
958 MACRO {nov} {"Nov."}
959
960 MACRO {dec} {"Dec."}
961
962 MACRO {acmcs} {"ACM Computing Surveys"}
963
964 MACRO {acta} {"Acta Informatica"}
965
966 MACRO {cacm} {"Communications ACM"}
967
968 MACRO {ibmjrd} {"IBM J. Research and Development"}
969
970 MACRO {ibmsj} {"IBM Systems~J."}
971
972 MACRO {ieeese} {"IEEE Trans. Software Engineering"}
973
974 MACRO {ieeetc} {"IEEE Trans. Computers"}
975
976 MACRO {ieeetcad}
977 {"IEEE Trans. Computer-Aided Design"}
978
979 MACRO {ipl} {"Information Processing Letters"}
980
981 MACRO {jacm} {"J.~ACM"}
982
983 MACRO {jcss} {"J.~Computer and System Sciences"}
984
985 MACRO {scp} {"Science of Computer Programming"}
986
987 MACRO {sicomp} {"SIAM J. Computing"}
988
989 MACRO {tocs} {"ACM Trans. Computer Systems"}
990
991 MACRO {tods} {"ACM Trans. Database Systems"}
992
993 MACRO {tog} {"ACM Trans. Graphics"}
994
995 MACRO {toms} {"ACM Trans. Mathematical Software"}
996
997 MACRO {toois} {"ACM Trans. Office Information Systems"}
998
999 MACRO {toplas} {"ACM Trans. Programming Languages and Systems"}
1000
1001 MACRO {tcs} {"Theoretical Computer Science"}
1002
1003 READ
1004
1005 STRINGS { longest.label }
1006
1007 INTEGERS { number.label longest.label.width }
1008
1009 FUNCTION {initialize.longest.label}
1010 { "" 'longest.label :=
1011 #1 'number.label :=
1012 #0 'longest.label.width :=
1013 }
1014
1015 FUNCTION {longest.label.pass}
1016 { number.label int.to.str$ 'label :=
1017 number.label #1 + 'number.label :=
1018 label width$ longest.label.width >
1019 { label 'longest.label :=
1020 label width$ 'longest.label.width :=
1021 }
1022 'skip$
1023 if$
1024 }
1025
1026 EXECUTE {initialize.longest.label}
1027
1028 ITERATE {longest.label.pass}
1029
1030 FUNCTION {begin.bib}
1031 { preamble$ empty$
1032 'skip$
1033 { preamble$ write$ newline$ }
1034 if$
1035 "\begin{thebibliography}{" longest.label * "}" * write$ newline$
1036 }
1037
1038 EXECUTE {begin.bib}
1039
1040 EXECUTE {init.state.consts}
1041
1042 ITERATE {call.type$}
1043
1044 FUNCTION {end.bib}
1045 { newline$
1046 "\end{thebibliography}" write$ newline$
1047 }
1048
1049 EXECUTE {end.bib}
1050
1051