Debian Codegraph @

texmf-dist/bibtex/bst/bgteubner/bgteupln3.bst

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