Debian Codegraph @

texmf-dist/doc/latex/umthesis/mybibstyle.bst

raw
1 %%
2 %% This is file `felty3.bst',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% merlin.mbs (with options: `ay,nat,nm-revv1,jnrlst,keyxyr,dt-beg,yr-per,yrp-per,note-yr,volp-com,num-xser,bkpg-x,add-pub,pre-pub,edparc,bkedcap,blk-com,blknt,ppx,ed,abr,xedn,url,url-blk')
8 %% ----------------------------------------
9 %% *** updated stylesheet for prospectus ***
10 %%
11 %% Copyright 1994-2002 Patrick W Daly
12 % ===============================================================
13 % IMPORTANT NOTICE:
14 % This bibliographic style (bst) file has been generated from one or
15 % more master bibliographic style (mbs) files, listed above.
16 %
17 % This generated file can be redistributed and/or modified under the terms
18 % of the LaTeX Project Public License Distributed from CTAN
19 % archives in directory macros/latex/base/lppl.txt; either
20 % version 1 of the License, or any later version.
21 % ===============================================================
22 % Name and version information of the main mbs file:
23 % \ProvidesFile{merlin.mbs}[2002/10/21 4.05 (PWD, AO, DPC)]
24 % For use with BibTeX version 0.99a or later
25 %-------------------------------------------------------------------
26 % This bibliography style file is intended for texts in ENGLISH
27 % This is an author-year citation style bibliography. As such, it is
28 % non-standard LaTeX, and requires a special package file to function properly.
29 % Such a package is natbib.sty by Patrick W. Daly
30 % The form of the \bibitem entries is
31 % \bibitem[Jones et al.(1990)]{key}...
32 % \bibitem[Jones et al.(1990)Jones, Baker, and Smith]{key}...
33 % The essential feature is that the label (the part in brackets) consists
34 % of the author names, as they should appear in the citation, with the year
35 % in parentheses following. There must be no space before the opening
36 % parenthesis!
37 % With natbib v5.3, a full list of authors may also follow the year.
38 % In natbib.sty, it is possible to define the type of enclosures that is
39 % really wanted (brackets or parentheses), but in either case, there must
40 % be parentheses in the label.
41 % The \cite command functions as follows:
42 % \citet{key} ==>> Jones et al. (1990)
43 % \citet*{key} ==>> Jones, Baker, and Smith (1990)
44 % \citep{key} ==>> (Jones et al., 1990)
45 % \citep*{key} ==>> (Jones, Baker, and Smith, 1990)
46 % \citep[chap. 2]{key} ==>> (Jones et al., 1990, chap. 2)
47 % \citep[e.g.][]{key} ==>> (e.g. Jones et al., 1990)
48 % \citep[e.g.][p. 32]{key} ==>> (e.g. Jones et al., p. 32)
49 % \citeauthor{key} ==>> Jones et al.
50 % \citeauthor*{key} ==>> Jones, Baker, and Smith
51 % \citeyear{key} ==>> 1990
52 %---------------------------------------------------------------------
53
54 ENTRY
55 { address
56 author
57 booktitle
58 chapter
59 edition
60 editor
61 howpublished
62 institution
63 journal
64 key
65 month
66 note
67 number
68 organization
69 pages
70 publisher
71 school
72 series
73 title
74 type
75 url
76 volume
77 year
78 }
79 {}
80 { label extra.label sort.label short.list }
81 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
82 FUNCTION {init.state.consts}
83 { #0 'before.all :=
84 #1 'mid.sentence :=
85 #2 'after.sentence :=
86 #3 'after.block :=
87 }
88 STRINGS { s t}
89 FUNCTION {output.nonnull}
90 { 's :=
91 output.state mid.sentence =
92 { ", " * write$ }
93 { output.state after.block =
94 { add.period$ write$
95 newline$
96 "\newblock " write$
97 }
98 { output.state before.all =
99 'write$
100 { add.period$ " " * write$ }
101 if$
102 }
103 if$
104 mid.sentence 'output.state :=
105 }
106 if$
107 s
108 }
109 FUNCTION {output}
110 { duplicate$ empty$
111 'pop$
112 'output.nonnull
113 if$
114 }
115 FUNCTION {output.check}
116 { 't :=
117 duplicate$ empty$
118 { pop$ "empty " t * " in " * cite$ * warning$ }
119 'output.nonnull
120 if$
121 }
122 FUNCTION {fin.entry}
123 { add.period$
124 write$
125 newline$
126 }
127
128 FUNCTION {new.block}
129 { output.state before.all =
130 'skip$
131 { after.block 'output.state := }
132 if$
133 }
134 FUNCTION {new.sentence}
135 { output.state after.block =
136 'skip$
137 { output.state before.all =
138 'skip$
139 { after.sentence 'output.state := }
140 if$
141 }
142 if$
143 }
144 FUNCTION {add.blank}
145 { " " * before.all 'output.state :=
146 }
147
148 FUNCTION {date.block}
149 {
150 new.sentence
151 }
152
153 FUNCTION {not}
154 { { #0 }
155 { #1 }
156 if$
157 }
158 FUNCTION {and}
159 { 'skip$
160 { pop$ #0 }
161 if$
162 }
163 FUNCTION {or}
164 { { pop$ #1 }
165 'skip$
166 if$
167 }
168 FUNCTION {new.block.checkb}
169 { empty$
170 swap$ empty$
171 and
172 'skip$
173 'new.block
174 if$
175 }
176 FUNCTION {field.or.null}
177 { duplicate$ empty$
178 { pop$ "" }
179 'skip$
180 if$
181 }
182 FUNCTION {emphasize}
183 { duplicate$ empty$
184 { pop$ "" }
185 { "{\em " swap$ * "\/}" * }
186 if$
187 }
188 FUNCTION {tie.or.space.prefix}
189 { duplicate$ text.length$ #3 <
190 { "~" }
191 { " " }
192 if$
193 swap$
194 }
195
196 FUNCTION {capitalize}
197 { "u" change.case$ "t" change.case$ }
198
199 FUNCTION {space.word}
200 { " " swap$ * " " * }
201 % Here are the language-specific definitions for explicit words.
202 % Each function has a name bbl.xxx where xxx is the English word.
203 % The language selected here is ENGLISH
204 FUNCTION {bbl.and}
205 { "and"}
206
207 FUNCTION {bbl.etal}
208 { "et~al." }
209
210 FUNCTION {bbl.editors}
211 { "eds." }
212
213 FUNCTION {bbl.editor}
214 { "ed." }
215
216 FUNCTION {bbl.edby}
217 { "edited by" }
218
219 FUNCTION {bbl.edition}
220 { "edn." }
221
222 FUNCTION {bbl.volume}
223 { "vol." }
224
225 FUNCTION {bbl.of}
226 { "of" }
227
228 FUNCTION {bbl.number}
229 { "no." }
230
231 FUNCTION {bbl.nr}
232 { "no." }
233
234 FUNCTION {bbl.in}
235 { "in" }
236
237 FUNCTION {bbl.pages}
238 { "" }
239
240 FUNCTION {bbl.page}
241 { "" }
242
243 FUNCTION {bbl.chapter}
244 { "chap." }
245
246 FUNCTION {bbl.techrep}
247 { "Tech. Rep." }
248
249 FUNCTION {bbl.mthesis}
250 { "Master's thesis" }
251
252 FUNCTION {bbl.phdthesis}
253 { "Ph.D. thesis" }
254
255 MACRO {jan} {"Jan."}
256
257 MACRO {feb} {"Feb."}
258
259 MACRO {mar} {"Mar."}
260
261 MACRO {apr} {"Apr."}
262
263 MACRO {may} {"May"}
264
265 MACRO {jun} {"Jun."}
266
267 MACRO {jul} {"Jul."}
268
269 MACRO {aug} {"Aug."}
270
271 MACRO {sep} {"Sep."}
272
273 MACRO {oct} {"Oct."}
274
275 MACRO {nov} {"Nov."}
276
277 MACRO {dec} {"Dec."}
278
279 MACRO {acmcs} {"ACM Computing Surveys"}
280
281 MACRO {acta} {"Acta Informatica"}
282
283 MACRO {cacm} {"Communications of the ACM"}
284
285 MACRO {ibmjrd} {"IBM Journal of Research and Development"}
286
287 MACRO {ibmsj} {"IBM Systems Journal"}
288
289 MACRO {ieeese} {"IEEE Transactions on Software Engineering"}
290
291 MACRO {ieeetc} {"IEEE Transactions on Computers"}
292
293 MACRO {ieeetcad}
294 {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
295
296 MACRO {ipl} {"Information Processing Letters"}
297
298 MACRO {jacm} {"Journal of the ACM"}
299
300 MACRO {jcss} {"Journal of Computer and System Sciences"}
301
302 MACRO {scp} {"Science of Computer Programming"}
303
304 MACRO {sicomp} {"SIAM Journal on Computing"}
305
306 MACRO {tocs} {"ACM Transactions on Computer Systems"}
307
308 MACRO {tods} {"ACM Transactions on Database Systems"}
309
310 MACRO {tog} {"ACM Transactions on Graphics"}
311
312 MACRO {toms} {"ACM Transactions on Mathematical Software"}
313
314 MACRO {toois} {"ACM Transactions on Office Information Systems"}
315
316 MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
317
318 MACRO {tcs} {"Theoretical Computer Science"}
319 FUNCTION {bibinfo.check}
320 { swap$
321 duplicate$ missing$
322 {
323 pop$ pop$
324 ""
325 }
326 { duplicate$ empty$
327 {
328 swap$ pop$
329 }
330 { swap$
331 pop$
332 }
333 if$
334 }
335 if$
336 }
337 FUNCTION {bibinfo.warn}
338 { swap$
339 duplicate$ missing$
340 {
341 swap$ "missing " swap$ * " in " * cite$ * warning$ pop$
342 ""
343 }
344 { duplicate$ empty$
345 {
346 swap$ "empty " swap$ * " in " * cite$ * warning$
347 }
348 { swap$
349 pop$
350 }
351 if$
352 }
353 if$
354 }
355 FUNCTION {format.url}
356 { url empty$
357 { "" }
358 { "\urlprefix\url{" url * "}" * }
359 if$
360 }
361
362 STRINGS { bibinfo}
363 INTEGERS { nameptr namesleft numnames }
364
365 FUNCTION {format.names}
366 { 'bibinfo :=
367 duplicate$ empty$ 'skip$ {
368 's :=
369 "" 't :=
370 #1 'nameptr :=
371 s num.names$ 'numnames :=
372 numnames 'namesleft :=
373 { namesleft #0 > }
374 { s nameptr
375 duplicate$ #1 >
376 { "{ff~}{vv~}{ll}{, jj}" }
377 { "{vv~}{ll}{, ff}{, jj}" }
378 if$
379 format.name$
380 bibinfo bibinfo.check
381 't :=
382 nameptr #1 >
383 {
384 namesleft #1 >
385 { ", " * t * }
386 {
387 numnames #2 >
388 { "," * }
389 'skip$
390 if$
391 s nameptr "{ll}" format.name$ duplicate$ "others" =
392 { 't := }
393 { pop$ }
394 if$
395 t "others" =
396 {
397 " " * bbl.etal *
398 }
399 {
400 bbl.and
401 space.word * t *
402 }
403 if$
404 }
405 if$
406 }
407 't
408 if$
409 nameptr #1 + 'nameptr :=
410 namesleft #1 - 'namesleft :=
411 }
412 while$
413 } if$
414 }
415 FUNCTION {format.names.ed}
416 {
417 'bibinfo :=
418 duplicate$ empty$ 'skip$ {
419 's :=
420 "" 't :=
421 #1 'nameptr :=
422 s num.names$ 'numnames :=
423 numnames 'namesleft :=
424 { namesleft #0 > }
425 { s nameptr
426 "{ff~}{vv~}{ll}{, jj}"
427 format.name$
428 bibinfo bibinfo.check
429 't :=
430 nameptr #1 >
431 {
432 namesleft #1 >
433 { ", " * t * }
434 {
435 numnames #2 >
436 { "," * }
437 'skip$
438 if$
439 s nameptr "{ll}" format.name$ duplicate$ "others" =
440 { 't := }
441 { pop$ }
442 if$
443 t "others" =
444 {
445
446 " " * bbl.etal *
447 }
448 {
449 bbl.and
450 space.word * t *
451 }
452 if$
453 }
454 if$
455 }
456 't
457 if$
458 nameptr #1 + 'nameptr :=
459 namesleft #1 - 'namesleft :=
460 }
461 while$
462 } if$
463 }
464 FUNCTION {format.key}
465 { empty$
466 { key field.or.null }
467 { "" }
468 if$
469 }
470
471 FUNCTION {format.authors}
472 { author "author" format.names
473 }
474 FUNCTION {get.bbl.editor}
475 { editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ }
476
477 FUNCTION {format.editors}
478 { editor "editor" format.names duplicate$ empty$ 'skip$
479 {
480 "," *
481 " " *
482 get.bbl.editor
483 capitalize
484 "(" swap$ * ")" *
485 *
486 }
487 if$
488 }
489 FUNCTION {format.note}
490 {
491 note empty$
492 { "" }
493 { note #1 #1 substring$
494 duplicate$ "{" =
495 'skip$
496 { output.state mid.sentence =
497 { "l" }
498 { "u" }
499 if$
500 change.case$
501 }
502 if$
503 note #2 global.max$ substring$ * "note" bibinfo.check
504 }
505 if$
506 }
507
508 FUNCTION {format.title}
509 { title
510 duplicate$ empty$ 'skip$
511 { "t" change.case$ }
512 if$
513 "title" bibinfo.check
514 }
515 FUNCTION {format.full.names}
516 {'s :=
517 "" 't :=
518 #1 'nameptr :=
519 s num.names$ 'numnames :=
520 numnames 'namesleft :=
521 { namesleft #0 > }
522 { s nameptr
523 "{vv~}{ll}" format.name$
524 't :=
525 nameptr #1 >
526 {
527 namesleft #1 >
528 { ", " * t * }
529 {
530 s nameptr "{ll}" format.name$ duplicate$ "others" =
531 { 't := }
532 { pop$ }
533 if$
534 t "others" =
535 {
536 " " * bbl.etal *
537 }
538 {
539 numnames #2 >
540 { "," * }
541 'skip$
542 if$
543 bbl.and
544 space.word * t *
545 }
546 if$
547 }
548 if$
549 }
550 't
551 if$
552 nameptr #1 + 'nameptr :=
553 namesleft #1 - 'namesleft :=
554 }
555 while$
556 }
557
558 FUNCTION {author.editor.key.full}
559 { author empty$
560 { editor empty$
561 { key empty$
562 { cite$ #1 #3 substring$ }
563 'key
564 if$
565 }
566 { editor format.full.names }
567 if$
568 }
569 { author format.full.names }
570 if$
571 }
572
573 FUNCTION {author.key.full}
574 { author empty$
575 { key empty$
576 { cite$ #1 #3 substring$ }
577 'key
578 if$
579 }
580 { author format.full.names }
581 if$
582 }
583
584 FUNCTION {editor.key.full}
585 { editor empty$
586 { key empty$
587 { cite$ #1 #3 substring$ }
588 'key
589 if$
590 }
591 { editor format.full.names }
592 if$
593 }
594
595 FUNCTION {make.full.names}
596 { type$ "book" =
597 type$ "inbook" =
598 or
599 'author.editor.key.full
600 { type$ "proceedings" =
601 'editor.key.full
602 'author.key.full
603 if$
604 }
605 if$
606 }
607
608 FUNCTION {output.bibitem}
609 { newline$
610 "\bibitem[{" write$
611 label write$
612 ")" make.full.names duplicate$ short.list =
613 { pop$ }
614 { * }
615 if$
616 "}]{" * write$
617 cite$ write$
618 "}" write$
619 %newline$
620 ""
621 before.all 'output.state :=
622 }
623
624 FUNCTION {n.dashify}
625 {
626 't :=
627 ""
628 { t empty$ not }
629 { t #1 #1 substring$ "-" =
630 { t #1 #2 substring$ "--" = not
631 { "--" *
632 t #2 global.max$ substring$ 't :=
633 }
634 { { t #1 #1 substring$ "-" = }
635 { "-" *
636 t #2 global.max$ substring$ 't :=
637 }
638 while$
639 }
640 if$
641 }
642 { t #1 #1 substring$ *
643 t #2 global.max$ substring$ 't :=
644 }
645 if$
646 }
647 while$
648 }
649
650 FUNCTION {word.in}
651 { bbl.in
652 " " * }
653
654 FUNCTION {format.date}
655 { year "year" bibinfo.check duplicate$ empty$
656 {
657 "empty year in " cite$ * "; set to ????" * warning$
658 pop$ "????"
659 }
660 'skip$
661 if$
662 extra.label *
663 before.all 'output.state :=
664 after.sentence 'output.state :=
665 }
666 FUNCTION {format.btitle}
667 { title "title" bibinfo.check
668 duplicate$ empty$ 'skip$
669 {
670 emphasize
671 }
672 if$
673 }
674 FUNCTION {either.or.check}
675 { empty$
676 'pop$
677 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
678 if$
679 }
680 FUNCTION {format.bvolume}
681 { volume empty$
682 { "" }
683 { bbl.volume volume tie.or.space.prefix
684 "volume" bibinfo.check * *
685 series "series" bibinfo.check
686 duplicate$ empty$ 'pop$
687 { swap$ bbl.of space.word * swap$
688 emphasize * }
689 if$
690 "volume and number" number either.or.check
691 }
692 if$
693 }
694 FUNCTION {format.number.series}
695 { volume empty$
696 { number empty$
697 { series field.or.null }
698 { series empty$
699 { number "number" bibinfo.check }
700 { output.state mid.sentence =
701 { bbl.number }
702 { bbl.number capitalize }
703 if$
704 number tie.or.space.prefix "number" bibinfo.check * *
705 bbl.in space.word *
706 series "series" bibinfo.check *
707 }
708 if$
709 }
710 if$
711 }
712 { "" }
713 if$
714 }
715
716 FUNCTION {format.edition}
717 { edition duplicate$ empty$ 'skip$
718 {
719 output.state mid.sentence =
720 { "l" }
721 { "t" }
722 if$ change.case$
723 "edition" bibinfo.check
724 " " * bbl.edition *
725 }
726 if$
727 }
728 INTEGERS { multiresult }
729 FUNCTION {multi.page.check}
730 { 't :=
731 #0 'multiresult :=
732 { multiresult not
733 t empty$ not
734 and
735 }
736 { t #1 #1 substring$
737 duplicate$ "-" =
738 swap$ duplicate$ "," =
739 swap$ "+" =
740 or or
741 { #1 'multiresult := }
742 { t #2 global.max$ substring$ 't := }
743 if$
744 }
745 while$
746 multiresult
747 }
748 FUNCTION {format.pages}
749 { pages duplicate$ empty$ 'skip$
750 { duplicate$ multi.page.check
751 {
752 n.dashify
753 }
754 {
755 }
756 if$
757 "pages" bibinfo.check
758 }
759 if$
760 }
761 FUNCTION {format.journal.pages}
762 { pages duplicate$ empty$ 'pop$
763 { swap$ duplicate$ empty$
764 { pop$ pop$ format.pages }
765 {
766 ", " *
767 swap$
768 n.dashify
769 "pages" bibinfo.check
770 *
771 }
772 if$
773 }
774 if$
775 }
776 FUNCTION {format.vol.num.pages}
777 { volume field.or.null
778 duplicate$ empty$ 'skip$
779 {
780 "volume" bibinfo.check
781 }
782 if$
783 number "number" bibinfo.check duplicate$ empty$ 'skip$
784 {
785 swap$ duplicate$ empty$
786 { "there's a number but no volume in " cite$ * warning$ }
787 'skip$
788 if$
789 swap$
790 "(" swap$ * ")" *
791 }
792 if$ *
793 format.journal.pages
794 }
795
796 FUNCTION {format.chapter.pages}
797 { chapter empty$
798 'format.pages
799 { type empty$
800 { bbl.chapter }
801 { type "l" change.case$
802 "type" bibinfo.check
803 }
804 if$
805 chapter tie.or.space.prefix
806 "chapter" bibinfo.check
807 * *
808 pages empty$
809 'skip$
810 { ", " * format.pages * }
811 if$
812 }
813 if$
814 }
815
816 FUNCTION {format.booktitle}
817 {
818 booktitle "booktitle" bibinfo.check
819 emphasize
820 }
821 FUNCTION {format.in.ed.booktitle}
822 { format.booktitle duplicate$ empty$ 'skip$
823 {
824 editor "editor" format.names.ed duplicate$ empty$ 'pop$
825 {
826 "," *
827 " " *
828 get.bbl.editor
829 capitalize
830 "(" swap$ * ") " *
831 * swap$
832 * }
833 if$
834 word.in swap$ *
835 }
836 if$
837 }
838 FUNCTION {format.thesis.type}
839 { type duplicate$ empty$
840 'pop$
841 { swap$ pop$
842 "t" change.case$ "type" bibinfo.check
843 }
844 if$
845 }
846 FUNCTION {format.tr.number}
847 { number "number" bibinfo.check
848 type duplicate$ empty$
849 { pop$ bbl.techrep }
850 'skip$
851 if$
852 "type" bibinfo.check
853 swap$ duplicate$ empty$
854 { pop$ "t" change.case$ }
855 { tie.or.space.prefix * * }
856 if$
857 }
858 FUNCTION {format.article.crossref}
859 {
860 word.in
861 " \cite{" * crossref * "}" *
862 }
863 FUNCTION {format.book.crossref}
864 { volume duplicate$ empty$
865 { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
866 pop$ word.in
867 }
868 { bbl.volume
869 swap$ tie.or.space.prefix "volume" bibinfo.check * * bbl.of space.word *
870 }
871 if$
872 " \cite{" * crossref * "}" *
873 }
874 FUNCTION {format.incoll.inproc.crossref}
875 {
876 word.in
877 " \cite{" * crossref * "}" *
878 }
879 FUNCTION {format.org.or.pub}
880 { 't :=
881 ""
882 address empty$ t empty$ and
883 'skip$
884 {
885 address "address" bibinfo.check *
886 t empty$
887 'skip$
888 { address empty$
889 'skip$
890 { ": " * }
891 if$
892 t *
893 }
894 if$
895 }
896 if$
897 }
898 FUNCTION {format.publisher.address}
899 { publisher "publisher" bibinfo.warn format.org.or.pub
900 }
901
902 FUNCTION {format.organization.address}
903 { organization "organization" bibinfo.check format.org.or.pub
904 }
905
906 FUNCTION {article}
907 { output.bibitem
908 format.authors "author" output.check
909 author format.key output
910 format.date "year" output.check
911 date.block
912 format.title "title" output.check
913 crossref missing$
914 {
915 journal
916 "journal" bibinfo.check
917 emphasize
918 "journal" output.check
919 format.vol.num.pages output
920 }
921 { format.article.crossref output.nonnull
922 format.pages output
923 }
924 if$
925 format.url output
926 new.sentence
927 format.note output
928 fin.entry
929 }
930 FUNCTION {book}
931 { output.bibitem
932 author empty$
933 { format.editors "author and editor" output.check
934 editor format.key output
935 add.blank
936 }
937 { format.authors output.nonnull
938 crossref missing$
939 { "author and editor" editor either.or.check }
940 'skip$
941 if$
942 }
943 if$
944 format.date "year" output.check
945 date.block
946 format.btitle "title" output.check
947 crossref missing$
948 { format.bvolume output
949 format.number.series output
950 format.publisher.address output
951 }
952 {
953 format.book.crossref output.nonnull
954 }
955 if$
956 format.edition output
957 format.url output
958 new.sentence
959 format.note output
960 fin.entry
961 }
962 FUNCTION {booklet}
963 { output.bibitem
964 format.authors output
965 author format.key output
966 format.date "year" output.check
967 date.block
968 format.title "title" output.check
969 howpublished "howpublished" bibinfo.check output
970 address "address" bibinfo.check output
971 format.url output
972 new.sentence
973 format.note output
974 fin.entry
975 }
976
977 FUNCTION {inbook}
978 { output.bibitem
979 author empty$
980 { format.editors "author and editor" output.check
981 editor format.key output
982 }
983 { format.authors output.nonnull
984 crossref missing$
985 { "author and editor" editor either.or.check }
986 'skip$
987 if$
988 }
989 if$
990 format.date "year" output.check
991 date.block
992 format.btitle "title" output.check
993 crossref missing$
994 {
995 format.publisher.address output
996 format.bvolume output
997 format.chapter.pages "chapter and pages" output.check
998 format.number.series output
999 }
1000 {
1001 format.chapter.pages "chapter and pages" output.check
1002 format.book.crossref output.nonnull
1003 }
1004 if$
1005 format.edition output
1006 format.url output
1007 new.sentence
1008 format.note output
1009 fin.entry
1010 }
1011
1012 FUNCTION {incollection}
1013 { output.bibitem
1014 format.authors "author" output.check
1015 author format.key output
1016 format.date "year" output.check
1017 date.block
1018 format.title "title" output.check
1019 crossref missing$
1020 { format.in.ed.booktitle "booktitle" output.check
1021 format.publisher.address output
1022 format.bvolume output
1023 format.number.series output
1024 format.chapter.pages output
1025 format.edition output
1026 }
1027 { format.incoll.inproc.crossref output.nonnull
1028 format.chapter.pages output
1029 }
1030 if$
1031 format.url output
1032 new.sentence
1033 format.note output
1034 fin.entry
1035 }
1036 FUNCTION {inproceedings}
1037 { output.bibitem
1038 format.authors "author" output.check
1039 author format.key output
1040 format.date "year" output.check
1041 date.block
1042 format.title "title" output.check
1043 crossref missing$
1044 { format.in.ed.booktitle "booktitle" output.check
1045 publisher empty$
1046 { format.organization.address output }
1047 { organization "organization" bibinfo.check output
1048 format.publisher.address output
1049 }
1050 if$
1051 format.bvolume output
1052 format.number.series output
1053 format.pages output
1054 }
1055 { format.incoll.inproc.crossref output.nonnull
1056 format.pages output
1057 }
1058 if$
1059 format.url output
1060 new.sentence
1061 format.note output
1062 fin.entry
1063 }
1064 FUNCTION {conference} { inproceedings }
1065 FUNCTION {manual}
1066 { output.bibitem
1067 format.authors output
1068 author format.key output
1069 format.date "year" output.check
1070 date.block
1071 format.btitle "title" output.check
1072 organization "organization" bibinfo.check output
1073 address "address" bibinfo.check output
1074 format.edition output
1075 format.url output
1076 new.sentence
1077 format.note output
1078 fin.entry
1079 }
1080
1081 FUNCTION {mastersthesis}
1082 { output.bibitem
1083 format.authors "author" output.check
1084 author format.key output
1085 format.date "year" output.check
1086 date.block
1087 format.btitle
1088 "title" output.check
1089 bbl.mthesis format.thesis.type output.nonnull
1090 school "school" bibinfo.warn output
1091 address "address" bibinfo.check output
1092 format.url output
1093 new.sentence
1094 format.note output
1095 fin.entry
1096 }
1097
1098 FUNCTION {misc}
1099 { output.bibitem
1100 format.authors output
1101 author format.key output
1102 format.date "year" output.check
1103 date.block
1104 format.title output
1105 howpublished "howpublished" bibinfo.check output
1106 format.url output
1107 new.sentence
1108 format.note output
1109 fin.entry
1110 }
1111 FUNCTION {phdthesis}
1112 { output.bibitem
1113 format.authors "author" output.check
1114 author format.key output
1115 format.date "year" output.check
1116 date.block
1117 format.btitle
1118 "title" output.check
1119 bbl.phdthesis format.thesis.type output.nonnull
1120 school "school" bibinfo.warn output
1121 address "address" bibinfo.check output
1122 format.url output
1123 new.sentence
1124 format.note output
1125 fin.entry
1126 }
1127
1128 FUNCTION {proceedings}
1129 { output.bibitem
1130 format.editors output
1131 editor format.key output
1132 format.date "year" output.check
1133 date.block
1134 format.btitle "title" output.check
1135 format.bvolume output
1136 format.number.series output
1137 publisher empty$
1138 { format.organization.address output }
1139 { organization "organization" bibinfo.check output
1140 format.publisher.address output
1141 }
1142 if$
1143 format.url output
1144 new.sentence
1145 format.note output
1146 fin.entry
1147 }
1148
1149 FUNCTION {techreport}
1150 { output.bibitem
1151 format.authors "author" output.check
1152 author format.key output
1153 format.date "year" output.check
1154 date.block
1155 format.title
1156 "title" output.check
1157 format.tr.number output.nonnull
1158 institution "institution" bibinfo.warn output
1159 address "address" bibinfo.check output
1160 format.url output
1161 new.sentence
1162 format.note output
1163 fin.entry
1164 }
1165
1166 FUNCTION {unpublished}
1167 { output.bibitem
1168 format.authors "author" output.check
1169 author format.key output
1170 format.date "year" output.check
1171 date.block
1172 format.title "title" output.check
1173 format.url output
1174 new.sentence
1175 format.note "note" output.check
1176 fin.entry
1177 }
1178
1179 FUNCTION {default.type} { misc }
1180 READ
1181 FUNCTION {sortify}
1182 { purify$
1183 "l" change.case$
1184 }
1185 INTEGERS { len }
1186 FUNCTION {chop.word}
1187 { 's :=
1188 'len :=
1189 s #1 len substring$ =
1190 { s len #1 + global.max$ substring$ }
1191 's
1192 if$
1193 }
1194 FUNCTION {format.lab.names}
1195 { 's :=
1196 "" 't :=
1197 s #1 "{vv~}{ll}" format.name$
1198 s num.names$ duplicate$
1199 #2 >
1200 { pop$
1201 " " * bbl.etal *
1202 }
1203 { #2 <
1204 'skip$
1205 { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
1206 {
1207 " " * bbl.etal *
1208 }
1209 { bbl.and space.word * s #2 "{vv~}{ll}" format.name$
1210 * }
1211 if$
1212 }
1213 if$
1214 }
1215 if$
1216 }
1217
1218 FUNCTION {author.key.label}
1219 { author empty$
1220 { key empty$
1221 { cite$ #1 #3 substring$ }
1222 'key
1223 if$
1224 }
1225 { author format.lab.names }
1226 if$
1227 }
1228
1229 FUNCTION {author.editor.key.label}
1230 { author empty$
1231 { editor empty$
1232 { key empty$
1233 { cite$ #1 #3 substring$ }
1234 'key
1235 if$
1236 }
1237 { editor format.lab.names }
1238 if$
1239 }
1240 { author format.lab.names }
1241 if$
1242 }
1243
1244 FUNCTION {editor.key.label}
1245 { editor empty$
1246 { key empty$
1247 { cite$ #1 #3 substring$ }
1248 'key
1249 if$
1250 }
1251 { editor format.lab.names }
1252 if$
1253 }
1254
1255 FUNCTION {calc.short.authors}
1256 { type$ "book" =
1257 type$ "inbook" =
1258 or
1259 'author.editor.key.label
1260 { type$ "proceedings" =
1261 'editor.key.label
1262 'author.key.label
1263 if$
1264 }
1265 if$
1266 'short.list :=
1267 }
1268
1269 FUNCTION {calc.label}
1270 { calc.short.authors
1271 short.list
1272 "("
1273 *
1274 year duplicate$ empty$
1275 short.list key field.or.null = or
1276 { pop$ "" }
1277 'skip$
1278 if$
1279 *
1280 'label :=
1281 }
1282
1283 FUNCTION {sort.format.names}
1284 { 's :=
1285 #1 'nameptr :=
1286 ""
1287 s num.names$ 'numnames :=
1288 numnames 'namesleft :=
1289 { namesleft #0 > }
1290 { s nameptr
1291 "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}"
1292 format.name$ 't :=
1293 nameptr #1 >
1294 {
1295 " " *
1296 namesleft #1 = t "others" = and
1297 { "zzzzz" * }
1298 { t sortify * }
1299 if$
1300 }
1301 { t sortify * }
1302 if$
1303 nameptr #1 + 'nameptr :=
1304 namesleft #1 - 'namesleft :=
1305 }
1306 while$
1307 }
1308
1309 FUNCTION {sort.format.title}
1310 { 't :=
1311 "A " #2
1312 "An " #3
1313 "The " #4 t chop.word
1314 chop.word
1315 chop.word
1316 sortify
1317 #1 global.max$ substring$
1318 }
1319 FUNCTION {author.sort}
1320 { author empty$
1321 { key empty$
1322 { "to sort, need author or key in " cite$ * warning$
1323 ""
1324 }
1325 { key sortify }
1326 if$
1327 }
1328 { author sort.format.names }
1329 if$
1330 }
1331 FUNCTION {author.editor.sort}
1332 { author empty$
1333 { editor empty$
1334 { key empty$
1335 { "to sort, need author, editor, or key in " cite$ * warning$
1336 ""
1337 }
1338 { key sortify }
1339 if$
1340 }
1341 { editor sort.format.names }
1342 if$
1343 }
1344 { author sort.format.names }
1345 if$
1346 }
1347 FUNCTION {editor.sort}
1348 { editor empty$
1349 { key empty$
1350 { "to sort, need editor or key in " cite$ * warning$
1351 ""
1352 }
1353 { key sortify }
1354 if$
1355 }
1356 { editor sort.format.names }
1357 if$
1358 }
1359 FUNCTION {presort}
1360 { calc.label
1361 label sortify
1362 " "
1363 *
1364 type$ "book" =
1365 type$ "inbook" =
1366 or
1367 'author.editor.sort
1368 { type$ "proceedings" =
1369 'editor.sort
1370 'author.sort
1371 if$
1372 }
1373 if$
1374 #1 entry.max$ substring$
1375 'sort.label :=
1376 sort.label
1377 *
1378 " "
1379 *
1380 title field.or.null
1381 sort.format.title
1382 *
1383 #1 entry.max$ substring$
1384 'sort.key$ :=
1385 }
1386
1387 ITERATE {presort}
1388 SORT
1389 STRINGS { last.label next.extra }
1390 INTEGERS { last.extra.num number.label }
1391 FUNCTION {initialize.extra.label.stuff}
1392 { #0 int.to.chr$ 'last.label :=
1393 "" 'next.extra :=
1394 #0 'last.extra.num :=
1395 #0 'number.label :=
1396 }
1397 FUNCTION {forward.pass}
1398 { last.label label =
1399 { last.extra.num #1 + 'last.extra.num :=
1400 last.extra.num int.to.chr$ 'extra.label :=
1401 }
1402 { "a" chr.to.int$ 'last.extra.num :=
1403 "" 'extra.label :=
1404 label 'last.label :=
1405 }
1406 if$
1407 number.label #1 + 'number.label :=
1408 }
1409 FUNCTION {reverse.pass}
1410 { next.extra "b" =
1411 { "a" 'extra.label := }
1412 'skip$
1413 if$
1414 extra.label 'next.extra :=
1415 extra.label
1416 duplicate$ empty$
1417 'skip$
1418 { "{\natexlab{" swap$ * "}}" * }
1419 if$
1420 'extra.label :=
1421 label extra.label * 'label :=
1422 }
1423 EXECUTE {initialize.extra.label.stuff}
1424 ITERATE {forward.pass}
1425 REVERSE {reverse.pass}
1426 FUNCTION {bib.sort.order}
1427 { sort.label
1428 " "
1429 *
1430 year field.or.null sortify
1431 *
1432 " "
1433 *
1434 title field.or.null
1435 sort.format.title
1436 *
1437 #1 entry.max$ substring$
1438 'sort.key$ :=
1439 }
1440 ITERATE {bib.sort.order}
1441 SORT
1442 FUNCTION {begin.bib}
1443 { preamble$ empty$
1444 'skip$
1445 { preamble$ write$ newline$ }
1446 if$
1447 "\begin{thebibliography}{" number.label int.to.str$ * "}" *
1448 write$ newline$
1449 "\expandafter\ifx\csname natexlab\endcsname\relax\def\natexlab#1{#1}\fi"
1450 write$ newline$
1451 "\expandafter\ifx\csname url\endcsname\relax"
1452 write$ newline$
1453 " \def\url#1{{\tt #1}}\fi"
1454 write$ newline$
1455 "\expandafter\ifx\csname urlprefix\endcsname\relax\def\urlprefix{URL }\fi"
1456 write$ newline$
1457 }
1458 EXECUTE {begin.bib}
1459 EXECUTE {init.state.consts}
1460 ITERATE {call.type$}
1461 FUNCTION {end.bib}
1462 { newline$
1463 "\end{thebibliography}" write$ newline$
1464 }
1465 EXECUTE {end.bib}
1466 %% End of customized bst file
1467 %%
1468 %% End of file `felty3.bst'.