Debian Codegraph @

texmf-dist/bibtex/bst/datatool/databib.bst

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