Debian Codegraph @

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

raw
1 % BibTeX standard bibliography style `alpha'
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], January 1997.
12 % Now called `noralpha'.
13 % Added field "isbn" and "issn". [email protected], April 2001.
14 % Translated into Danish by [email protected], June 2001.
15 % Now called `dk-alpha'.
16 % This is dk-bib, Version 0.6 ($Id: dk-alpha.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 extra.label sort.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 label write$
101 "]{" write$
102 cite$ write$
103 "}" write$
104 newline$
105 ""
106 before.all 'output.state :=
107 }
108
109 FUNCTION {output.annote}
110 { annote empty$
111 'skip$
112 { "\dkbibannote{" cite$ * "}{" * annote add.period$ * "}" *
113 write$ newline$ }
114 if$
115 }
116
117 FUNCTION {fin.entry}
118 { add.period$
119 write$
120 newline$
121 output.annote
122 }
123
124 FUNCTION {new.block}
125 { output.state before.all =
126 'skip$
127 { after.block 'output.state := }
128 if$
129 }
130
131 FUNCTION {output.isbn.issn}
132 { isbn empty$
133 'skip$
134 { new.block "\dkbibisbn{" isbn * "}" * output }
135 if$
136 issn empty$
137 'skip$
138 { new.block "\dkbibissn{" issn * "}" * output }
139 if$
140 }
141
142 FUNCTION {output.url}
143 { url empty$
144 'skip$
145 { new.block "\dkbiburl{" url * "}" * output }
146 if$
147 }
148
149 FUNCTION {new.sentence}
150 { output.state after.block =
151 'skip$
152 { output.state before.all =
153 'skip$
154 { after.sentence 'output.state := }
155 if$
156 }
157 if$
158 }
159
160 FUNCTION {not}
161 { { #0 }
162 { #1 }
163 if$
164 }
165
166 FUNCTION {and}
167 { 'skip$
168 { pop$ #0 }
169 if$
170 }
171
172 FUNCTION {or}
173 { { pop$ #1 }
174 'skip$
175 if$
176 }
177
178 FUNCTION {new.block.checka}
179 { empty$
180 'skip$
181 'new.block
182 if$
183 }
184
185 FUNCTION {new.block.checkb}
186 { empty$
187 swap$ empty$
188 and
189 'skip$
190 'new.block
191 if$
192 }
193
194 FUNCTION {new.sentence.checka}
195 { empty$
196 'skip$
197 'new.sentence
198 if$
199 }
200
201 FUNCTION {new.sentence.checkb}
202 { empty$
203 swap$ empty$
204 and
205 'skip$
206 'new.sentence
207 if$
208 }
209
210 FUNCTION {field.or.null}
211 { duplicate$ empty$
212 { pop$ "" }
213 'skip$
214 if$
215 }
216
217 FUNCTION {emphasize}
218 { duplicate$ empty$
219 { pop$ "" }
220 { "\emph{" swap$ * "}" * }
221 if$
222 }
223
224 INTEGERS { nameptr namesleft numnames }
225
226 FUNCTION {format.names}
227 { 's :=
228 #1 'nameptr :=
229 s num.names$ 'numnames :=
230 numnames 'namesleft :=
231 { namesleft #0 > }
232 { s nameptr "{ff~}{vv }{ll}{~jj}" format.name$ 't :=
233 nameptr #1 >
234 { namesleft #1 >
235 { ", " * t * }
236 { t "others" =
237 { " et~al." * }
238 { " og " * t * }
239 if$
240 }
241 if$
242 }
243 't
244 if$
245 nameptr #1 + 'nameptr :=
246 namesleft #1 - 'namesleft :=
247 }
248 while$
249 }
250
251 FUNCTION {format.authors}
252 { author empty$
253 { "" }
254 { author format.names }
255 if$
256 }
257
258 FUNCTION {format.editors}
259 { editor empty$
260 { "" }
261 { editor format.names
262 editor num.names$ #1 >
263 { ", redakt\o rer" * }
264 { ", redakt\o r" * }
265 if$
266 }
267 if$
268 }
269
270 FUNCTION {format.title}
271 { title empty$
272 { "" }
273 { title "t" change.case$ }
274 if$
275 }
276
277 FUNCTION {n.dashify}
278 { 't :=
279 ""
280 { t empty$ not }
281 { t #1 #1 substring$ "-" =
282 { "\dkbibdash" *
283 t #2 global.max$ substring$ 't :=
284 { t #1 #1 substring$ "-" = }
285 { t #2 global.max$ substring$ 't := }
286 while$
287 t #1 #1 substring$ " " =
288 { "{}" * }
289 { " " * }
290 if$
291 }
292 { t #1 #1 substring$ *
293 t #2 global.max$ substring$ 't :=
294 }
295 if$
296 }
297 while$
298 }
299
300 FUNCTION {format.date}
301 { year empty$
302 { month empty$
303 { "" }
304 { "there's a month but no year in " cite$ * warning$
305 month
306 }
307 if$
308 }
309 { month empty$
310 'year
311 { month " " * year * }
312 if$
313 }
314 if$
315 }
316
317 FUNCTION {format.btitle}
318 { title emphasize
319 }
320
321 FUNCTION {tie.or.space.connect}
322 { duplicate$ text.length$ #3 <
323 { "~" }
324 { " " }
325 if$
326 swap$ * *
327 }
328
329 FUNCTION {either.or.check}
330 { empty$
331 'pop$
332 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
333 if$
334 }
335
336 FUNCTION {format.bvolume}
337 { volume empty$
338 { "" }
339 { "bind" volume tie.or.space.connect
340 series empty$
341 'skip$
342 { " af " * series emphasize * }
343 if$
344 "volume and number" number either.or.check
345 }
346 if$
347 }
348
349 FUNCTION {format.number.series}
350 { volume empty$
351 { number empty$
352 { series field.or.null }
353 { output.state mid.sentence =
354 { "nr." }
355 { "Nr." }
356 if$
357 number tie.or.space.connect
358 series empty$
359 { "there's a number but no series in " cite$ * warning$ }
360 { " i " * series * }
361 if$
362 }
363 if$
364 }
365 { "" }
366 if$
367 }
368
369 FUNCTION {ordinal.translate.i}
370 { duplicate$ "l" change.case$ "first" =
371 {pop$ "1"}
372 {skip$}
373 if$
374 duplicate$ "l" change.case$ "second" =
375 {pop$ "2"}
376 {skip$}
377 if$
378 duplicate$ "l" change.case$ "third" =
379 {pop$ "3"}
380 {skip$}
381 if$
382 duplicate$ "l" change.case$ "fourth" =
383 {pop$ "4"}
384 {skip$}
385 if$
386 duplicate$ "l" change.case$ "fifth" =
387 {pop$ "5"}
388 {skip$}
389 if$
390 }
391
392 FUNCTION {ordinal.translate.ii}
393 { duplicate$ "l" change.case$ "sixth" =
394 {pop$ "6"}
395 {skip$}
396 if$
397 duplicate$ "l" change.case$ "seventh" =
398 {pop$ "7"}
399 {skip$}
400 if$
401 duplicate$ "l" change.case$ "eighth" =
402 {pop$ "8"}
403 {skip$}
404 if$
405 duplicate$ "l" change.case$ "ninth" =
406 {pop$ "9"}
407 {skip$}
408 if$
409 duplicate$ "l" change.case$ "tenth" =
410 {pop$ "10"}
411 {skip$}
412 if$
413 }
414
415 FUNCTION {ordinal.translate.iii}
416 { duplicate$ "l" change.case$ "eleventh" =
417 {pop$ "11"}
418 {skip$}
419 if$
420 duplicate$ "l" change.case$ "twelfth" =
421 {pop$ "12"}
422 {skip$}
423 if$
424 duplicate$ "l" change.case$ "thirteenth" =
425 {pop$ "13"}
426 {skip$}
427 if$
428 duplicate$ "l" change.case$ "fourteenth" =
429 {pop$ "14"}
430 {skip$}
431 if$
432 duplicate$ "l" change.case$ "fifteenth" =
433 {pop$ "15"}
434 {skip$}
435 if$
436 }
437
438 FUNCTION {ordinal.translate.iv}
439 { duplicate$ "l" change.case$ "sixteenth" =
440 {pop$ "16"}
441 {skip$}
442 if$
443 duplicate$ "l" change.case$ "seventeenth" =
444 {pop$ "17"}
445 {skip$}
446 if$
447 duplicate$ "l" change.case$ "eighteenth" =
448 {pop$ "18"}
449 {skip$}
450 if$
451 duplicate$ "l" change.case$ "nineteenth" =
452 {pop$ "19"}
453 {skip$}
454 if$
455 duplicate$ "l" change.case$ "twentieth" =
456 {pop$ "20"}
457 {skip$}
458 if$
459 }
460
461 FUNCTION {ordinal.translate}
462 { ordinal.translate.i
463 ordinal.translate.ii
464 ordinal.translate.iii
465 ordinal.translate.iv
466 }
467
468 FUNCTION {format.edition}
469 { edition empty$
470 printing empty$
471 +
472 #2
473 =
474 { "" }
475 { output.state mid.sentence =
476 { "\dkbibedition{" }
477 { "\dkbibEdition{" }
478 if$
479 edition empty$
480 { "" }
481 { edition ordinal.translate
482 duplicate$ "l" change.case$
483 duplicate$ "u" change.case$
484 =
485 { purify$ }
486 { output.state mid.sentence =
487 { skip$ }
488 { "u" change.case$
489 "t" change.case$
490 }
491 if$
492 }
493 if$
494 }
495 if$
496 * "}{" *
497 printing empty$
498 { "" }
499 { printing ordinal.translate
500 duplicate$ "l" change.case$
501 duplicate$ "u" change.case$
502 =
503 { purify$ }
504 { skip$ }
505 if$
506 }
507 if$
508 * "}" *
509 }
510 if$
511 }
512
513 INTEGERS { multiresult }
514
515 FUNCTION {multi.page.check}
516 { 't :=
517 #0 'multiresult :=
518 { multiresult not
519 t empty$ not
520 and
521 }
522 { t #1 #1 substring$
523 duplicate$ "-" =
524 swap$ duplicate$ "," =
525 swap$ "+" =
526 or or
527 { #1 'multiresult := }
528 { t #2 global.max$ substring$ 't := }
529 if$
530 }
531 while$
532 multiresult
533 }
534
535 FUNCTION {format.pages}
536 { pages empty$
537 { "" }
538 { pages multi.page.check
539 { "side" pages n.dashify tie.or.space.connect }
540 { "side" pages tie.or.space.connect }
541 if$
542 }
543 if$
544 }
545
546 FUNCTION {format.vol.num.pages}
547 { volume field.or.null
548 number empty$
549 'skip$
550 { "(" number * ")" * *
551 volume empty$
552 { "there's a number but no volume in " cite$ * warning$ }
553 'skip$
554 if$
555 }
556 if$
557 pages empty$
558 'skip$
559 { duplicate$ empty$
560 { pop$ format.pages }
561 { ":" * pages n.dashify * }
562 if$
563 }
564 if$
565 }
566
567 FUNCTION {format.chapter.pages}
568 { chapter empty$
569 'format.pages
570 { type empty$
571 { "kapitel" }
572 { type "l" change.case$ }
573 if$
574 chapter tie.or.space.connect
575 pages empty$
576 'skip$
577 { ", " * format.pages * }
578 if$
579 }
580 if$
581 }
582
583 FUNCTION {format.in.ed.booktitle}
584 { booktitle empty$
585 { "" }
586 { editor empty$
587 { "I " booktitle emphasize * }
588 { "I " format.editors * ", " * booktitle emphasize * }
589 if$
590 }
591 if$
592 }
593
594 FUNCTION {empty.misc.check}
595 { author empty$ title empty$ howpublished empty$
596 month empty$ year empty$ note empty$ isbn empty$ issn empty$
597 and and and and and and and
598 key empty$ not and
599 { "all relevant fields are empty in " cite$ * warning$ }
600 'skip$
601 if$
602 }
603
604 FUNCTION {format.thesis.type}
605 { type empty$
606 'skip$
607 { pop$
608 type "t" change.case$
609 }
610 if$
611 }
612
613 FUNCTION {format.tr.number}
614 { type empty$
615 { "Rapport" }
616 'type
617 if$
618 number empty$
619 { "t" change.case$ }
620 { number tie.or.space.connect }
621 if$
622 }
623
624 FUNCTION {format.article.crossref}
625 { key empty$
626 { journal empty$
627 { "need key or journal for " cite$ * " to crossref " * crossref *
628 warning$
629 ""
630 }
631 { "I \emph{" journal * "}" * }
632 if$
633 }
634 { "I " key * }
635 if$
636 " \cite{" * crossref * "}" *
637 }
638
639 FUNCTION {format.crossref.editor}
640 { editor #1 "{vv }{ll}" format.name$
641 editor num.names$ duplicate$
642 #2 >
643 { pop$ " et~al." * }
644 { #2 <
645 'skip$
646 { editor #2 "{ff~}{vv }{ll}{~jj}" format.name$ "others" =
647 { " et~al." * }
648 { " og " * editor #2 "{vv }{ll}" format.name$ * }
649 if$
650 }
651 if$
652 }
653 if$
654 }
655
656 FUNCTION {format.book.crossref}
657 { volume empty$
658 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
659 "I "
660 }
661 { "Bind" volume tie.or.space.connect
662 " af " *
663 }
664 if$
665 editor empty$
666 editor field.or.null author field.or.null =
667 or
668 { key empty$
669 { series empty$
670 { "need editor, key, or series for " cite$ * " to crossref " *
671 crossref * warning$
672 "" *
673 }
674 { "\emph{" * series * "}" * }
675 if$
676 }
677 { key * }
678 if$
679 }
680 { format.crossref.editor * }
681 if$
682 " \cite{" * crossref * "}" *
683 }
684
685 FUNCTION {format.incoll.inproc.crossref}
686 { editor empty$
687 editor field.or.null author field.or.null =
688 or
689 { key empty$
690 { booktitle empty$
691 { "need editor, key, or booktitle for " cite$ * " to crossref " *
692 crossref * warning$
693 ""
694 }
695 { "I \emph{" booktitle * "}" * }
696 if$
697 }
698 { "I " key * }
699 if$
700 }
701 { "I " format.crossref.editor * }
702 if$
703 " \cite{" * crossref * "}" *
704 }
705
706 FUNCTION {article}
707 { output.bibitem
708 format.authors "author" output.check
709 new.block
710 format.title "title" output.check
711 new.block
712 crossref missing$
713 { journal emphasize "journal" output.check
714 format.vol.num.pages output
715 format.date "year" output.check
716 }
717 { format.article.crossref output.nonnull
718 format.pages output
719 }
720 if$
721 new.block
722 note output
723 output.isbn.issn
724 output.url
725 fin.entry
726 }
727
728 FUNCTION {book}
729 { output.bibitem
730 author empty$
731 { format.editors "author and editor" output.check }
732 { format.authors output.nonnull
733 crossref missing$
734 { "author and editor" editor either.or.check }
735 'skip$
736 if$
737 }
738 if$
739 new.block
740 format.btitle "title" output.check
741 crossref missing$
742 { format.bvolume output
743 new.block
744 format.number.series output
745 new.sentence
746 publisher "publisher" output.check
747 address output
748 }
749 { new.block
750 format.book.crossref output.nonnull
751 }
752 if$
753 format.edition output
754 format.date "year" output.check
755 new.block
756 note output
757 output.isbn.issn
758 output.url
759 fin.entry
760 }
761
762 FUNCTION {booklet}
763 { output.bibitem
764 format.authors output
765 new.block
766 format.title "title" output.check
767 howpublished address new.block.checkb
768 howpublished output
769 address output
770 format.date output
771 new.block
772 note output
773 output.isbn.issn
774 output.url
775 fin.entry
776 }
777
778 FUNCTION {inbook}
779 { output.bibitem
780 author empty$
781 { format.editors "author and editor" output.check }
782 { format.authors output.nonnull
783 crossref missing$
784 { "author and editor" editor either.or.check }
785 'skip$
786 if$
787 }
788 if$
789 new.block
790 format.btitle "title" output.check
791 crossref missing$
792 { format.bvolume output
793 format.chapter.pages "chapter and pages" output.check
794 new.block
795 format.number.series output
796 new.sentence
797 publisher "publisher" output.check
798 address output
799 }
800 { format.chapter.pages "chapter and pages" output.check
801 new.block
802 format.book.crossref output.nonnull
803 }
804 if$
805 format.edition output
806 format.date "year" output.check
807 new.block
808 note output
809 output.isbn.issn
810 output.url
811 fin.entry
812 }
813
814 FUNCTION {incollection}
815 { output.bibitem
816 format.authors "author" output.check
817 new.block
818 format.title "title" output.check
819 new.block
820 crossref missing$
821 { format.in.ed.booktitle "booktitle" output.check
822 format.bvolume output
823 format.number.series output
824 format.chapter.pages output
825 new.sentence
826 publisher "publisher" output.check
827 address output
828 format.edition output
829 format.date "year" output.check
830 }
831 { format.incoll.inproc.crossref output.nonnull
832 format.chapter.pages output
833 }
834 if$
835 new.block
836 note output
837 output.isbn.issn
838 output.url
839 fin.entry
840 }
841
842 FUNCTION {inproceedings}
843 { output.bibitem
844 format.authors "author" output.check
845 new.block
846 format.title "title" output.check
847 new.block
848 crossref missing$
849 { format.in.ed.booktitle "booktitle" output.check
850 format.bvolume output
851 format.number.series output
852 format.pages output
853 address empty$
854 { organization publisher new.sentence.checkb
855 organization output
856 publisher output
857 format.date "year" output.check
858 }
859 { address output.nonnull
860 format.date "year" output.check
861 new.sentence
862 organization output
863 publisher output
864 }
865 if$
866 }
867 { format.incoll.inproc.crossref output.nonnull
868 format.pages output
869 }
870 if$
871 new.block
872 note output
873 output.isbn.issn
874 output.url
875 fin.entry
876 }
877
878 FUNCTION {conference} { inproceedings }
879
880 FUNCTION {manual}
881 { output.bibitem
882 author empty$
883 { organization empty$
884 'skip$
885 { organization output.nonnull
886 address output
887 }
888 if$
889 }
890 { format.authors output.nonnull }
891 if$
892 new.block
893 format.btitle "title" output.check
894 author empty$
895 { organization empty$
896 { address new.block.checka
897 address output
898 }
899 'skip$
900 if$
901 }
902 { organization address new.block.checkb
903 organization output
904 address output
905 }
906 if$
907 format.edition output
908 format.date output
909 new.block
910 note output
911 output.isbn.issn
912 output.url
913 fin.entry
914 }
915
916 FUNCTION {mastersthesis}
917 { output.bibitem
918 format.authors "author" output.check
919 new.block
920 format.title "title" output.check
921 new.block
922 "Specialeafhandling" format.thesis.type output.nonnull
923 school "school" output.check
924 address output
925 format.date "year" output.check
926 new.block
927 note output
928 output.isbn.issn
929 output.url
930 fin.entry
931 }
932
933 FUNCTION {misc}
934 { output.bibitem
935 format.authors output
936 title howpublished new.block.checkb
937 format.title output
938 howpublished new.block.checka
939 howpublished output
940 format.date output
941 new.block
942 note output
943 output.isbn.issn
944 output.url
945 fin.entry
946 empty.misc.check
947 }
948
949 FUNCTION {phdthesis}
950 { output.bibitem
951 format.authors "author" output.check
952 new.block
953 format.btitle "title" output.check
954 new.block
955 "Ph.d.-afhandling" format.thesis.type output.nonnull
956 school "school" output.check
957 address output
958 format.date "year" output.check
959 new.block
960 note output
961 output.isbn.issn
962 output.url
963 fin.entry
964 }
965
966 FUNCTION {proceedings}
967 { output.bibitem
968 editor empty$
969 { organization output }
970 { format.editors output.nonnull }
971 if$
972 new.block
973 format.btitle "title" output.check
974 format.bvolume output
975 format.number.series output
976 address empty$
977 { editor empty$
978 { publisher new.sentence.checka }
979 { organization publisher new.sentence.checkb
980 organization output
981 }
982 if$
983 publisher output
984 format.date "year" output.check
985 }
986 { address output.nonnull
987 format.date "year" output.check
988 new.sentence
989 editor empty$
990 'skip$
991 { organization output }
992 if$
993 publisher output
994 }
995 if$
996 new.block
997 note output
998 output.isbn.issn
999 output.url
1000 fin.entry
1001 }
1002
1003 FUNCTION {techreport}
1004 { output.bibitem
1005 format.authors "author" output.check
1006 new.block
1007 format.title "title" output.check
1008 new.block
1009 format.tr.number output.nonnull
1010 institution "institution" output.check
1011 address output
1012 format.date "year" output.check
1013 new.block
1014 note output
1015 output.isbn.issn
1016 output.url
1017 fin.entry
1018 }
1019
1020 FUNCTION {unpublished}
1021 { output.bibitem
1022 format.authors "author" output.check
1023 new.block
1024 format.title "title" output.check
1025 new.block
1026 note "note" output.check
1027 format.date output
1028 output.isbn.issn
1029 output.url
1030 fin.entry
1031 }
1032
1033 FUNCTION {default.type} { misc }
1034
1035 MACRO {jan} {"januar"}
1036
1037 MACRO {feb} {"februar"}
1038
1039 MACRO {mar} {"marts"}
1040
1041 MACRO {apr} {"april"}
1042
1043 MACRO {may} {"maj"}
1044
1045 MACRO {jun} {"juni"}
1046
1047 MACRO {jul} {"juli"}
1048
1049 MACRO {aug} {"august"}
1050
1051 MACRO {sep} {"september"}
1052
1053 MACRO {oct} {"oktober"}
1054
1055 MACRO {nov} {"november"}
1056
1057 MACRO {dec} {"december"}
1058
1059 MACRO {acmcs} {"ACM Computing Surveys"}
1060
1061 MACRO {acta} {"Acta Informatica"}
1062
1063 MACRO {cacm} {"Communications of the ACM"}
1064
1065 MACRO {ibmjrd} {"IBM Journal of Research and Development"}
1066
1067 MACRO {ibmsj} {"IBM Systems Journal"}
1068
1069 MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
1070
1071 MACRO {ieeetc} {"IEEE Transactions on Computers"}
1072
1073 MACRO {ieeetcad}
1074 {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
1075
1076 MACRO {ipl} {"Information Processing Letters"}
1077
1078 MACRO {jacm} {"Journal of the ACM"}
1079
1080 MACRO {jcss} {"Journal of Computer and System Sciences"}
1081
1082 MACRO {scp} {"Science of Computer Programming"}
1083
1084 MACRO {sicomp} {"SIAM Journal on Computing"}
1085
1086 MACRO {tocs} {"ACM Transactions on Computer Systems"}
1087
1088 MACRO {tods} {"ACM Transactions on Database Systems"}
1089
1090 MACRO {tog} {"ACM Transactions on Graphics"}
1091
1092 MACRO {toms} {"ACM Transactions on Mathematical Software"}
1093
1094 MACRO {toois} {"ACM Transactions on Office Information Systems"}
1095
1096 MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
1097
1098 MACRO {tcs} {"Theoretical Computer Science"}
1099
1100 READ
1101
1102 FUNCTION {sortify}
1103 { purify$
1104 "l" change.case$
1105 }
1106
1107 INTEGERS { len }
1108
1109 FUNCTION {chop.word}
1110 { 's :=
1111 'len :=
1112 s #1 len substring$ =
1113 { s len #1 + global.max$ substring$ }
1114 's
1115 if$
1116 }
1117
1118 INTEGERS { et.al.char.used }
1119
1120 FUNCTION {initialize.et.al.char.used}
1121 { #0 'et.al.char.used :=
1122 }
1123
1124 EXECUTE {initialize.et.al.char.used}
1125
1126 FUNCTION {format.lab.names}
1127 { 's :=
1128 s num.names$ 'numnames :=
1129 numnames #1 >
1130 { numnames #4 >
1131 { #3 'namesleft := }
1132 { numnames 'namesleft := }
1133 if$
1134 #1 'nameptr :=
1135 ""
1136 { namesleft #0 > }
1137 { nameptr numnames =
1138 { s nameptr "{ff }{vv }{ll}{ jj}" format.name$ "others" =
1139 { "{\etalchar{+}}" *
1140 #1 'et.al.char.used :=
1141 }
1142 { s nameptr "{v{}}{l{}}" format.name$ * }
1143 if$
1144 }
1145 { s nameptr "{v{}}{l{}}" format.name$ * }
1146 if$
1147 nameptr #1 + 'nameptr :=
1148 namesleft #1 - 'namesleft :=
1149 }
1150 while$
1151 numnames #4 >
1152 { "{\etalchar{+}}" *
1153 #1 'et.al.char.used :=
1154 }
1155 'skip$
1156 if$
1157 }
1158 { s #1 "{v{}}{l{}}" format.name$
1159 duplicate$ text.length$ #2 <
1160 { pop$ s #1 "{ll}" format.name$ #3 text.prefix$ }
1161 'skip$
1162 if$
1163 }
1164 if$
1165 }
1166
1167 FUNCTION {author.key.label}
1168 { author empty$
1169 { key empty$
1170 { cite$ #1 #3 substring$ }
1171 { key #3 text.prefix$ }
1172 if$
1173 }
1174 { author format.lab.names }
1175 if$
1176 }
1177
1178 FUNCTION {author.editor.key.label}
1179 { author empty$
1180 { editor empty$
1181 { key empty$
1182 { cite$ #1 #3 substring$ }
1183 { key #3 text.prefix$ }
1184 if$
1185 }
1186 { editor format.lab.names }
1187 if$
1188 }
1189 { author format.lab.names }
1190 if$
1191 }
1192
1193 FUNCTION {author.key.organization.label}
1194 { author empty$
1195 { key empty$
1196 { organization empty$
1197 { cite$ #1 #3 substring$ }
1198 { "The " #4 organization chop.word #3 text.prefix$ }
1199 if$
1200 }
1201 { key #3 text.prefix$ }
1202 if$
1203 }
1204 { author format.lab.names }
1205 if$
1206 }
1207
1208 FUNCTION {editor.key.organization.label}
1209 { editor empty$
1210 { key empty$
1211 { organization empty$
1212 { cite$ #1 #3 substring$ }
1213 { organization #3 text.prefix$ }
1214 if$
1215 }
1216 { key #3 text.prefix$ }
1217 if$
1218 }
1219 { editor format.lab.names }
1220 if$
1221 }
1222
1223 FUNCTION {calc.label}
1224 { type$ "book" =
1225 type$ "inbook" =
1226 or
1227 'author.editor.key.label
1228 { type$ "proceedings" =
1229 'editor.key.organization.label
1230 { type$ "manual" =
1231 'author.key.organization.label
1232 'author.key.label
1233 if$
1234 }
1235 if$
1236 }
1237 if$
1238 duplicate$
1239 year field.or.null purify$ #-1 #2 substring$
1240 *
1241 'label :=
1242 year field.or.null purify$ #-1 #4 substring$
1243 *
1244 sortify 'sort.label :=
1245 }
1246
1247 FUNCTION {sort.format.names}
1248 { 's :=
1249 #1 'nameptr :=
1250 ""
1251 s num.names$ 'numnames :=
1252 numnames 'namesleft :=
1253 { namesleft #0 > }
1254 { nameptr #1 >
1255 { " " * }
1256 'skip$
1257 if$
1258 s nameptr "{ll{ }}{ ff{ }}{ vv{ }}{ jj{ }}" format.name$ 't :=
1259 nameptr numnames = t "others" = and
1260 { "et al" * }
1261 { t sortify * }
1262 if$
1263 nameptr #1 + 'nameptr :=
1264 namesleft #1 - 'namesleft :=
1265 }
1266 while$
1267 }
1268
1269 FUNCTION {sort.format.title}
1270 { sortify
1271 #1 global.max$ substring$
1272 }
1273
1274 FUNCTION {author.sort}
1275 { author empty$
1276 { key empty$
1277 { "to sort, need author or key in " cite$ * warning$
1278 ""
1279 }
1280 { key sortify }
1281 if$
1282 }
1283 { author sort.format.names }
1284 if$
1285 }
1286
1287 FUNCTION {author.editor.sort}
1288 { author empty$
1289 { editor empty$
1290 { key empty$
1291 { "to sort, need author, editor, or key in " cite$ * warning$
1292 ""
1293 }
1294 { key sortify }
1295 if$
1296 }
1297 { editor sort.format.names }
1298 if$
1299 }
1300 { author sort.format.names }
1301 if$
1302 }
1303
1304 FUNCTION {author.organization.sort}
1305 { author empty$
1306 { organization empty$
1307 { key empty$
1308 { "to sort, need author, organization, or key in " cite$ * warning$
1309 ""
1310 }
1311 { key sortify }
1312 if$
1313 }
1314 { "The " #4 organization chop.word sortify }
1315 if$
1316 }
1317 { author sort.format.names }
1318 if$
1319 }
1320
1321 FUNCTION {editor.organization.sort}
1322 { editor empty$
1323 { organization empty$
1324 { key empty$
1325 { "to sort, need editor, organization, or key in " cite$ * warning$
1326 ""
1327 }
1328 { key sortify }
1329 if$
1330 }
1331 { "The " #4 organization chop.word sortify }
1332 if$
1333 }
1334 { editor sort.format.names }
1335 if$
1336 }
1337
1338 FUNCTION {presort}
1339 { calc.label
1340 sort.label
1341 " "
1342 *
1343 type$ "book" =
1344 type$ "inbook" =
1345 or
1346 'author.editor.sort
1347 { type$ "proceedings" =
1348 'editor.organization.sort
1349 { type$ "manual" =
1350 'author.organization.sort
1351 'author.sort
1352 if$
1353 }
1354 if$
1355 }
1356 if$
1357 *
1358 " "
1359 *
1360 year field.or.null sortify
1361 *
1362 " "
1363 *
1364 title field.or.null
1365 sort.format.title
1366 *
1367 #1 entry.max$ substring$
1368 'sort.key$ :=
1369 }
1370
1371 ITERATE {presort}
1372
1373 SORT
1374
1375 STRINGS { longest.label last.sort.label next.extra }
1376
1377 INTEGERS { longest.label.width last.extra.num }
1378
1379 FUNCTION {initialize.longest.label}
1380 { "" 'longest.label :=
1381 #0 int.to.chr$ 'last.sort.label :=
1382 "" 'next.extra :=
1383 #0 'longest.label.width :=
1384 #0 'last.extra.num :=
1385 }
1386
1387 FUNCTION {forward.pass}
1388 { last.sort.label sort.label =
1389 { last.extra.num #1 + 'last.extra.num :=
1390 last.extra.num int.to.chr$ 'extra.label :=
1391 }
1392 { "a" chr.to.int$ 'last.extra.num :=
1393 "" 'extra.label :=
1394 sort.label 'last.sort.label :=
1395 }
1396 if$
1397 }
1398
1399 FUNCTION {reverse.pass}
1400 { next.extra "b" =
1401 { "a" 'extra.label := }
1402 'skip$
1403 if$
1404 label extra.label * 'label :=
1405 label width$ longest.label.width >
1406 { label 'longest.label :=
1407 label width$ 'longest.label.width :=
1408 }
1409 'skip$
1410 if$
1411 extra.label 'next.extra :=
1412 }
1413
1414 EXECUTE {initialize.longest.label}
1415
1416 ITERATE {forward.pass}
1417
1418 REVERSE {reverse.pass}
1419
1420 FUNCTION {begin.bib}
1421 { et.al.char.used
1422 { "\newcommand{\etalchar}[1]{$^{#1}$}" write$ newline$ }
1423 'skip$
1424 if$
1425 preamble$ empty$
1426 'skip$
1427 { preamble$ write$ newline$ }
1428 if$
1429 "\begin{thebibliography}{" longest.label * "}" * write$ newline$
1430 "\makeatletter" write$ newline$
1431 "\@tfor\dkbib@reserved@a:=0123456789\do{%" write$ newline$
1432 " \expandafter\sfcode\expandafter`\dkbib@reserved@a=1007}" write$ newline$
1433 "\providecommand{\dkbib@addperiod}{\ifnum\spacefactor=1007.\fi}" write$ newline$
1434 "\providecommand{\dkbibedition}[2]{#1\dkbib@addperiod~udgave}" write$ newline$
1435 "\providecommand{\dkbibEdition}[2]{#1\dkbib@addperiod~udgave}" write$ newline$
1436 "\providecommand{\dkbibisbn}[1]{\unskip\@gobble}" write$ newline$
1437 "\providecommand{\dkbibissn}[1]{\unskip\@gobble}" write$ newline$
1438 "\providecommand{\dkbiburl}[1]{\unskip\@gobble}" write$ newline$
1439 "\providecommand{\dkbibannote}[2]{\unskip}" write$ newline$
1440 "\providecommand{\dkbibdash}{\hbox{-}\penalty\@m}" write$ newline$
1441 "\makeatother" write$ newline$
1442 }
1443
1444 EXECUTE {begin.bib}
1445
1446 EXECUTE {init.state.consts}
1447
1448 ITERATE {call.type$}
1449
1450 FUNCTION {end.bib}
1451 { newline$
1452 "\end{thebibliography}" write$ newline$
1453 }
1454
1455 EXECUTE {end.bib}