Debian Codegraph @

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

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