Debian Codegraph @

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

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