Debian Codegraph @

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

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