Debian Codegraph @

texmf-dist/doc/latex/unamth-template/Latex/Classes/PhDbiblio-bold.bst

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