Debian Codegraph @

texmf-dist/doc/latex/uafthesis/bib_styles/unsrtabbrv3.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 ENTRY
12 { address
13 author
14 booktitle
15 chapter
16 edition
17 editor
18 howpublished
19 institution
20 journal
21 key
22 month
23 note
24 number
25 organization
26 pages
27 publisher
28 school
29 series
30 title
31 type
32 volume
33 year
34 }
35 {}
36 { label }
37
38 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
39
40 FUNCTION {init.state.consts}
41 { #0 'before.all :=
42 #1 'mid.sentence :=
43 #2 'after.sentence :=
44 #3 'after.block :=
45 }
46
47 STRINGS { s t }
48
49 FUNCTION {output.nonnull}
50 { 's :=
51 output.state mid.sentence =
52 { ", " * write$ }
53 { output.state after.block =
54 { add.period$ write$
55 newline$
56 "\newblock " write$
57 }
58 { output.state before.all =
59 'write$
60 { add.period$ " " * write$ }
61 if$
62 }
63 if$
64 mid.sentence 'output.state :=
65 }
66 if$
67 s
68 }
69
70 FUNCTION {output}
71 { duplicate$ empty$
72 'pop$
73 'output.nonnull
74 if$
75 }
76
77 FUNCTION {output.check}
78 { 't :=
79 duplicate$ empty$
80 { pop$ "empty " t * " in " * cite$ * warning$ }
81 'output.nonnull
82 if$
83 }
84
85 FUNCTION {output.bibitem}
86 { newline$
87 "\bibitem{" write$
88 cite$ write$
89 "}" write$
90 newline$
91 ""
92 before.all 'output.state :=
93 }
94
95 FUNCTION {fin.entry}
96 { add.period$
97 write$
98 newline$
99 }
100
101 FUNCTION {new.block}
102 { output.state before.all =
103 'skip$
104 { after.block 'output.state := }
105 if$
106 }
107
108 FUNCTION {new.sentence}
109 { output.state after.block =
110 'skip$
111 { output.state before.all =
112 'skip$
113 { after.sentence 'output.state := }
114 if$
115 }
116 if$
117 }
118
119 FUNCTION {not}
120 { { #0 }
121 { #1 }
122 if$
123 }
124
125 FUNCTION {and}
126 { 'skip$
127 { pop$ #0 }
128 if$
129 }
130
131 FUNCTION {or}
132 { { pop$ #1 }
133 'skip$
134 if$
135 }
136
137 FUNCTION {new.block.checka}
138 { empty$
139 'skip$
140 'new.block
141 if$
142 }
143
144 FUNCTION {new.block.checkb}
145 { empty$
146 swap$ empty$
147 and
148 'skip$
149 'new.block
150 if$
151 }
152
153 FUNCTION {new.sentence.checka}
154 { empty$
155 'skip$
156 'new.sentence
157 if$
158 }
159
160 FUNCTION {new.sentence.checkb}
161 { empty$
162 swap$ empty$
163 and
164 'skip$
165 'new.sentence
166 if$
167 }
168
169 FUNCTION {field.or.null}
170 { duplicate$ empty$
171 { pop$ "" }
172 'skip$
173 if$
174 }
175
176 FUNCTION {emphasize}
177 { duplicate$ empty$
178 { pop$ "" }
179 { "{\em " swap$ * "}" * }
180 if$
181 }
182
183 INTEGERS { nameptr namesleft numnames }
184
185 FUNCTION {format.names}
186 { 's :=
187 #1 'nameptr :=
188 s num.names$ 'numnames :=
189 numnames 'namesleft :=
190 { namesleft #0 > }
191 { s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't :=
192 nameptr #1 >
193 { namesleft #1 >
194 { ", " * t * }
195 { numnames #2 >
196 { "," * }
197 'skip$
198 if$
199 t "others" =
200 { " et~al." * }
201 { " and " * t * }
202 if$
203 }
204 if$
205 }
206 't
207 if$
208 nameptr #1 + 'nameptr :=
209 namesleft #1 - 'namesleft :=
210 }
211 while$
212 }
213
214 FUNCTION {format.authors}
215 { author empty$
216 { "" }
217 { author format.names }
218 if$
219 }
220
221 FUNCTION {format.editors}
222 { editor empty$
223 { "" }
224 { editor format.names
225 editor num.names$ #1 >
226 { ", editors" * }
227 { ", editor" * }
228 if$
229 }
230 if$
231 }
232
233 FUNCTION {format.title}
234 { title empty$
235 { "" }
236 { title }
237 if$
238 }
239
240 FUNCTION {n.dashify}
241 { 't :=
242 ""
243 { t empty$ not }
244 { t #1 #1 substring$ "-" =
245 { t #1 #2 substring$ "--" = not
246 { "--" *
247 t #2 global.max$ substring$ 't :=
248 }
249 { { t #1 #1 substring$ "-" = }
250 { "-" *
251 t #2 global.max$ substring$ 't :=
252 }
253 while$
254 }
255 if$
256 }
257 { t #1 #1 substring$ *
258 t #2 global.max$ substring$ 't :=
259 }
260 if$
261 }
262 while$
263 }
264
265 FUNCTION {format.date}
266 { year empty$
267 { month empty$
268 { "" }
269 { "there's a month but no year in " cite$ * warning$
270 month
271 }
272 if$
273 }
274 { month empty$
275 'year
276 { month " " * year * }
277 if$
278 }
279 if$
280 }
281
282 FUNCTION {format.btitle}
283 { title emphasize
284 }
285
286 FUNCTION {tie.or.space.connect}
287 { duplicate$ text.length$ #3 <
288 { "~" }
289 { " " }
290 if$
291 swap$ * *
292 }
293
294 FUNCTION {either.or.check}
295 { empty$
296 'pop$
297 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
298 if$
299 }
300
301 FUNCTION {format.bvolume}
302 { volume empty$
303 { "" }
304 { "volume" volume tie.or.space.connect
305 series empty$
306 'skip$
307 { " of " * series emphasize * }
308 if$
309 "volume and number" number either.or.check
310 }
311 if$
312 }
313
314 FUNCTION {format.number.series}
315 { volume empty$
316 { number empty$
317 { series field.or.null }
318 { output.state mid.sentence =
319 { "number" }
320 { "Number" }
321 if$
322 number tie.or.space.connect
323 series empty$
324 { "there's a number but no series in " cite$ * warning$ }
325 { " in " * series * }
326 if$
327 }
328 if$
329 }
330 { "" }
331 if$
332 }
333
334 FUNCTION {format.edition}
335 { edition empty$
336 { "" }
337 { output.state mid.sentence =
338 { edition "l" change.case$ " edition" * }
339 { edition "t" change.case$ " edition" * }
340 if$
341 }
342 if$
343 }
344
345 INTEGERS { multiresult }
346
347 FUNCTION {multi.page.check}
348 { 't :=
349 #0 'multiresult :=
350 { multiresult not
351 t empty$ not
352 and
353 }
354 { t #1 #1 substring$
355 duplicate$ "-" =
356 swap$ duplicate$ "," =
357 swap$ "+" =
358 or or
359 { #1 'multiresult := }
360 { t #2 global.max$ substring$ 't := }
361 if$
362 }
363 while$
364 multiresult
365 }
366
367 FUNCTION {format.pages}
368 { pages empty$
369 { "" }
370 { pages multi.page.check
371 { "pages" pages n.dashify tie.or.space.connect }
372 { "page" pages tie.or.space.connect }
373 if$
374 }
375 if$
376 }
377
378 FUNCTION {format.vol.num.pages}
379 { volume field.or.null
380 number empty$
381 'skip$
382 { "(" number * ")" * *
383 volume empty$
384 { "there's a number but no volume in " cite$ * warning$ }
385 'skip$
386 if$
387 }
388 if$
389 pages empty$
390 'skip$
391 { duplicate$ empty$
392 { pop$ format.pages }
393 { ":" * pages n.dashify * }
394 if$
395 }
396 if$
397 }
398
399 FUNCTION {format.chapter.pages}
400 { chapter empty$
401 'format.pages
402 { type empty$
403 { "chapter" }
404 { type "l" change.case$ }
405 if$
406 chapter tie.or.space.connect
407 pages empty$
408 'skip$
409 { ", " * format.pages * }
410 if$
411 }
412 if$
413 }
414
415 FUNCTION {format.in.ed.booktitle}
416 { booktitle empty$
417 { "" }
418 { editor empty$
419 { "In " booktitle emphasize * }
420 { "In " format.editors * ", " * booktitle emphasize * }
421 if$
422 }
423 if$
424 }
425
426 FUNCTION {empty.misc.check}
427 { author empty$ title empty$ howpublished empty$
428 month empty$ year empty$ note empty$
429 and and and and and
430 key empty$ not and
431 { "all relevant fields are empty in " cite$ * warning$ }
432 'skip$
433 if$
434 }
435
436 FUNCTION {format.thesis.type}
437 { type empty$
438 'skip$
439 { pop$
440 type "t" change.case$
441 }
442 if$
443 }
444
445 FUNCTION {format.tr.number}
446 { type empty$
447 { "Technical Report" }
448 'type
449 if$
450 number empty$
451 { "t" change.case$ }
452 { number tie.or.space.connect }
453 if$
454 }
455
456 FUNCTION {format.article.crossref}
457 { key empty$
458 { journal empty$
459 { "need key or journal for " cite$ * " to crossref " * crossref *
460 warning$
461 ""
462 }
463 { "In {\em " journal * "\/}" * }
464 if$
465 }
466 { "In " key * }
467 if$
468 " \cite{" * crossref * "}" *
469 }
470
471 FUNCTION {format.crossref.editor}
472 { editor #1 "{vv~}{ll}" format.name$
473 editor num.names$ duplicate$
474 #2 >
475 { pop$ " et~al." * }
476 { #2 <
477 'skip$
478 { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
479 { " et~al." * }
480 { " and " * editor #2 "{vv~}{ll}" format.name$ * }
481 if$
482 }
483 if$
484 }
485 if$
486 }
487
488 FUNCTION {format.book.crossref}
489 { volume empty$
490 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
491 "In "
492 }
493 { "Volume" volume tie.or.space.connect
494 " of " *
495 }
496 if$
497 editor empty$
498 editor field.or.null author field.or.null =
499 or
500 { key empty$
501 { series empty$
502 { "need editor, key, or series for " cite$ * " to crossref " *
503 crossref * warning$
504 "" *
505 }
506 { "{\em " * series * "\/}" * }
507 if$
508 }
509 { key * }
510 if$
511 }
512 { format.crossref.editor * }
513 if$
514 " \cite{" * crossref * "}" *
515 }
516
517 FUNCTION {format.incoll.inproc.crossref}
518 { editor empty$
519 editor field.or.null author field.or.null =
520 or
521 { key empty$
522 { booktitle empty$
523 { "need editor, key, or booktitle for " cite$ * " to crossref " *
524 crossref * warning$
525 ""
526 }
527 { "In {\em " booktitle * "\/}" * }
528 if$
529 }
530 { "In " key * }
531 if$
532 }
533 { "In " format.crossref.editor * }
534 if$
535 " \cite{" * crossref * "}" *
536 }
537
538 FUNCTION {article}
539 { output.bibitem
540 format.authors "author" output.check
541 new.block
542 crossref missing$
543 { journal emphasize "journal" output.check
544 format.vol.num.pages output
545 format.date "year" output.check
546 }
547 { format.article.crossref output.nonnull
548 format.pages output
549 }
550 if$
551 new.block
552 note output
553 fin.entry
554 }
555
556 FUNCTION {book}
557 { output.bibitem
558 author empty$
559 { format.editors "author and editor" output.check }
560 { format.authors output.nonnull
561 crossref missing$
562 { "author and editor" editor either.or.check }
563 'skip$
564 if$
565 }
566 if$
567 new.block
568 format.btitle "title" output.check
569 crossref missing$
570 { format.bvolume output
571 new.block
572 format.number.series output
573 new.sentence
574 publisher "publisher" output.check
575 address output
576 }
577 { new.block
578 format.book.crossref output.nonnull
579 }
580 if$
581 format.edition output
582 format.date "year" output.check
583 new.block
584 note output
585 fin.entry
586 }
587
588 FUNCTION {booklet}
589 { output.bibitem
590 format.authors output
591 new.block
592 format.title "title" output.check
593 howpublished address new.block.checkb
594 howpublished output
595 address output
596 format.date output
597 new.block
598 note output
599 fin.entry
600 }
601
602 FUNCTION {inbook}
603 { output.bibitem
604 author empty$
605 { format.editors "author and editor" output.check }
606 { format.authors output.nonnull
607 crossref missing$
608 { "author and editor" editor either.or.check }
609 'skip$
610 if$
611 }
612 if$
613 new.block
614 format.btitle "title" output.check
615 crossref missing$
616 { format.bvolume output
617 format.chapter.pages "chapter and pages" output.check
618 new.block
619 format.number.series output
620 new.sentence
621 publisher "publisher" output.check
622 address output
623 }
624 { format.chapter.pages "chapter and pages" output.check
625 new.block
626 format.book.crossref output.nonnull
627 }
628 if$
629 format.edition output
630 format.date "year" output.check
631 new.block
632 note output
633 fin.entry
634 }
635
636 FUNCTION {incollection}
637 { output.bibitem
638 format.authors "author" output.check
639 new.block
640 format.title "title" output.check
641 new.block
642 crossref missing$
643 { format.in.ed.booktitle "booktitle" output.check
644 format.bvolume output
645 format.number.series output
646 format.chapter.pages output
647 new.sentence
648 publisher "publisher" output.check
649 address output
650 format.edition output
651 format.date "year" output.check
652 }
653 { format.incoll.inproc.crossref output.nonnull
654 format.chapter.pages output
655 }
656 if$
657 new.block
658 note output
659 fin.entry
660 }
661
662 FUNCTION {inproceedings}
663 { output.bibitem
664 format.authors "author" output.check
665 new.block
666 crossref missing$
667 { format.in.ed.booktitle "booktitle" output.check
668 format.bvolume output
669 format.number.series output
670 format.pages output
671 address empty$
672 { organization publisher new.sentence.checkb
673 organization output
674 publisher output
675 format.date "year" output.check
676 }
677 { address output.nonnull
678 format.date "year" output.check
679 new.sentence
680 organization output
681 publisher output
682 }
683 if$
684 }
685 { format.incoll.inproc.crossref output.nonnull
686 format.pages output
687 }
688 if$
689 new.block
690 note output
691 fin.entry
692 }
693
694 FUNCTION {conference} { inproceedings }
695
696 FUNCTION {manual}
697 { output.bibitem
698 author empty$
699 { organization empty$
700 'skip$
701 { organization output.nonnull
702 address output
703 }
704 if$
705 }
706 { format.authors output.nonnull }
707 if$
708 new.block
709 format.btitle "title" output.check
710 author empty$
711 { organization empty$
712 { address new.block.checka
713 address output
714 }
715 'skip$
716 if$
717 }
718 { organization address new.block.checkb
719 organization output
720 address output
721 }
722 if$
723 format.edition output
724 format.date output
725 new.block
726 note output
727 fin.entry
728 }
729
730 FUNCTION {mastersthesis}
731 { output.bibitem
732 format.authors "author" output.check
733 new.block
734 format.title "title" output.check
735 new.block
736 "Master's thesis" format.thesis.type output.nonnull
737 school "school" output.check
738 address output
739 format.date "year" output.check
740 new.block
741 note output
742 fin.entry
743 }
744
745 FUNCTION {misc}
746 { output.bibitem
747 format.authors output
748 title howpublished new.block.checkb
749 format.title output
750 howpublished new.block.checka
751 howpublished output
752 format.date output
753 new.block
754 note output
755 fin.entry
756 empty.misc.check
757 }
758
759 FUNCTION {phdthesis}
760 { output.bibitem
761 format.authors "author" output.check
762 new.block
763 format.btitle "title" output.check
764 new.block
765 "PhD thesis" format.thesis.type output.nonnull
766 school "school" output.check
767 address output
768 format.date "year" output.check
769 new.block
770 note output
771 fin.entry
772 }
773
774 FUNCTION {proceedings}
775 { output.bibitem
776 editor empty$
777 { organization output }
778 { format.editors output.nonnull }
779 if$
780 new.block
781 format.btitle "title" output.check
782 format.bvolume output
783 format.number.series output
784 address empty$
785 { editor empty$
786 { publisher new.sentence.checka }
787 { organization publisher new.sentence.checkb
788 organization output
789 }
790 if$
791 publisher output
792 format.date "year" output.check
793 }
794 { address output.nonnull
795 format.date "year" output.check
796 new.sentence
797 editor empty$
798 'skip$
799 { organization output }
800 if$
801 publisher output
802 }
803 if$
804 new.block
805 note output
806 fin.entry
807 }
808
809 FUNCTION {techreport}
810 { output.bibitem
811 format.authors "author" output.check
812 new.block
813 format.title "title" output.check
814 new.block
815 format.tr.number output.nonnull
816 institution "institution" output.check
817 address output
818 format.date "year" output.check
819 new.block
820 note output
821 fin.entry
822 }
823
824 FUNCTION {unpublished}
825 { output.bibitem
826 format.authors "author" output.check
827 new.block
828 format.title "title" output.check
829 new.block
830 note "note" output.check
831 format.date output
832 fin.entry
833 }
834
835 FUNCTION {default.type} { misc }
836
837 MACRO {jan} {"Jan."}
838
839 MACRO {feb} {"Feb."}
840
841 MACRO {mar} {"Mar."}
842
843 MACRO {apr} {"Apr."}
844
845 MACRO {may} {"May"}
846
847 MACRO {jun} {"June"}
848
849 MACRO {jul} {"July"}
850
851 MACRO {aug} {"Aug."}
852
853 MACRO {sep} {"Sept."}
854
855 MACRO {oct} {"Oct."}
856
857 MACRO {nov} {"Nov."}
858
859 MACRO {dec} {"Dec."}
860
861 MACRO {acmcs} {"ACM Comput. Surv."}
862
863 MACRO {acta} {"Acta Inf."}
864
865 MACRO {cacm} {"Commun. ACM"}
866
867 MACRO {ibmjrd} {"IBM J. Res. Dev."}
868
869 MACRO {ibmsj} {"IBM Syst.~J."}
870
871 MACRO {ieeese} {"IEEE Trans. Softw. Eng."}
872
873 MACRO {ieeetc} {"IEEE Trans. Comput."}
874
875 MACRO {ieeetcad}
876 {"IEEE Trans. Comput.-Aided Design Integrated Circuits"}
877
878 MACRO {ipl} {"Inf. Process. Lett."}
879
880 MACRO {jacm} {"J.~ACM"}
881
882 MACRO {jcss} {"J.~Comput. Syst. Sci."}
883
884 MACRO {scp} {"Sci. Comput. Programming"}
885
886 MACRO {sicomp} {"SIAM J. Comput."}
887
888 MACRO {tocs} {"ACM Trans. Comput. Syst."}
889
890 MACRO {tods} {"ACM Trans. Database Syst."}
891
892 MACRO {tog} {"ACM Trans. Gr."}
893
894 MACRO {toms} {"ACM Trans. Math. Softw."}
895
896 MACRO {toois} {"ACM Trans. Office Inf. Syst."}
897
898 MACRO {toplas} {"ACM Trans. Prog. Lang. Syst."}
899
900 MACRO {tcs} {"Theoretical Comput. Sci."}
901
902 READ
903
904 STRINGS { longest.label }
905
906 INTEGERS { number.label longest.label.width }
907
908 FUNCTION {initialize.longest.label}
909 { "" 'longest.label :=
910 #1 'number.label :=
911 #0 'longest.label.width :=
912 }
913
914 FUNCTION {longest.label.pass}
915 { number.label int.to.str$ 'label :=
916 number.label #1 + 'number.label :=
917 label width$ longest.label.width >
918 { label 'longest.label :=
919 label width$ 'longest.label.width :=
920 }
921 'skip$
922 if$
923 }
924
925 EXECUTE {initialize.longest.label}
926
927 ITERATE {longest.label.pass}
928
929 FUNCTION {begin.bib}
930 { preamble$ empty$
931 'skip$
932 { preamble$ write$ newline$ }
933 if$
934 "\begin{thebibliography}{" longest.label * "}" * write$ newline$
935 }
936
937 EXECUTE {begin.bib}
938
939 EXECUTE {init.state.consts}
940
941 ITERATE {call.type$}
942
943 FUNCTION {end.bib}
944 { newline$
945 "\end{thebibliography}" write$ newline$
946 }
947
948 EXECUTE {end.bib}