Debian Codegraph @

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

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