Debian Codegraph @

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

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