Debian Codegraph @

texmf-dist/bibtex/bst/dk-bib/dk-unsrt.bst

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