Debian Codegraph @

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

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