Debian Codegraph @

texmf-dist/bibtex/bst/economic/jae.bst

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