Debian Codegraph @

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

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