Debian Codegraph @

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

raw
1 %% econ.bst: BibTeX style file for papers in economics.
2 %
3 % Author: Shiro Takeda
4 % Maintainer: Shiro Takeda
5 % Copyright (C) 2001-2025 Shiro Takeda
6 % First-written: <2007/07/28>
7 % Version: 3.3
8 % Keywords: TeX, BibTeX, bst
9 % URL: https://github.com/ShiroTakeda/econ-bst
10
11 % It may be distributed and/or modified under the
12 % conditions of the LaTeX Project Public License, either version 1.3c
13 % of this license or (at your option) any later version.
14 % The latest version of this license is in
15 % https://www.latex-project.org/lppl.txt
16 % and version 1.3c or later is part of all distributions of LaTeX
17 % version 2008 or later.
18 %
19 % This work has the LPPL maintenance status "maintained".
20 %
21 % The Current Maintainer of this work is Shiro Takeda.
22
23 %% Main features of econ-jpe.bst
24
25 % "econ-jpe.bst" is a BibTeX style file for Journal of Political Economy.
26 %
27 % "econ-jpe.bst" is created from "econ.bst" which is distributed from
28 % https://github.com/ShiroTakeda/econ-bst
29
30 % Bug reports, requests and suggestions are welcome.
31
32 % For changelogs, see CHANGES.txt file.
33
34 % version number
35 FUNCTION {econ.version} { "3.3" }
36
37 % File name
38 FUNCTION {econ.file} { "econ-jpe.bst" }
39
40 % Debug mode. Non-zero makes debug mode on.
41 FUNCTION {econ.debug}
42 { #0 } % Debug mode off (default).
43 % { #1 } % Debug mode on.
44
45
46 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
47 %% Explanation of terms used in this program
48
49 %% [Entry]
50 %% An entry is a single document in the reference. The "entry type" refers to
51 %% the type of document, such as an article or a book.
52
53 %% [Field]
54 %% Field is the title, author, year, etc. specified in an entry.
55
56 %% [Citation keyword]
57 %% The "citation keyword" is a set of characters specified in each entry. This
58 %% is the argument of the "\cite" command.
59
60
61 ENTRY
62 %%% Declaration of field
63 { access address author booktitle chapter doi edition editor howpublished
64 institution journal key month note number organization pages publisher
65 school series title type url volume year
66 % Fields specific to econ.bst
67 order absorder nameorder sortname
68 }
69
70 % Definition of entry variable. The entry variable is a variable which has
71 % different values according to different entries.
72 %% Integer entry variable:
73 { order.cited }
74
75 %% String entry variable
76 { label cyear flabel alabel extra.label sort.label sort.label.abb
77 extra.label.bysame nameorder.temp jname }
78
79 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
80 %%
81 %% Functions for customization:
82 %%
83 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
84
85 % Use \bysame or not.
86 %
87 % If set to #0, \bysame is not used.
88 % If set to #1, \bysame is used
89 % If set to #2, \bysame is used (alternative abbreviation style).
90 %
91 % Note that integer number is expressed as # + integer in bst file.
92 % \bysame is the function that abbreviates succession of the same authors' name by ---.
93 %
94 % See econ-sample.pdf for details.
95 %
96 FUNCTION {bst.use.bysame}
97 % { #0 } % Not use \bysame
98 { #1 } % -> Use \bysame (default)
99 % { #2 } % -> Use \bysame of alternative style.
100
101 % The definition of \bysame command.
102 %
103 FUNCTION {bst.bysame.definition}
104 { "\hskip.3em \leavevmode\rule[.5ex]{3em}{.3pt}\hskip0.5em" } % (default)
105 % { "\leavevmode\hbox to\leftmargin{\hrulefill\,\,}" } % If you set #2 to bst.use.bysame, use this.
106
107 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
108
109 % The order of fist and last name.
110 %
111 FUNCTION {bst.author.name}
112 { #0 } % (default)
113 % { #1 }
114 % { #2 }
115
116 % Case of #0: First author -> last-first, other authors -> first-last.
117 % Fujita, Masahisa, Paul R. Krugman, and Anthony J. Venables.
118
119 % Case of #1: All authors -> last-first
120 % Fujita, Masahisa, Krugman, Paul R., and Venables, Anthony J.
121
122 % Case of #2: All authors -> first-last
123 % Masahisa Fujita, Paul R. Krugman, and Anthony J. Venables.
124
125 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
126
127 % Abbreviate first name of authors (editors):
128 %
129 FUNCTION {bst.first.name.initial}
130 { #0 } % #0 -> full letters (default).
131 % { #1 } % Non-zero -> initial letter only.
132
133 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
134
135 % Decapitalize of strings in title field.
136 %
137 FUNCTION {bst.title.lower.case}
138 { #0 } % If #0, not decapitalize title (default).
139 % { #1 } % If non-#0, decapitalize title
140
141 % Hide title filed.
142 %
143 FUNCTION {bst.hide.title}
144 { #0 } % #0 -> Title field is displayed (default)
145 % { #1 } % Non-zer -> Title field is hidden
146
147 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
148
149 % Hide month.
150 %
151 FUNCTION {bst.hide.month}
152 { #0 } % #0 -> show month field (default).
153 % { #1 } % non-#0 -> hide month field.
154
155 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
156
157 % Attach number index like plain.bst.
158 %
159 FUNCTION {bst.use.number.index}
160 { #0 } % Not use number index (default).
161 % { #1 } % Non-#0 -> Use number index
162
163 % The string before number index:
164 %
165 FUNCTION {bst.number.index.pre}
166 { "[" } % (default)
167
168 % The string after number index. Adjustment is recommended.
169 %
170 FUNCTION {bst.number.index.post}
171 { "]\hskip1.0em " } % (default)
172
173 % Maximum digit of number index:
174 % If the number of reference items >= 100, set 3 to this function.
175 % If the number of reference items < 100, set 2 to this function.
176 % If the number of reference items < 10, set 1 to this function.
177 %
178 FUNCTION {bst.number.index.digit}
179 { "2" } % (default)
180 % { "3" }
181
182 % The functions below are used to adjust space and postion. If you use fonts
183 % other than computer modern fonts, you had better make adjustments.
184 %
185 % Setting for bst.number.index.digit = 1:
186 FUNCTION {bst.number.index.bibhang.one}
187 { "2.05em" } % (default)
188 % Setting for bst.number.index.digit = 2:
189 FUNCTION {bst.number.index.bibhang.ten}
190 { "2.55em" } % (default)
191 % Setting for bst.number.index.digit = 3:
192 FUNCTION {bst.number.index.bibhang.hund}
193 { "3.05em" } % (default).
194
195 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
196
197 % Position of "year":
198 %
199 % You can choose the position of year by this function.
200 %
201 % If set to #0, year is placed right after "author".
202 % If set to non-zero, year is placed at the end (before note field) except for
203 % aritcle type entry.
204 %
205 % In article type entry, the position of year changes according to the
206 % following rule:
207 %
208 % #1 -> year is placed at the end.
209 % #2 -> year is placed after journal name in aritcle type entry.
210 % #3 -> year is placed after volume in aritcle type entry.
211 %
212 FUNCTION {bst.year.position}
213 { #0 } % (default).
214 % { #1 } % Last place before note.
215 % { #2 } % After journal name for aticle type entry.
216 % { #3 } % After volume for aticle type entry.
217
218 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
219
220 % If 0, references are sorted by old documents -> recent documents. If
221 % non-zero, reverse order.
222 FUNCTION {bst.reverse.year}
223 { #0 } % Normal order (old -> recent) (default).
224 % { #1 } % inverse order (recent -> old)
225
226 % If non-zero, sort references by using year field as the primary key
227 % (chronological sorting).
228 FUNCTION {bst.sort.year}
229 { #0 } % Normal case: year is used as the sorting key next to author (default).
230 % { #1 } % year is used as the primary sorting key.
231
232
233 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
234
235 % If non-zero, references are listed in citation order.
236 %
237 FUNCTION {bst.no.sort}
238 { #0 } % (default)
239 % { #1 } % listed in citation order.
240
241 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
242
243 % Non-zero -> sort references by entry type (article, book, incollection etc.)
244 %
245 FUNCTION {bst.sort.entry.type}
246 { #0 } % #0 -> Normal (not sort references by entry type) (default).
247 % { #1 } % Non-zero -> sort references by entry type.
248
249 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
250
251 % 0 -> use absorder field to sort items. Otherwise, ignore absorder field.
252 %
253 FUNCTION {bst.notuse.absorder.field}
254 { #0 } % #0 -> Use absorder (default).
255 % { #1 } % Non-#0 -> Not use absorder.
256 %
257 % Order of priority to sort items
258 %
259 % absorder -> author -> year -> order -> month -> title
260 %
261 % wehre absorder and order fields are specific to econ.bst.
262
263 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
264
265 % 0 -> use order field to sort items. Otherwise, ignore order field.
266 % Note: order field is specific to econ.bst.
267 FUNCTION {bst.notuse.order.field}
268 { #0 } % #0 -> Use order field (default).
269 % { #1 } % Non-#0 -> not use order field.
270
271 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
272 %%% and
273
274 %%% String used to separate author names in references.
275 %
276 % String replaced with _ in "Mr. A _ Mr. B "
277 %
278 FUNCTION {bst.and}
279 { ", and " }
280 % { " and " } % (default)
281
282 %%% String used to separate author names in references (more than two authors).
283 %
284 % String replaced with _ in "Mr. A, Mr. B _ Mr. C"
285 %
286 FUNCTION {bst.ands}
287 { ", and " } % (default)
288
289 %%% String used to separate author names in citation part.
290 %
291 % String replaced with _ in "Mr. A _ Mr. B "
292 %
293 FUNCTION {bst.cite.and}
294 { " and " } % (default)
295
296 %%% String used to separate author names in citation part (more than two authors).
297 %
298 % String replaced with _ in "Mr. A, Mr. B _ Mr. C"
299 %
300 FUNCTION {bst.cite.ands}
301 { " and " } % (default)
302
303 %%% If you want to use random author order for some bibliography entries, set
304 % non-zero to this function.
305 %
306 FUNCTION {bst.use.nameorder}
307 { #1 } % Use random order (default)
308 % { #0 } % Not use random order
309
310 %%% String used to separate author names in references for the entry of random
311 % author order.
312 %
313 FUNCTION {bst.and.nameorder}
314 { " \textcircled{r} " } % (default)
315
316 %%% String used to separate author names in citation part for the entry of
317 % random author order
318 %
319 FUNCTION {bst.cite.and.nameorder}
320 { " \textcircled{r} " } % (default)
321
322
323 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
324
325 % Author names in the citation part are abbreviated by et al. if the number of
326 % authors is greater or equal to bst.and.others.num.
327 FUNCTION {bst.and.others.num}
328 { #3 } % If the number of authors is greater or equal to three (default).
329
330 % If the number of authors is greater than N1, only the first N2 authors are
331 % displayed in the reference part (and other authors' names are omitted by "et
332 % al".
333 %
334 % The following function determines the value of N1.
335 FUNCTION {bst.max.author.num}
336 { #8 } % (default).
337
338 % The following function determines the value of N2.
339 FUNCTION {bst.max.author.num.display}
340 { #3 } % (default).
341
342
343 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
344
345 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
346
347 % Strings used when abbreviating multiple-authors in citation part.
348 FUNCTION {bst.and.others}
349 { " et~al." } % (default)
350
351 % Strings used when abbreviating multiple-authors in citation part for entries
352 % with random author order.
353 FUNCTION {bst.and.others.nameorder}
354 { " \textcircled{r}~al." } % (default)
355
356 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
357 % author
358
359 % The string before author:
360 %
361 FUNCTION {bst.author.pre}
362 { "" } % (default)
363
364 % The string after author:
365 %
366 FUNCTION {bst.author.post}
367 { "" } % (default)
368
369 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
370 % year
371
372 % The string before year only for aritcle type entry.
373 %
374 FUNCTION {bst.year.pre}
375 { " " }
376 % { " (" } % (default)
377
378 % The string after year only for aritcle type entry.
379 %
380 FUNCTION {bst.year.post}
381 { "." }
382 % { ") " } % (default)
383
384 % The string after year for non-article type entry (book, incollection etc)
385 %
386 FUNCTION {bst.year.na.pre}
387 { " " }
388 % { " (" } % (default)
389
390 % The string after year for non-article type entry (book, incollection etc)
391 %
392 FUNCTION {bst.year.na.post}
393 { "." }
394 % { ") " } % (default)
395
396 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
397 % title (except for title in book)
398
399 % The string before title:
400 %
401 FUNCTION {bst.title.pre}
402 { " ``" }
403 % { "``" } % (default)
404
405 % The string after title:
406 %
407 FUNCTION {bst.title.post}
408 { ".''" }
409 % { ",''" } % (default)
410
411 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
412 % tile for book:
413
414 % The string before book title:
415 %
416 FUNCTION {bst.book.pre}
417 { " \textit{" } % (default)
418
419 % The string after book title:
420 %
421 FUNCTION {bst.book.post}
422 { "}." }
423 % { "}," } % (default)
424
425 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
426 % booktitle
427
428 % The string before booktitle:
429 %
430 FUNCTION {bst.btitle.pre}
431 { " \textit{" } % (default)
432
433 % The string after booktitle:
434 %
435 FUNCTION {bst.btitle.post}
436 { "}," } % (default)
437
438 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
439 % journal name
440
441 % The string before journal name:
442 %
443 FUNCTION {bst.journal.pre}
444 { " \textit{" } % (default)
445
446 % The string after journal name:
447 %
448 FUNCTION {bst.journal.post}
449 { "}." }
450 % { "}" } % (default)
451
452 % Use the abbreviated journal name
453 %
454 % If set to #0, do not use abbreviated journal name.
455 % If set to non-#0, use abbreviated journal name.
456 %
457 FUNCTION {bst.journal.name.abb}
458 % { #0 } % (default)
459 { #1 }
460
461 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
462 % editor notation:
463
464 % The string that indicates multiple editors:
465 %
466 FUNCTION {bst.editors}
467 { " eds. " } % (default)
468
469 % The string that indicates single editor:
470 %
471 FUNCTION {bst.editor}
472 { " ed. " } % (default)
473
474 % Order of editor and booktitle in incollection and inproceedings entries.
475 %
476 % If set to #0: editors -> booktitle order
477 % If set to non-zero: booktitle -> editors order
478 %
479 FUNCTION {bst.editor.btitle.order}
480 { #1 }
481 % { #0 } % (default)
482
483 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
484 % edition
485
486 % The string before edition:
487 %
488 FUNCTION {bst.edition.pre}
489 { ", " } % (default)
490
491 % The string after edition:
492 %
493 FUNCTION {bst.edition.post}
494 { " edition" } % (default)
495
496 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
497 % volume
498
499 % The string before volume:
500 %
501 FUNCTION {bst.volume.pre}
502 { " " }
503 % { ", " } % (default)
504
505 % The string after volume:
506 %
507 FUNCTION {bst.volume.post}
508 { "" } % (default)
509
510 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
511 % volume for book
512
513 % The string before volume in book:
514 %
515 FUNCTION {bst.bvolume.pre}
516 { ", Vol.~" } % (default)
517
518 % The string after volume in book
519 %
520 FUNCTION {bst.bvolume.post}
521 { "" } % (default)
522
523 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
524 % number
525
526 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
527
528 % Hide number. If non-zero, number is suppressed.
529 FUNCTION {bst.hide.number}
530 { #0 } % #0 -> show number field (default)
531 % { #1 } % non-#0 -> Hide number field.
532
533 % The string before number:
534 %
535 FUNCTION {bst.number.pre}
536 { " (" } % (default)
537
538 % The string after number:
539 %
540 FUNCTION {bst.number.post}
541 { "):" }
542 % { ")" } % (default)
543
544 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
545 % in
546
547 % In
548 %
549 FUNCTION {bst.in}
550 { " In " }
551 % { " in " } % (default)
552
553 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
554 % page
555
556 % The string before page (multiple pages):
557 %
558 FUNCTION {bst.pages.pre}
559 { ", " } % (default)
560
561 % The string before page:
562 %
563 FUNCTION {bst.page.pre}
564 { ", " } % (default)
565
566 % The string after page (multiple pages):
567 %
568 FUNCTION {bst.pages.post}
569 { "" } % (default)
570
571 % The string after page:
572 %
573 FUNCTION {bst.page.post}
574 { "" } % (default)
575
576 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
577 % chapter
578
579 % The string before chapter:
580 %
581 FUNCTION {bst.chapter.pre}
582 { ", Chap." } % (default)
583
584 % The string after chapter:
585 %
586 FUNCTION {bst.chapter.post}
587 { "" } % (default)
588
589 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
590 % month
591
592 % The string before month:
593 %
594 FUNCTION {bst.month.pre}
595 { ", " } % (default)
596
597 % The string after month:
598 %
599 FUNCTION {bst.month.post}
600 { "" } % (default)
601
602 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
603 % address
604 % The string before address:
605 %
606 FUNCTION {bst.address.pre}
607 { ", " } % (default)
608
609 % The string after address:
610 %
611 FUNCTION {bst.address.post}
612 % { "" } % (default)
613 { ":" }
614
615 % You can choose the order of address and publisher by this function.
616 %
617 % If #0, address -> publisher order (the default value).
618 % If non-zero, publisher -> address order.
619
620 FUNCTION {bst.address.position}
621 { #0 } % Address is placed before publisher (default)
622 % { #1 } % Address is placed after publisher
623
624 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
625 % publisher
626
627 % The string before publisher:
628 %
629 FUNCTION {bst.publisher.pre}
630 { " " }
631 % { ": " } % (default)
632
633 % The string after publisher:
634 %
635 FUNCTION {bst.publisher.post}
636 { "," }
637 % { "" } % (default)
638
639 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
640 % series
641
642 % The string before series:
643 %
644 FUNCTION {bst.series.pre}
645 { ", " } % (default)
646
647 % The string after series:
648 %
649 FUNCTION {bst.series.post}
650 { "" } % (default)
651
652 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
653 % organization
654
655 % The string before organization:
656 %
657 FUNCTION {bst.organization.pre}
658 { ", " } % (default)
659
660 % The string after organization:
661 %
662 FUNCTION {bst.organization.post}
663 { "" } % (default)
664
665 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
666 % school
667
668 % The string before school:
669 %
670 FUNCTION {bst.school.pre}
671 { ", " } % (default)
672
673 % The string after school:
674 %
675 FUNCTION {bst.school.post}
676 { "" } % (default)
677
678 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
679 % institution
680
681 % The string before institution:
682 %
683 FUNCTION {bst.institution.pre}
684 { ", " } % (default)
685
686 % The string after institution:
687 %
688 FUNCTION {bst.institution.post}
689 { "" } % (default)
690
691 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
692 % howpublished
693
694 % The string before howpublished:
695 %
696 FUNCTION {bst.howpublished.pre}
697 { " " } % (default)
698
699 % The string after howpublished:
700 %
701 FUNCTION {bst.howpublished.post}
702 { "" } % (default)
703
704 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
705 % url
706
707 % Show or Hide url. If non-zero, url is displayed. Otherwise, url is suppressed.
708 FUNCTION {bst.show.url}
709 { #1 } % non-#0 -> Show url field (default)
710 % { #0 } % #0 -> Not show url field.
711
712 % The string before url:
713 %
714 FUNCTION {bst.url.pre}
715 { ", \urlstyle{tt}\url{" } % (default)
716
717 % The string after url:
718 %
719 FUNCTION {bst.url.post}
720 { "}" } % (default)
721
722
723 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
724 % Access
725
726 % This setting is valid only if there are "access" field in bib
727 % files. The value of access field indicates accessed date for URL.
728
729 % The string before access.
730 FUNCTION {bst.access.pre}
731 { ", accessed on " } % (default)
732
733 % The string after access.
734 FUNCTION {bst.access.post}
735 { "" } % (default)
736
737 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
738 % DOI (digital object identifier)
739
740 % This setting is valid only if there are "doi" field in bib files.
741
742 % Show or Hide DOI. If non-zero, DOI is displayed. Otherwise, DOI is suppressed.
743 FUNCTION {bst.show.doi}
744 { #1 } % non-#0 -> Show DOI field (default)
745 % { #0 } % #0 -> Not show DOI field.
746
747 % The string before DOI:
748 %
749 FUNCTION {bst.doi.pre}
750 { ", \href{https://doi.org/" doi * "}{\urlstyle{tt}\nolinkurl{" * } % (default)
751
752 % The string after DOI:
753 %
754 FUNCTION {bst.doi.post}
755 { "}}" } % (default)
756
757 % How to show URL and DOI fields when both fields exist.
758 %
759 % #0 -> Both fields are displayed
760 % #1 -> Only URL field is displayed
761 % #2 -> Only DOI field is displayed
762 %
763 FUNCTION {bst.url.doi}
764 % { #0 } % -> Both fields are displayed
765 % { #1 } % -> Only URL field is displayed
766 { #2 } % (default) --> Only DOI field is displayed
767
768 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
769 % Other functions:
770
771 % The string before note.
772 FUNCTION {bst.note.pre}
773 { ", " } % (default)
774
775 % The string after note.
776 FUNCTION {bst.note.post}
777 { "" } % (default)
778
779 % The string that represents Technical report:
780 %
781 FUNCTION {bst.techrep}
782 { ", Technical Report" } % (default)
783
784 % The string that represents master thesis:
785 %
786 FUNCTION {bst.mthesis}
787 { ", Master's thesis" } % (default)
788
789 % The string that represents phd thesis:
790 %
791 FUNCTION {bst.phdthesis}
792 { ", Ph.D. dissertation" } % (default)
793
794 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
795 %%
796 %% Functions for customization end here:
797 %%
798 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
799
800 FUNCTION {bst.first}
801 { "1st" }
802
803 FUNCTION {bst.second}
804 { "2nd" }
805
806 FUNCTION {bst.third}
807 { "3rd" }
808
809 FUNCTION {bst.fourth}
810 { "4th" }
811
812 FUNCTION {bst.fifth}
813 { "5th" }
814
815 FUNCTION {bst.st}
816 { "st" }
817
818 FUNCTION {bst.nd}
819 { "nd" }
820
821 FUNCTION {bst.rd}
822 { "rd" }
823
824 FUNCTION {bst.th}
825 { "th" }
826
827 %%%%% memo by Takeda
828
829 % "a" 'b := indicates substituting string "a" for variable b.
830
831 % Integer number #0, #1,...
832
833 %%% Function definition:
834 %
835 % FUNCTION {name}
836 % { 's :=
837 %
838 % }
839 %
840 % This is the definition of a function named "name". The function "name" is
841 % used in the following way
842 %
843 % "foo" name
844 % "foo" is an argument for the function "name".
845 %
846 % About the definition of a function with more than two arguments, see the
847 % definition of "chop.word".
848
849 %%% Declaration of variables:
850
851 %% String global variables:
852 STRINGS { s t tt }
853 STRINGS { year.num }
854 STRINGS { preone preten }
855 STRINGS { last.sort.label next.extra prev.author prev.author.aer this.author }
856 STRINGS { hang }
857 STRINGS { item.type }
858 STRINGS { tempa tempb }
859
860 %% Integer global variables:
861 INTEGERS { nameptr namesleft numnames name.num numtrunc }
862 INTEGERS { multiresult }
863 INTEGERS { index }
864 INTEGERS { len }
865 INTEGERS { last.extra.num }
866 INTEGERS { output.state before.all mid.sentence after.sentence after.block }
867 INTEGERS { last.period.comma }
868 INTEGERS { len1.aer len2.aer i.aer }
869
870 % output.state
871 % -> This is a variable that holds which location in a single bibliography entry.
872 % -> before.all or mid.sentence
873
874 %%% Definition of functions:
875 FUNCTION {not}
876 { { #0 }
877 { #1 }
878 if$
879 }
880
881 FUNCTION {and}
882 { 'skip$
883 { pop$ #0 }
884 if$
885 }
886
887 FUNCTION {or}
888 { { pop$ #1 }
889 'skip$
890 if$
891 }
892
893 %%% Initialize variables:
894 FUNCTION {init.state.consts}
895 { #0 'before.all :=
896 #1 'mid.sentence :=
897 #2 'after.sentence :=
898 #3 'after.block :=
899 }
900
901 %%% Remove comma and add period:
902 %
903 FUNCTION {add.period.x}
904 { duplicate$ 't :=
905 t #-1 #1 substring$ "," =
906 { #-2 global.max$ substring$ "." * }
907 { t #-1 #2 substring$ ". " =
908 { #-3 global.max$ substring$ "." * }
909 { t #-1 #2 substring$ ", " =
910 { #-3 global.max$ substring$ "." * }
911 { t #-1 #2 substring$ ",'" =
912 { #-3 global.max$ substring$ ".'" * }
913 { t #-1 #2 substring$ ".'" =
914 { #-3 global.max$ substring$ ".'" * }
915 { t #-1 #2 substring$ ".~" =
916 { #-3 global.max$ substring$ ".~" * }
917 { t #-1 #2 substring$ ",~" =
918 { #-3 global.max$ substring$ ".~" * }
919 { t #-1 #3 substring$ ",''" =
920 { #-4 global.max$ substring$ ".''" * }
921 { t #-1 #3 substring$ ".''" =
922 { #-4 global.max$ substring$ ".''" * }
923 { t #-1 #2 substring$ ": " =
924 { #-3 global.max$ substring$ "." * }
925 { add.period$ }
926 if$
927 }
928 if$
929 }
930 if$
931 }
932 if$
933 }
934 if$
935 }
936 if$
937 }
938 if$
939 }
940 if$
941 }
942 if$
943 }
944 if$
945 }
946
947 %%% If the last character is period or comma, set non-zero to
948 %%% last.period.comma.
949 FUNCTION {last.period.comma.p}
950 { duplicate$ 't :=
951 t #-1 #1 substring$ "." =
952 t #-1 #1 substring$ "," = or
953 t #-1 #2 substring$ ". " = or
954 t #-1 #2 substring$ ", " = or
955 t #-1 #2 substring$ ".'" = or
956 t #-1 #2 substring$ ",'" = or
957 t #-1 #3 substring$ ".''" = or
958 t #-1 #3 substring$ ",''" = or
959 t #-1 #2 substring$ ".~" = or
960 t #-1 #2 substring$ ",~" = or
961 t #-1 #1 substring$ ":" = or
962 t #-1 #2 substring$ ": " = or
963 t #-1 #2 substring$ ".}" = or
964 t #-1 #2 substring$ ",}" = or
965 { #1 'last.period.comma := }
966 { #0 'last.period.comma := }
967 if$
968 }
969
970 %%% remove comma
971 % A function that removes the period or comma at the beginning of a field.
972 FUNCTION {remove.pre.comma}
973 { 's :=
974 s #1 #1 substring$ "," =
975 { s #2 global.max$ substring$ }
976 { s #1 #1 substring$ "." =
977 { s #2 global.max$ substring$ }
978 { s #1 #1 substring$ ":" =
979 { s #2 global.max$ substring$ }
980 's
981 if$
982 }
983 if$
984 }
985 if$
986 }
987
988 FUNCTION {output.field}
989 { 's :=
990 output.state mid.sentence =
991 % mid.sentence
992 { last.period.comma.p % Check whether the last of the previous field is
993 % period or comma -> Assign to the variable
994 % last.period.comma.
995 write$ } % Write the contents of the previous field.
996 % not mid.sentence
997 { output.state before.all =
998 % before.all
999 'write$ % Write the contents of the previous field.
1000 % not before.all
1001 'skip$ % This line is never executed.
1002 if$
1003 mid.sentence 'output.state :=
1004 }
1005 if$
1006 last.period.comma #0 =
1007 % The last character in the field before the one is not a period or comma.
1008 { s }
1009 % The last character in the field before the one is a period or comma.
1010 { s remove.pre.comma }
1011 if$
1012 }
1013
1014 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1015 %%% Format in bbl file:
1016
1017 % \harvarditem[Brezis et~al.]{Brezis, Krugman and
1018 % Tsiddon}{1993}{brezis93:_leapf_inter_compet}
1019 % Brezis, Elise~S., Paul~R. Krugman, and Daniel Tsiddon (1993) ``Leapfrogging in
1020 % International Competition: A Theory of Cycles in National Technological
1021 % Leadership.'', {\em American Economic Review.}, Vol.~83. No.~5. pp.
1022 % 1211--1219.
1023
1024 % \harvarditem[abbreviated citation]{full citation}{year}{keyword} ...
1025
1026 %%% Add period and newline.
1027 FUNCTION {fin.entry}
1028 { add.period.x
1029 write$
1030 newline$
1031 }
1032
1033 FUNCTION {field.or.null}
1034 { duplicate$ empty$
1035 { pop$ "" }
1036 'skip$
1037 if$
1038 }
1039
1040 %%% booktitle
1041 FUNCTION {format.btitle}
1042 { booktitle empty$
1043 { "" }
1044 { bst.btitle.pre booktitle * bst.btitle.post * }
1045 if$
1046 }
1047
1048 FUNCTION {journal.name.sub}
1049 { 't :=
1050 t #1 #4 substring$ "The " =
1051 % Use #30 to handle with the long journal name.
1052 { t #5 #30 substring$ 't := }
1053 'skip$
1054 if$
1055 t
1056 }
1057
1058 FUNCTION {format.journal.name.abb}
1059 { journal 's :=
1060 journal 'jname :=
1061 s journal.name.sub 's :=
1062 bst.journal.name.abb #0 =
1063 'skip$
1064 {
1065 s "Academic Management Review" =
1066 { "Acad. Manage. J." 'jname := }
1067 'skip$
1068 if$
1069 s "Academy of Management Journal" =
1070 { "Acad. Manage. Rev." 'jname := }
1071 'skip$
1072 if$
1073 s "Accounting Review" =
1074 { "Account. Rev." 'jname := }
1075 'skip$
1076 if$
1077 s "Accounting, Organizations and Society" =
1078 { "Account. Org. Soc." 'jname := }
1079 'skip$
1080 if$
1081 s "Accounting, Organizations and Society" =
1082 { "Admin. Sci. Quart." 'jname := }
1083 'skip$
1084 if$
1085 s "Administrative Science Quarterly" =
1086 { "Agr. Econ." 'jname := }
1087 'skip$
1088 if$
1089 s "American Economic Journal: Applied Economics" =
1090 { "Am. Econ. J. Appl. Econ." 'jname := }
1091 'skip$
1092 if$
1093 s "American Economic Journal: Economic Policy" =
1094 { "Am. Econ. J. Econ. Policy" 'jname := }
1095 'skip$
1096 if$
1097 s "American Economic Journal: Macroeconomics" =
1098 { "Am. Econ. J. Macro." 'jname := }
1099 'skip$
1100 if$
1101 s "American Economic Journal: Microeconomics" =
1102 { "Am. Econ. J. Micro." 'jname := }
1103 'skip$
1104 if$
1105 s "American Economic Review" =
1106 { "Am. Econ. Rev." 'jname := }
1107 'skip$
1108 if$
1109 s "American Journal of Agricultural Economics" =
1110 { "Am. J. Agr. Econ." 'jname := }
1111 'skip$
1112 if$
1113 s "American Journal of Economics and Sociology" =
1114 { "Am. J. Econ. Sociol." 'jname := }
1115 'skip$
1116 if$
1117 s "Applied Economics" =
1118 { "Appl. Econ." 'jname := }
1119 'skip$
1120 if$
1121 s "Applied Economics Letters" =
1122 { "Appl. Econ. Lett." 'jname := }
1123 'skip$
1124 if$
1125 s "Applied Energy" =
1126 { "Appl. Energ." 'jname := }
1127 'skip$
1128 if$
1129 s "Applied Stochastic Models in Business and Industry" =
1130 { "Appl. Stoch. Model Bus." 'jname := }
1131 'skip$
1132 if$
1133 s "Auditing: A Journal of Practise and Theory" =
1134 { "Auditing.-J. Pract. Th." 'jname := }
1135 'skip$
1136 if$
1137 s "Australian Journal of Agricultural and Resource Economics" =
1138 { "Aust. J. Agr. Resour. Ec." 'jname := }
1139 'skip$
1140 if$
1141 s "B.E. Journal of Economic Analysis \& Policy" =
1142 { "B.E. J. Econ. Anal. Policy" 'jname := }
1143 'skip$
1144 if$
1145 s "Betriebswirtschaftliche Forschung Und Praxis" =
1146 { "Betrieb. Forsch. Prax." 'jname := }
1147 'skip$
1148 if$
1149 s "British Journal of Industrial Relations" =
1150 { "Brit. J. Ind. Relat." 'jname := }
1151 'skip$
1152 if$
1153 s "British Journal of Management" =
1154 { "Brit. J. Manage." 'jname := }
1155 'skip$
1156 if$
1157 s "Bulletin of Indonesian Economic Studies" =
1158 { "B. Indones. Econ. Stud." 'jname := }
1159 'skip$
1160 if$
1161 s "Business Ethics Quarterly" =
1162 { "Bus. Ethics Q." 'jname := }
1163 'skip$
1164 if$
1165 s "Business History" =
1166 { "Bus. Hist." 'jname := }
1167 'skip$
1168 if$
1169 s "Business History Review" =
1170 { "Bus. Hist. Rev." 'jname := }
1171 'skip$
1172 if$
1173 s "Business Lawyer" =
1174 { "Bus. Lawyer" 'jname := }
1175 'skip$
1176 if$
1177 s "California Management Review" =
1178 { "Calif. Manage. Rev." 'jname := }
1179 'skip$
1180 if$
1181 s "Cambridge Journal of Economics" =
1182 { "Cambridge J. Econ." 'jname := }
1183 'skip$
1184 if$
1185 s "Canadian Journal of Administrative Sciences" =
1186 { "Can. J. Adm. Sci." 'jname := }
1187 'skip$
1188 if$
1189 s "Canadian Journal of Economics" =
1190 { "Can. J. Econ." 'jname := }
1191 'skip$
1192 if$
1193 s "China Economic Review" =
1194 { "China. Econ. Rev." 'jname := }
1195 'skip$
1196 if$
1197 s "Climate Change Economics" =
1198 { "Clim. Change Econ." 'jname := }
1199 'skip$
1200 if$
1201 s "Climate Policy" =
1202 { "Clim. Policy" 'jname := }
1203 'skip$
1204 if$
1205 s "Communications in Statistics  EPart A: Theory and Methods" =
1206 { "Commun. Stat.-Theor. M." 'jname := }
1207 'skip$
1208 if$
1209 s "Computational Economics" =
1210 { "Computation. Econ." 'jname := }
1211 'skip$
1212 if$
1213 s "Computational Statistics" =
1214 { "Computation. Stat." 'jname := }
1215 'skip$
1216 if$
1217 s "Computational Statistics and Data Analysis" =
1218 { "Comput. Stat. Data An." 'jname := }
1219 'skip$
1220 if$
1221 s "Contemporary Accounting Research" =
1222 { "Contemp. Account. Res." 'jname := }
1223 'skip$
1224 if$
1225 s "Contemporary Economic Policy" =
1226 { "Contemp. Econ. Policy" 'jname := }
1227 'skip$
1228 if$
1229 s "Defence and Peace Economics" =
1230 { "Defence Peace Econ." 'jname := }
1231 'skip$
1232 if$
1233 s "Development Economics" =
1234 { "Dev. Econ." 'jname := }
1235 'skip$
1236 if$
1237 s "Eastern European Economics" =
1238 { "Eastern Eur. Econ." 'jname := }
1239 'skip$
1240 if$
1241 s "Ecological Economics" =
1242 { "Ecol. Econ." 'jname := }
1243 'skip$
1244 if$
1245 s "Econometric Theory" =
1246 { "Economet. Theor." 'jname := }
1247 'skip$
1248 if$
1249 s "Econometrica" =
1250 { "Econometrica" 'jname := }
1251 'skip$
1252 if$
1253 s "Economic and Industrial Democracy" =
1254 { "Econ. Ind. Democr." 'jname := }
1255 'skip$
1256 if$
1257 s "Economic Development and Cultural Change" =
1258 { "Econ. Dev. Cult. Change" 'jname := }
1259 'skip$
1260 if$
1261 s "Economic Development and Cultural Change" =
1262 { "Economist.-Netherland" 'jname := }
1263 'skip$
1264 if$
1265 s "Economic Development Quarterly" =
1266 { "Econ. Dev. Q." 'jname := }
1267 'skip$
1268 if$
1269 s "Economic Geography" =
1270 { "Econ. Geogr." 'jname := }
1271 'skip$
1272 if$
1273 s "Economic History Review" =
1274 { "Econ. Hist. Rev." 'jname := }
1275 'skip$
1276 if$
1277 s "Economic Inquiry" =
1278 { "Econ. Inq." 'jname := }
1279 'skip$
1280 if$
1281 s "Economic Journal" =
1282 { "Econ. J." 'jname := }
1283 'skip$
1284 if$
1285 s "Economic Modelling" =
1286 { "Econ. Model." 'jname := }
1287 'skip$
1288 if$
1289 s "Economic Policy" =
1290 { "Econ. Policy" 'jname := }
1291 'skip$
1292 if$
1293 s "Economic Record" =
1294 { "Econ. Rec." 'jname := }
1295 'skip$
1296 if$
1297 s "Economic Theory" =
1298 { "Econ. Theor." 'jname := }
1299 'skip$
1300 if$
1301 s "Economica" =
1302 { "Economica" 'jname := }
1303 'skip$
1304 if$
1305 s "Economics and Philosophy" =
1306 { "Econ. Philos." 'jname := }
1307 'skip$
1308 if$
1309 s "Economics Letters" =
1310 { "Econ. Lett." 'jname := }
1311 'skip$
1312 if$
1313 s "Economics of Education Review" =
1314 { "Econ. Educ. Rev." 'jname := }
1315 'skip$
1316 if$
1317 s "Economics of Energy \& Environmental Policy" =
1318 { "Econ. Energ. Environ. Policy" 'jname := }
1319 'skip$
1320 if$
1321 s "Economics of Transition" =
1322 { "Econ. Transit." 'jname := }
1323 'skip$
1324 if$
1325 s "Economy and Society" =
1326 { "Econ. Soc." 'jname := }
1327 'skip$
1328 if$
1329 s "Ekonomicky Casopis" =
1330 { "Ekon. Cas." 'jname := }
1331 'skip$
1332 if$
1333 s "Ekonomiska Samfundets Tidskrift" =
1334 { "Ekon. Samf. Tidskr." 'jname := }
1335 'skip$
1336 if$
1337 s "Emerging Markets Finance and Trade" =
1338 { "Emerg. Mark. Financ. Tr." 'jname := }
1339 'skip$
1340 if$
1341 s "Energy Economics" =
1342 { "Energ. Econ." 'jname := }
1343 'skip$
1344 if$
1345 s "Energy Journal" =
1346 { "Energ. J." 'jname := }
1347 'skip$
1348 if$
1349 s "Energy Policy" =
1350 { "Energ. Policy" 'jname := }
1351 'skip$
1352 if$
1353 s "Entrepreneurship \& Regional Development" =
1354 { "Entrep. Region. Dev." 'jname := }
1355 'skip$
1356 if$
1357 s "Entrepreneurship Theory and Practice" =
1358 { "Entrep. Theory Pract." 'jname := }
1359 'skip$
1360 if$
1361 s "Environment and Development Economics" =
1362 { "Environ. Dev. Econ." 'jname := }
1363 'skip$
1364 if$
1365 s "Environmental and Resource Economics" =
1366 { "Environ. Resour. Econ." 'jname := }
1367 'skip$
1368 if$
1369 s "Environmental Economics and Policy Studies" =
1370 { "Environ. Econ. Policy Stud." 'jname := }
1371 'skip$
1372 if$
1373 s "Environmental Science and Policy" =
1374 { "Environ. Sci. Policy" 'jname := }
1375 'skip$
1376 if$
1377 s "Environmental Science \& Technology" =
1378 { "Environ. Sci. Technol." 'jname := }
1379 'skip$
1380 if$
1381 s "Eurasian Geography and Economics " =
1382 { "Eurasian Geogr. Econ." 'jname := }
1383 'skip$
1384 if$
1385 s "European Economic Review" =
1386 { "Eur. Econ. Rev." 'jname := }
1387 'skip$
1388 if$
1389 s "European Journal of Industrial Relations" =
1390 { "Eur. J. Ind. Relat." 'jname := }
1391 'skip$
1392 if$
1393 s "European Review of Agricultural Economics" =
1394 { "Eur. Rev. Agric. Econ." 'jname := }
1395 'skip$
1396 if$
1397 s "Europe-Asia Studies" =
1398 { "Europe-Asia Stud." 'jname := }
1399 'skip$
1400 if$
1401 s "Explorations in Economic History" =
1402 { "Explor. Econ. Hist." 'jname := }
1403 'skip$
1404 if$
1405 s "Feminist Economics" =
1406 { "Fem. Econ." 'jname := }
1407 'skip$
1408 if$
1409 s "Finance a Uver" =
1410 { "Financ. Uver." 'jname := }
1411 'skip$
1412 if$
1413 s "Finance and Stochastics" =
1414 { "Financ. Stoch." 'jname := }
1415 'skip$
1416 if$
1417 s "Financial Analysts Journal" =
1418 { "Financ. Anal. J." 'jname := }
1419 'skip$
1420 if$
1421 s "Financial Management" =
1422 { "Financ. Manage." 'jname := }
1423 'skip$
1424 if$
1425 s "Fiscal Studies" =
1426 { "Fisc. Stud." 'jname := }
1427 'skip$
1428 if$
1429 s "Food Policy" =
1430 { "Food. Policy." 'jname := }
1431 'skip$
1432 if$
1433 s "Futures" =
1434 { "Futures" 'jname := }
1435 'skip$
1436 if$
1437 s "Games and Economic Behavior" =
1438 { "Game Econ. Behav." 'jname := }
1439 'skip$
1440 if$
1441 s "Health Economics" =
1442 { "Health Econ." 'jname := }
1443 'skip$
1444 if$
1445 s "Hitotsubashi Journal of Economics" =
1446 { "Hitotsub. J. Econ." 'jname := }
1447 'skip$
1448 if$
1449 s "IMF Staff Papers" =
1450 { "Imf. Staff. Papers" 'jname := }
1451 'skip$
1452 if$
1453 s "Industrial and Corporate Change" =
1454 { "Ind. Corp. Change" 'jname := }
1455 'skip$
1456 if$
1457 s "Industrial and Labor Relations Review" =
1458 { "Ind. Labor. Relat. Rev." 'jname := }
1459 'skip$
1460 if$
1461 s "Industrial Marketing Management" =
1462 { "Ind. Market Manag." 'jname := }
1463 'skip$
1464 if$
1465 s "Industrial Relations" =
1466 { "Ind. Relat." 'jname := }
1467 'skip$
1468 if$
1469 s "Information Economics and Policy" =
1470 { "Info. Econ. Policy" 'jname := }
1471 'skip$
1472 if$
1473 s "Insurance: Mathematics and Economics" =
1474 { "Insur. Math. Econ." 'jname := }
1475 'skip$
1476 if$
1477 s "International Economic Review" =
1478 { "Int. Econ. Rev." 'jname := }
1479 'skip$
1480 if$
1481 s "International Journal of Electronics and Telecommunications" =
1482 { "Int. J. Electron. Comm." 'jname := }
1483 'skip$
1484 if$
1485 s "International Journal of Economic Theory" =
1486 { "Int. J. Econ. Theory" 'jname := }
1487 'skip$
1488 if$
1489 s "International Journal of Finance \& Economics" =
1490 { "Int. J. Financ. Econ." 'jname := }
1491 'skip$
1492 if$
1493 s "International Journal of Forecasting" =
1494 { "Int. J. Forecast." 'jname := }
1495 'skip$
1496 if$
1497 s "International Journal of Game Theory" =
1498 { "Int. J. Game. Theory" 'jname := }
1499 'skip$
1500 if$
1501 s "International Journal of Industrial Organization" =
1502 { "Int. J. Ind. Organ." 'jname := }
1503 'skip$
1504 if$
1505 s "International Journal of Manpower" =
1506 { "Int. J. Manpow." 'jname := }
1507 'skip$
1508 if$
1509 s "International Journal of Market Research" =
1510 { "Int. J. Market Res." 'jname := }
1511 'skip$
1512 if$
1513 s "International Journal of Research in Marketing" =
1514 { "Int. J. Res. Mark." 'jname := }
1515 'skip$
1516 if$
1517 s "International Labour Review" =
1518 { "Int. Labour Rev." 'jname := }
1519 'skip$
1520 if$
1521 s "International Marketing Review" =
1522 { "Int. Market. Rev." 'jname := }
1523 'skip$
1524 if$
1525 s "International Review of Applied Economics" =
1526 { "Int. Rev. Appl. Econ." 'jname := }
1527 'skip$
1528 if$
1529 s "International Review of Law and Economics" =
1530 { "Int. Rev. Law Econ." 'jname := }
1531 'skip$
1532 if$
1533 s "International Small Business Journal" =
1534 { "Int. Small. Bus. J." 'jname := }
1535 'skip$
1536 if$
1537 s "International Tax and Public Finance" =
1538 { "Int. Tax Public Finan." 'jname := }
1539 'skip$
1540 if$
1541 s "Jahrbücher für Nationalökonomie und Statistik" =
1542 { "Jahrb. Natl. Stat." 'jname := }
1543 'skip$
1544 if$
1545 s "Japan and the World Economy" =
1546 { "Jpn. World Econ." 'jname := }
1547 'skip$
1548 if$
1549 s "Japanese Economic Review" =
1550 { "Jpn. Econ. Rev." 'jname := }
1551 'skip$
1552 if$
1553 s "JCMS-journal of Common Market Studies" =
1554 { "Jcms.-J. Common. Mark. S." 'jname := }
1555 'skip$
1556 if$
1557 s "Journal of Accounting and Economics" =
1558 { "J. Account. Econ." 'jname := }
1559 'skip$
1560 if$
1561 s "Journal of Accounting Research" =
1562 { "J. Account. Res." 'jname := }
1563 'skip$
1564 if$
1565 s "Journal of Advertising" =
1566 { "J. Advertising" 'jname := }
1567 'skip$
1568 if$
1569 s "Journal of Advertising Research" =
1570 { "J. Advertising Res." 'jname := }
1571 'skip$
1572 if$
1573 s "Journal of African Economies" =
1574 { "J. Afr. Econ." 'jname := }
1575 'skip$
1576 if$
1577 s "Journal of Agricultural and Resource Economics" =
1578 { "J. Agr. Resour. Econ." 'jname := }
1579 'skip$
1580 if$
1581 s "Journal of Agricultural Economics" =
1582 { "J. Agr. Econ." 'jname := }
1583 'skip$
1584 if$
1585 s "Journal of Applied Econometrics" =
1586 { "J. Appl. Econom." 'jname := }
1587 'skip$
1588 if$
1589 s "Journal of Banking and Finance" =
1590 { "J. Bank Financ." 'jname := }
1591 'skip$
1592 if$
1593 s "Journal of Business" =
1594 { "J. Bus." 'jname := }
1595 'skip$
1596 if$
1597 s "Journal of Business and Economic Statistics" =
1598 { "J. Bus. Econ. Stat." 'jname := }
1599 'skip$
1600 if$
1601 s "Journal of Business and Psychology" =
1602 { "J. Bus. Psychol." 'jname := }
1603 'skip$
1604 if$
1605 s "Journal of Business and Technical Communication" =
1606 { "J. Bus. Tech. Commun." 'jname := }
1607 'skip$
1608 if$
1609 s "Journal of Business Ethics" =
1610 { "J. Bus. Ethics" 'jname := }
1611 'skip$
1612 if$
1613 s "Journal of Business Research" =
1614 { "J. Bus. Res." 'jname := }
1615 'skip$
1616 if$
1617 s "Journal of Business Venturing" =
1618 { "J. Bus. Venturing." 'jname := }
1619 'skip$
1620 if$
1621 s "Journal of Cleaner Productiond" =
1622 { "J. Clean. Prod." 'jname := }
1623 'skip$
1624 if$
1625 s "Journal of Comparative Economics" =
1626 { "J. Comp. Econ." 'jname := }
1627 'skip$
1628 if$
1629 s "Journal of Consumer Affairs" =
1630 { "J. Consum. Aff." 'jname := }
1631 'skip$
1632 if$
1633 s "Journal of Consumer Research" =
1634 { "J. Consum. Res." 'jname := }
1635 'skip$
1636 if$
1637 s "Journal of Corporate Finance" =
1638 { "J. Corp. Financ." 'jname := }
1639 'skip$
1640 if$
1641 s "Journal of Development Economics" =
1642 { "J. Dev. Econ." 'jname := }
1643 'skip$
1644 if$
1645 s "Journal of Econometrics" =
1646 { "J. Econometrics" 'jname := }
1647 'skip$
1648 if$
1649 s "Journal of Economic Behavior and Organization" =
1650 { "J. Econ. Behav. Organ." 'jname := }
1651 'skip$
1652 if$
1653 s "Journal of Economic Dynamics and Control" =
1654 { "J. Econ. Dyn. Control" 'jname := }
1655 'skip$
1656 if$
1657 s "Journal of Economic Education" =
1658 { "J. Econ. Educ." 'jname := }
1659 'skip$
1660 if$
1661 s "Journal of Economic Geography" =
1662 { "J. Econ. Geogr." 'jname := }
1663 'skip$
1664 if$
1665 s "Journal of Economic Growth" =
1666 { "J. Econ. Growth" 'jname := }
1667 'skip$
1668 if$
1669 s "Journal of Economic History" =
1670 { "J. Econ. Hist." 'jname := }
1671 'skip$
1672 if$
1673 s "Journal of Economic Integration" =
1674 { "J. Econ. Integr." 'jname := }
1675 'skip$
1676 if$
1677 s "Journal of Economic Issues" =
1678 { "J. Econ. Issues." 'jname := }
1679 'skip$
1680 if$
1681 s "Journal of Economic Perspectives" =
1682 { "J. Econ. Perspect." 'jname := }
1683 'skip$
1684 if$
1685 s "Journal of Economic Psychology" =
1686 { "J. Econ. Psychol." 'jname := }
1687 'skip$
1688 if$
1689 s "Journal of Economic Literature" =
1690 { "J. Econ. Lit." 'jname := }
1691 'skip$
1692 if$
1693 s "Journal of Economic Surveys" =
1694 { "J. Econ. Surv." 'jname := }
1695 'skip$
1696 if$
1697 s "Journal of Economic Theory" =
1698 { "J. Econ. Theory" 'jname := }
1699 'skip$
1700 if$
1701 s "Journal of Economics" =
1702 { "J. Econ." 'jname := }
1703 'skip$
1704 if$
1705 s "Journal of Economics and Management Strategy" =
1706 { "J. Econ. Manage. Strat." 'jname := }
1707 'skip$
1708 if$
1709 s "Journal of Environmental Economics and Management" =
1710 { "J. Environ. Econ. Manag." 'jname := }
1711 'skip$
1712 if$
1713 s "Journal of Evolutionary Economics" =
1714 { "J. Evol. Econ." 'jname := }
1715 'skip$
1716 if$
1717 s "Journal of Finance" =
1718 { "J. Financ." 'jname := }
1719 'skip$
1720 if$
1721 s "Journal of Financial and Quantitative Analysis" =
1722 { "J. Financ. Econ." 'jname := }
1723 'skip$
1724 if$
1725 s "Journal of Financial Economics" =
1726 { "J. Financ. Intermed." 'jname := }
1727 'skip$
1728 if$
1729 s "Journal of Financial Intermediation" =
1730 { "J. Financ. Mark." 'jname := }
1731 'skip$
1732 if$
1733 s "Journal of Financial Markets" =
1734 { "J. Financ. Quant. Anal." 'jname := }
1735 'skip$
1736 if$
1737 s "Journal of Forecasting" =
1738 { "J. Forecasting." 'jname := }
1739 'skip$
1740 if$
1741 s "Journal of Futures Markets" =
1742 { "J. Futures Market" 'jname := }
1743 'skip$
1744 if$
1745 s "Journal of Health Economics" =
1746 { "J. Health Econ." 'jname := }
1747 'skip$
1748 if$
1749 s "Journal of Housing Economics" =
1750 { "J. Hous. Econ." 'jname := }
1751 'skip$
1752 if$
1753 s "Journal of Human Resources" =
1754 { "J. Hum. Resour." 'jname := }
1755 'skip$
1756 if$
1757 s "Journal of Industrial Economics" =
1758 { "J. Ind. Econ." 'jname := }
1759 'skip$
1760 if$
1761 s "Journal of Institutional and Theoretical Economics" =
1762 { "J. Inst. Theor. Econ." 'jname := }
1763 'skip$
1764 if$
1765 s "Journal of Integrated Disaster Risk Management" =
1766 { "J. Integr. Disaster Risk Manag." 'jname := }
1767 'skip$
1768 if$
1769 s "Journal of International Business Studies" =
1770 { "J. Int. Bus. Stud." 'jname := }
1771 'skip$
1772 if$
1773 s "Journal of International Economics" =
1774 { "J. Int. Econ." 'jname := }
1775 'skip$
1776 if$
1777 s "Journal of International Marketing" =
1778 { "J. Int. Marketing" 'jname := }
1779 'skip$
1780 if$
1781 s "Journal of International Money and Finance" =
1782 { "J. Int. Money Financ." 'jname := }
1783 'skip$
1784 if$
1785 s "Journal of Labor Economics" =
1786 { "J. Labor Econ." 'jname := }
1787 'skip$
1788 if$
1789 s "Journal of Labor Research" =
1790 { "J. Labor Res." 'jname := }
1791 'skip$
1792 if$
1793 s "Journal of Law and Economics" =
1794 { "J. Law. Econ." 'jname := }
1795 'skip$
1796 if$
1797 s "Journal of Law, Economics, and Organization" =
1798 { "J. Law. Econ. Organ." 'jname := }
1799 'skip$
1800 if$
1801 s "Journal of Macroeconomics" =
1802 { "J. Macroecon." 'jname := }
1803 'skip$
1804 if$
1805 s "Journal of Management" =
1806 { "J. Manage." 'jname := }
1807 'skip$
1808 if$
1809 s "Journal of Management Studies" =
1810 { "J. Manage. Stud." 'jname := }
1811 'skip$
1812 if$
1813 s "Journal of Marketing" =
1814 { "J. Marketing" 'jname := }
1815 'skip$
1816 if$
1817 s "Journal of Marketing Research" =
1818 { "J. Marketing Res." 'jname := }
1819 'skip$
1820 if$
1821 s "Journal of Mathematical Economics" =
1822 { "J. Math. Econ." 'jname := }
1823 'skip$
1824 if$
1825 s "Journal of Media Economics" =
1826 { "J. Media Econ." 'jname := }
1827 'skip$
1828 if$
1829 s "Journal of Monetary Economics" =
1830 { "J. Monetary. Econ." 'jname := }
1831 'skip$
1832 if$
1833 s "Journal of Money, Credit and Banking" =
1834 { "J. Money Credit Bank." 'jname := }
1835 'skip$
1836 if$
1837 s "Journal of Policy Modeling" =
1838 { "J. Policy Model." 'jname := }
1839 'skip$
1840 if$
1841 s "Journal of Political Economy" =
1842 { "J. Polit. Econ." 'jname := }
1843 'skip$
1844 if$
1845 s "Journal of Population Economics" =
1846 { "J. Popul. Econ." 'jname := }
1847 'skip$
1848 if$
1849 s "Journal of Portfolio Management" =
1850 { "J. Portfolio Manage." 'jname := }
1851 'skip$
1852 if$
1853 s "Journal of Post Keynesian Economics" =
1854 { "J. Post Keynesian Ec." 'jname := }
1855 'skip$
1856 if$
1857 s "Journal of Product Innovation Management" =
1858 { "J. Prod. Innovat. Manag." 'jname := }
1859 'skip$
1860 if$
1861 s "Journal of Productivity Analysis" =
1862 { "J. Prod. Anal." 'jname := }
1863 'skip$
1864 if$
1865 s "Journal of Public Economics" =
1866 { "J. Public Econ." 'jname := }
1867 'skip$
1868 if$
1869 s "Journal of Public Policy and Marketing" =
1870 { "J. Public Policy Mark." 'jname := }
1871 'skip$
1872 if$
1873 s "Journal of Real Estate Finance and Economics" =
1874 { "J. Real Estate Financ." 'jname := }
1875 'skip$
1876 if$
1877 s "Journal of Regulatory Economics" =
1878 { "J. Regul. Econ." 'jname := }
1879 'skip$
1880 if$
1881 s "Journal of Retailing" =
1882 { "J. Retailing" 'jname := }
1883 'skip$
1884 if$
1885 s "Journal of Risk and Insurance" =
1886 { "J. Risk. Insur" 'jname := }
1887 'skip$
1888 if$
1889 s "Journal of Risk and Uncertainty" =
1890 { "J. Risk Uncertainty" 'jname := }
1891 'skip$
1892 if$
1893 s "Journal of Statistical Computation and Simulation" =
1894 { "J. Stat. Comput. Sim." 'jname := }
1895 'skip$
1896 if$
1897 s "Journal of Statistical Planning and Inference" =
1898 { "J. Stat. Plan. Infer." 'jname := }
1899 'skip$
1900 if$
1901 s "Journal of the Academy of Marketing Science" =
1902 { "J. Acad. Market. Sci." 'jname := }
1903 'skip$
1904 if$
1905 s "Journal of the American Statistical Association" =
1906 { "J. Am. Stat. Assoc." 'jname := }
1907 'skip$
1908 if$
1909 s "Journal of the European Economic Association" =
1910 { "J. Eur. Econ. Assoc." 'jname := }
1911 'skip$
1912 if$
1913 s "Journal of the Japanese and International Economies" =
1914 { "J. Jpn. Int. Econ." 'jname := }
1915 'skip$
1916 if$
1917 s "Journal of Time Series Analysis" =
1918 { "J. Time Ser. Anal." 'jname := }
1919 'skip$
1920 if$
1921 s "Journal of Transport Economics and Policy" =
1922 { "J. Transp. Econ. Policy" 'jname := }
1923 'skip$
1924 if$
1925 s "Journal of Urban Economics" =
1926 { "J. Urban Econ." 'jname := }
1927 'skip$
1928 if$
1929 s "Journal of World Business" =
1930 { "J. World. Bus." 'jname := }
1931 'skip$
1932 if$
1933 s "Kyklos" =
1934 { "Kyklos" 'jname := }
1935 'skip$
1936 if$
1937 s "Labor History" =
1938 { "Labor Hist." 'jname := }
1939 'skip$
1940 if$
1941 s "Labour Economics" =
1942 { "Labour Econ." 'jname := }
1943 'skip$
1944 if$
1945 s "Land Economics" =
1946 { "Land Econ." 'jname := }
1947 'skip$
1948 if$
1949 s "Long Range Planning" =
1950 { "Long Range Plann." 'jname := }
1951 'skip$
1952 if$
1953 s "Macroeconomic Dynamics" =
1954 { "Macroecon. Dyn." 'jname := }
1955 'skip$
1956 if$
1957 s "Management Science" =
1958 { "Manage. Sci." 'jname := }
1959 'skip$
1960 if$
1961 s "Manchester School" =
1962 { "Manch. Sch." 'jname := }
1963 'skip$
1964 if$
1965 s "Marketing Letters" =
1966 { "Market. Lett." 'jname := }
1967 'skip$
1968 if$
1969 s "Marketing Science" =
1970 { "Market. Sci." 'jname := }
1971 'skip$
1972 if$
1973 s "Materials Transactions" =
1974 { "Mater. Trans." 'jname := }
1975 'skip$
1976 if$
1977 s "Mathematical Finance" =
1978 { "Math. Financ." 'jname := }
1979 'skip$
1980 if$
1981 s "Monthly Labor Review" =
1982 { "Mon. Labor Rev." 'jname := }
1983 'skip$
1984 if$
1985 s "National Tax Journal" =
1986 { "Natl. Tax. J." 'jname := }
1987 'skip$
1988 if$
1989 s "New England Economic Review" =
1990 { "New Engl. Econ. Rev." 'jname := }
1991 'skip$
1992 if$
1993 s "New Political Economy" =
1994 { "New Polit. Econ." 'jname := }
1995 'skip$
1996 if$
1997 s "Open Economies Review" =
1998 { "Open. Econ. Rev." 'jname := }
1999 'skip$
2000 if$
2001 s "Organizational Dynamics" =
2002 { "Organ. Dyn." 'jname := }
2003 'skip$
2004 if$
2005 s "Oxford Bulletin of Economics and Statistics" =
2006 { "Oxford. B. Econ. Stat." 'jname := }
2007 'skip$
2008 if$
2009 s "Oxford Economic Papers" =
2010 { "Oxford Econ. Pap." 'jname := }
2011 'skip$
2012 if$
2013 s "Oxford Review of Economic Policy" =
2014 { "Oxford. Rev. Econ. Pol." 'jname := }
2015 'skip$
2016 if$
2017 s "Politicka Ekonomie" =
2018 { "Polit. Ekon." 'jname := }
2019 'skip$
2020 if$
2021 s "Population and Development Review" =
2022 { "Popul. Dev. Rev." 'jname := }
2023 'skip$
2024 if$
2025 s "Post-Communist Economies" =
2026 { "Post.-Communist. Econ." 'jname := }
2027 'skip$
2028 if$
2029 s "Post-Soviet Affairs" =
2030 { "Post.-Sov. Aff." 'jname := }
2031 'skip$
2032 if$
2033 s "Psychology \& Marketing" =
2034 { "Psychol. Market." 'jname := }
2035 'skip$
2036 if$
2037 s "Public Choice" =
2038 { "Public. Choice." 'jname := }
2039 'skip$
2040 if$
2041 s "Quantitative Finance" =
2042 { "Quant. Financ." 'jname := }
2043 'skip$
2044 if$
2045 s "Quarterly Journal of Economics" =
2046 { "Q. J. Econ." 'jname := }
2047 'skip$
2048 if$
2049 s "R\&D Management" =
2050 { "R.\&D. Manage." 'jname := }
2051 'skip$
2052 if$
2053 s "RAND Journal of Economics" =
2054 { "Rand. J. Econ." 'jname := }
2055 'skip$
2056 if$
2057 s "Real Estate Economics" =
2058 { "Real Estate Econ." 'jname := }
2059 'skip$
2060 if$
2061 s "Regional Science and Urban Economics" =
2062 { "Reg. Sci. Urban. Econ." 'jname := }
2063 'skip$
2064 if$
2065 s "Regional Studies" =
2066 { "Reg. Stud." 'jname := }
2067 'skip$
2068 if$
2069 s "Relations Industrielles-Industrial Relations" =
2070 { "Relat. Ind.-Ind. Relat." 'jname := }
2071 'skip$
2072 if$
2073 s "Research-Technology Management" =
2074 { "Res. Technol. Manage." 'jname := }
2075 'skip$
2076 if$
2077 s "Resource and Energy Economics" =
2078 { "Resour. Energy. Econ." 'jname := }
2079 'skip$
2080 if$
2081 s "Review of Accounting Studies" =
2082 { "Rev. Acc. Stud." 'jname := }
2083 'skip$
2084 if$
2085 s "Review of Agricultural Economics" =
2086 { "Rev. Agr. Econ." 'jname := }
2087 'skip$
2088 if$
2089 s "Review of Development Economics" =
2090 { "Rev. Dev. Econ." 'jname := }
2091 'skip$
2092 if$
2093 s "Review of Economic Dynamics" =
2094 { "Rev. Econ. Dynam." 'jname := }
2095 'skip$
2096 if$
2097 s "Review of Economic Studies" =
2098 { "Rev. Econ. Stat." 'jname := }
2099 'skip$
2100 if$
2101 s "Review of Economics and Statistics" =
2102 { "Rev. Econ. Stud." 'jname := }
2103 'skip$
2104 if$
2105 s "Review of Financial Studies" =
2106 { "Rev. Financ. Stud." 'jname := }
2107 'skip$
2108 if$
2109 s "Review of Income and Wealth" =
2110 { "Rev. Income Wealth" 'jname := }
2111 'skip$
2112 if$
2113 s "Review of Industrial Organization" =
2114 { "Rev. Ind. Organ." 'jname := }
2115 'skip$
2116 if$
2117 s "Review of International Economics" =
2118 { "Rev. Int. Econ." 'jname := }
2119 'skip$
2120 if$
2121 s "Review of International Political Economy" =
2122 { "Rev. Int. Polit. Econ." 'jname := }
2123 'skip$
2124 if$
2125 s "Review of World Economics" =
2126 { "Rev. World Econ." 'jname := }
2127 'skip$
2128 if$
2129 s "Scandinavian Journal of Economics" =
2130 { "Scand. J. Econ." 'jname := }
2131 'skip$
2132 if$
2133 s "Scottish Journal of Political Economy" =
2134 { "Scot. J. Polit. Econ." 'jname := }
2135 'skip$
2136 if$
2137 s "Small Business Economics" =
2138 { "Small. Bus. Econ." 'jname := }
2139 'skip$
2140 if$
2141 s "Social Choice and Welfare" =
2142 { "Soc. Choice Welfare" 'jname := }
2143 'skip$
2144 if$
2145 s "South African Journal of Economics" =
2146 { "S. Afr. J. Econ." 'jname := }
2147 'skip$
2148 if$
2149 s "Southern Economic Journal" =
2150 { "South. Econ. J." 'jname := }
2151 'skip$
2152 if$
2153 s "Strategic Management Journal" =
2154 { "Statistics." 'jname := }
2155 'skip$
2156 if$
2157 s "Strategic Management Journal" =
2158 { "Strategic Manage. J." 'jname := }
2159 'skip$
2160 if$
2161 s "Studies in Nonlinear Dynamics and Econometrics" =
2162 { "Stoch. Anal. Appl." 'jname := }
2163 'skip$
2164 if$
2165 s "Studies in Nonlinear Dynamics and Econometrics" =
2166 { "Stud. Nonlinear. Dyn. E." 'jname := }
2167 'skip$
2168 if$
2169 s "Supply Chain Management" =
2170 { "Supply. Chain. Manag." 'jname := }
2171 'skip$
2172 if$
2173 s "Sustainability" =
2174 { "Sustainability" 'jname := }
2175 'skip$
2176 if$
2177 s "Technological Forecasting and Social Change" =
2178 { "Technol. Forecast. Soc." 'jname := }
2179 'skip$
2180 if$
2181 s "Theory and Decision" =
2182 { "Theor. Decis." 'jname := }
2183 'skip$
2184 if$
2185 s "Tijdschrift voor Economische en Sociale Geografie" =
2186 { "Tijdschr. Econ. Soc. Ge." 'jname := }
2187 'skip$
2188 if$
2189 s "Trimestre Economico" =
2190 { "Trimest. Econ." 'jname := }
2191 'skip$
2192 if$
2193 s "Work and Occupations" =
2194 { "Work Occupation." 'jname := }
2195 'skip$
2196 if$
2197 s "Work, Employment and Society" =
2198 { "Work Employ. Soc." 'jname := }
2199 'skip$
2200 if$
2201 s "World Bank Economic Review" =
2202 { "World Bank Econ. Rev." 'jname := }
2203 'skip$
2204 if$
2205 s "World Bank Research Observer" =
2206 { "World Bank Res. Obser." 'jname := }
2207 'skip$
2208 if$
2209 s "World Development" =
2210 { "World Dev." 'jname := }
2211 'skip$
2212 if$
2213 s "World Economy" =
2214 { "World Econ." 'jname := }
2215 'skip$
2216 if$
2217 }
2218 if$
2219 jname
2220 }
2221
2222 %%% Remove commas in the cases like "?." and "?,".
2223 FUNCTION {remove.irrelevant.period.comma}
2224 { 's :=
2225 s empty$
2226 { "" }
2227 { s #-1 #3 substring$ "?,'" =
2228 s #-1 #3 substring$ "?.'" = or
2229 { s #-3 global.max$ substring$ "'" * }
2230 { s #-1 #4 substring$ "?,''" =
2231 s #-1 #4 substring$ "?.''" = or
2232 { s #-4 global.max$ substring$ "''" * }
2233 { s #-1 #2 substring$ "?," =
2234 s #-1 #2 substring$ "?." = or
2235 { s #-2 global.max$ substring$ "" * }
2236 { s #-1 #3 substring$ "?,~" =
2237 s #-1 #3 substring$ "?.~" = or
2238 { s #-4 global.max$ substring$ "?~" * }
2239 { s #-1 #3 substring$ ".}." =
2240 { s #-3 global.max$ substring$ "}" * }
2241 's
2242 if$
2243 }
2244 if$
2245 }
2246 if$
2247 }
2248 if$
2249 }
2250 if$
2251 }
2252 if$
2253 }
2254
2255 %%% journal
2256 FUNCTION {format.output.journal}
2257 { journal empty$
2258 'skip$
2259 { bst.journal.pre format.journal.name.abb * bst.journal.post * 'jname :=
2260 jname remove.irrelevant.period.comma output.field }
2261 if$
2262 }
2263
2264 FUNCTION {format.output.book}
2265 { title empty$
2266 { "there's no title in " cite$ * warning$ }
2267 { bst.hide.title #0 = not
2268 'skip$
2269 { bst.book.pre title * bst.book.post * output.field }
2270 if$
2271 }
2272 if$
2273 }
2274
2275 FUNCTION {format.output.url}
2276 { type$ "online" = bst.show.url or
2277 { bst.url.pre url * bst.url.post *
2278 access empty$
2279 { "" * output.field }
2280 { bst.access.pre * access * bst.access.post * output.field }
2281 if$
2282 }
2283 'skip$
2284 if$
2285 }
2286
2287 FUNCTION {format.output.doi}
2288 { bst.show.doi
2289 { bst.doi.pre doi * bst.doi.post * output.field }
2290 'skip$
2291 if$
2292 }
2293
2294 FUNCTION {format.output.url.doi}
2295 { url empty$
2296 { doi empty$
2297 'skip$
2298 { format.output.doi }
2299 if$
2300 }
2301 { doi empty$
2302 { format.output.url }
2303 { bst.url.doi #0 =
2304 { format.output.url
2305 format.output.doi }
2306 { bst.url.doi #1 =
2307 { format.output.url }
2308 { format.output.doi }
2309 if$
2310 }
2311 if$
2312 }
2313 if$
2314 }
2315 if$
2316 }
2317
2318 %%% and others
2319 FUNCTION {bst.and.others.output}
2320 { nameorder.temp "random" =
2321 bst.use.nameorder #0 = not and
2322 { bst.and.others.nameorder }
2323 { bst.and.others }
2324 if$
2325 }
2326
2327 %%% author and editor
2328
2329 % nameptr: author number
2330 % numnames: the total number of authors
2331 % namesleft: the number of authors which have not been processed.
2332 % numtrunc: bst.max.author.num.display
2333
2334 %%% name
2335 FUNCTION {format.names}
2336 { 's :=
2337 % insert 1 to nameptr.
2338 #1 'nameptr :=
2339 % Set the number of authors to numnames.
2340 s num.names$ 'numnames :=
2341 numnames 'namesleft :=
2342
2343 numnames bst.max.author.num >
2344 % If numnames > bst.max.author.num
2345 { bst.max.author.num.display 'numtrunc := }
2346 { #0 'numtrunc := }
2347 if$
2348 % Repeat if namesleft > 0 ---- Repeat from here
2349 { namesleft #0 > }
2350 {
2351 % Block A starts
2352 nameptr #1 =
2353 % A-1: If the author is the 1st author
2354 { bst.author.name #0 =
2355 bst.author.name #1 = or
2356 { bst.first.name.initial #0 =
2357 { s nameptr "{vv~}{ll}{, ff}{, jj}" format.name$ 't := }
2358 { s nameptr "{vv~}{ll}{, f.}{, jj}" format.name$ 't := }
2359 if$
2360 }
2361 { bst.first.name.initial #0 =
2362 { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't := }
2363 { s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't := }
2364 if$
2365 }
2366 if$
2367 }
2368 % A-2: If the author is the second or later authors (not the 1st author).
2369 { bst.author.name #0 =
2370 bst.author.name #2 =
2371 or
2372 { bst.first.name.initial #0 =
2373 { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't := }
2374 { s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't := }
2375 if$
2376 }
2377 { bst.first.name.initial #0 =
2378 { s nameptr "{vv~}{ll}{, ff}{, jj}" format.name$ 't := }
2379 { s nameptr "{vv~}{ll}{, f.}{, jj}" format.name$ 't := }
2380 if$
2381 }
2382 if$
2383 }
2384 if$
2385 % Block A ends
2386
2387 % Block B starts
2388 nameptr #1 >
2389 % B-1: If the author is the second or later authors
2390 { nameptr #1 - numtrunc =
2391 % If nameptr - 1 = numtrunc
2392 { #1 'namesleft :=
2393 "others" 't := }
2394 'skip$
2395 if$
2396 % If numnames <= bst.max.author.num
2397 nameorder.temp "random" =
2398 bst.use.nameorder #0 = not and
2399 % If random ordering is used
2400 { bst.and.nameorder * t * }
2401 % If random ordering is not used
2402 { namesleft #1 >
2403 % If more than one authors are left
2404 { ", " * t * }
2405 % If the author is the last author.
2406 { t "others" =
2407 % If the name is "others"
2408 { bst.and.others.output * }
2409 % If the name is not "others"
2410 { numnames #2 =
2411 % If the entry have two authors
2412 { bst.and * t * }
2413 % If the entry have more than two authors
2414 { bst.ands * t * }
2415 if$
2416 }
2417 if$
2418 }
2419 if$
2420 }
2421 if$
2422 }
2423 % When the author is the first author.
2424 't
2425 if$
2426 % Block B ends
2427 nameptr #1 + 'nameptr :=
2428 namesleft #1 - 'namesleft :=
2429 }
2430 while$ % ---- Repeat until here
2431 }
2432
2433 % For econ-jpe.bst, we define `format.name.ed` in addition to `format.name`.
2434 FUNCTION {format.names.ed}
2435 { 's :=
2436 % insert 1 to nameptr.
2437 #1 'nameptr :=
2438 % Set the number of authors to numnames.
2439 s num.names$ 'numnames :=
2440 numnames 'namesleft :=
2441 % Repeat if namesleft > 0
2442 { namesleft #0 > }
2443 { nameptr #1 =
2444 % First author
2445 { bst.first.name.initial #0 =
2446 { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't := }
2447 { s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't := }
2448 if$
2449 }
2450 % The second or later authors
2451 { bst.first.name.initial #0 =
2452 { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't := }
2453 { s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't := }
2454 if$
2455 }
2456 if$
2457
2458 nameptr #1 >
2459 % The second or later authors
2460 { nameorder.temp "random" =
2461 bst.use.nameorder #0 = not and
2462 { bst.and.nameorder * t * }
2463 { namesleft #1 >
2464 % More than one authors left
2465 { ", " * t * }
2466 % Only one author left
2467 { t "others" =
2468 { bst.and.others.output * }
2469 { numnames #2 =
2470 % Entry with two authors
2471 { bst.and * t * }
2472 { bst.ands * t * }
2473 if$
2474 }
2475 if$
2476 }
2477 if$
2478 }
2479 if$
2480 }
2481 't
2482 if$
2483 nameptr #1 + 'nameptr :=
2484 namesleft #1 - 'namesleft :=
2485 }
2486 while$ % ---- Repeat until here
2487 }
2488
2489 % remove successive periods (commas) from author
2490 FUNCTION {remove.ss.period.auth}
2491 { 's :=
2492 s format.names 'tempa :=
2493 bst.author.post 'tempb :=
2494 tempb #1 #1 substring$ "}" =
2495 { tempa tempb * }
2496 { tempa #-1 #1 substring$ tempb #1 #1 substring$ =
2497 { tempa tempb #2 global.max$ substring$ * }
2498 { tempa tempb * }
2499 if$
2500 }
2501 if$
2502 }
2503
2504 % <prev name list> <new name list> compare.names <modified name list>
2505 FUNCTION {compare.names.aer}
2506 { 's :=
2507 'tempa :=
2508
2509 % "current.author = " s * "\\" * write$ newline$
2510 % "prev.author = " tempa * "\\" * write$ newline$
2511
2512 tempa num.names$ 'len1.aer := % len1 = the number of previous authors
2513 s num.names$ 'len2.aer := % len2 = the number of current authors
2514
2515 % len1.aer := min(len1.aer,len2.aer)
2516 % len1 -> min{ the number of previous authors, the number of current authors }
2517 len1.aer len2.aer >
2518 { len2.aer 'len1.aer := }
2519 { }
2520 if$
2521
2522 % start with an empty string, then while the components are the same
2523 % add "\bysame"
2524 ""
2525 #1 'i.aer :=
2526
2527 { i.aer len1.aer > not }
2528 { tempa i.aer "{ff }{vv }{ll}{ jj}" format.name$
2529 s i.aer "{ff }{vv }{ll}{ jj}" format.name$
2530 =
2531 { #1 i.aer <
2532 { " and " * }
2533 { }
2534 if$
2535 "\bysame{}" *
2536 i.aer #1 + 'i.aer := }
2537 { #-1 'len1.aer := }
2538 if$
2539 }
2540 while$
2541
2542 % add the rest of the second string
2543 { i.aer len2.aer > not }
2544 { #1 i.aer <
2545 { " and " * }
2546 { }
2547 if$
2548 s i.aer "{ff }{vv }{ll}{ jj}" format.name$ *
2549 i.aer #1 + 'i.aer :=
2550 }
2551 while$
2552 }
2553
2554 %%% author
2555 FUNCTION {format.output.authors}
2556 { author empty$
2557 'skip$
2558 { bst.use.bysame #2 =
2559 { prev.author.aer author compare.names.aer 's :=
2560 author 'prev.author.aer := }
2561 { author 's := }
2562 if$
2563 extra.label.bysame "bysame" =
2564 { "\bysame " }
2565 { bst.author.pre s remove.ss.period.auth * }
2566 if$
2567 output.field
2568 }
2569 if$
2570 }
2571
2572 %%% editor
2573 FUNCTION {format.output.editors}
2574 { editor empty$
2575 'skip$
2576 { bst.use.bysame #2 =
2577 { prev.author.aer editor compare.names.aer 's :=
2578 editor 'prev.author.aer := }
2579 { editor 's := }
2580 if$
2581 extra.label.bysame "bysame" =
2582 { "\bysame " }
2583 { bst.author.pre s remove.ss.period.auth * }
2584 if$
2585 s num.names$ #1 >
2586 { bst.editors * output.field }
2587 { bst.editor * output.field }
2588 if$
2589 }
2590 if$
2591 }
2592
2593 FUNCTION {format.authors.alt}
2594 { author empty$
2595 { "" }
2596 { extra.label.bysame "bysame" =
2597 {"\bysame "}
2598 { bst.author.pre author remove.ss.period.auth * }
2599 if$
2600 }
2601 if$
2602 }
2603
2604 %%% editor
2605 FUNCTION {format.editors.alt}
2606 { editor empty$
2607 { "" }
2608 { extra.label.bysame "bysame" =
2609 { "\bysame " }
2610 { bst.author.pre editor remove.ss.period.auth * }
2611 if$
2612 }
2613 if$
2614 }
2615
2616 FUNCTION {format.editors.x}
2617 { bst.editor.btitle.order #0 =
2618 { "" }
2619 { editor num.names$ #1 >
2620 { " edited by " } % For econ-jpe.bst
2621 { " edited by " } % For econ-jpe.bst
2622 % { bst.editors " by " * }
2623 % { bst.editor " by " * }
2624 if$
2625 }
2626 if$
2627 editor format.names.ed * % For econ-jpe.bst
2628 % editor format.names.editors *
2629 bst.editor.btitle.order #0 =
2630 { editor num.names$ #1 >
2631 { bst.editors * }
2632 { bst.editor * }
2633 if$
2634 }
2635 % { ", " * }
2636 'skip$ % For econ-jpe.bst
2637 if$
2638 }
2639
2640 %%% title
2641 FUNCTION {format.title}
2642 { bst.title.lower.case #0 =
2643 { bst.title.pre title * bst.title.post * }
2644 { bst.title.pre title "t" change.case$ * bst.title.post * }
2645 if$
2646 }
2647
2648 %%% title
2649 FUNCTION {format.output.title}
2650 { title empty$
2651 { "there's no title in " cite$ * warning$ }
2652 { bst.hide.title #0 = not
2653 'skip$
2654 { format.title remove.irrelevant.period.comma output.field }
2655 if$
2656 }
2657 if$
2658 }
2659
2660 % Convert "-" to "--" (for pages field)
2661 FUNCTION {n.dashify}
2662 { 't :=
2663 ""
2664 %% while$
2665 { t empty$ not }
2666 { t #1 #1 substring$ "-" =
2667 { t #1 #2 substring$ "--" = not
2668 { "--" *
2669 t #2 global.max$ substring$ 't :=
2670 }
2671 { { t #1 #1 substring$ "-" = }
2672 { "-" *
2673 t #2 global.max$ substring$ 't :=
2674 }
2675 while$
2676 }
2677 if$
2678 }
2679 { t #1 #1 substring$ *
2680 t #2 global.max$ substring$ 't :=
2681 }
2682 if$
2683 }
2684 while$
2685 }
2686
2687 %%% year
2688 FUNCTION {format.output.year}
2689 { year empty$
2690 { "there's no year in " cite$ * warning$ }
2691 { type$ "article" =
2692 { bst.year.pre year * extra.label * bst.year.post * }
2693 { bst.year.na.pre year * extra.label * bst.year.na.post * }
2694 if$
2695 output.field
2696 }
2697 if$
2698 }
2699
2700 %%% Attach tie for the string with two or less characters.
2701 FUNCTION {tie.or.space.connect}
2702 { duplicate$ text.length$ #3 <
2703 { "~" }
2704 { "" }
2705 if$
2706 swap$ * *
2707 }
2708
2709 FUNCTION {tie.or.space.connect.alt}
2710 { duplicate$ text.length$ #3 <
2711 { "~" }
2712 { " " }
2713 if$
2714 swap$ *
2715 }
2716
2717 FUNCTION {either.or.check}
2718 { empty$
2719 'pop$
2720 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
2721 if$
2722 }
2723
2724 %%% page for book
2725 FUNCTION {format.output.book.pages}
2726 { pages empty$
2727 'skip$
2728 { bst.pages.pre pages n.dashify tie.or.space.connect.alt * bst.pages.post *
2729 output.field }
2730 if$
2731 }
2732
2733 %%% volume for book
2734 FUNCTION {format.output.bvolume}
2735 { volume empty$
2736 'skip$
2737 { bst.bvolume.pre volume * bst.bvolume.post *
2738 series empty$
2739 'skip$
2740 %% If there is series field
2741 { " of " * series * bst.series.post * }
2742 if$
2743 output.field
2744 }
2745 if$
2746 }
2747
2748 %%% series
2749 FUNCTION {format.output.series}
2750 { series empty$
2751 'skip$
2752 { bst.series.pre series * bst.series.post * output.field }
2753 if$
2754 }
2755
2756 %%% number and series
2757 FUNCTION {format.output.number.series}
2758 { number empty$
2759 bst.hide.number #0 = not or
2760 % number is empty
2761 { series empty$
2762 'skip$
2763 % series is not empty.
2764 { format.output.series }
2765 if$
2766 }
2767 % number is not empty$
2768 { series empty$
2769 { bst.number.pre number * bst.number.post * output.field }
2770 % series is not empty.
2771 { bst.in bst.series.pre * series * bst.series.post *
2772 bst.number.pre * number * bst.number.post * output.field }
2773 if$
2774 }
2775 if$
2776 }
2777
2778 %%% Number or not.
2779 FUNCTION {is.num}
2780 { chr.to.int$
2781 duplicate$ "0" chr.to.int$ < not
2782 swap$ "9" chr.to.int$ > not and
2783 }
2784
2785 FUNCTION {extract.num}
2786 { duplicate$ 't :=
2787 "" 's :=
2788 { t empty$ not }
2789 { t #1 #1 substring$
2790 t #2 global.max$ substring$ 't :=
2791 duplicate$ is.num
2792 { s swap$ * 's := }
2793 { pop$ "" 't := }
2794 if$
2795 }
2796 while$
2797 s empty$
2798 'skip$
2799 { pop$ s }
2800 if$
2801 }
2802
2803 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2804 %% edition
2805
2806 % Convert edition to 1st, 2nd, 3rd, 4th etc
2807 FUNCTION {eng.ord}
2808 { duplicate$ "1" swap$ *
2809 #-2 #1 substring$ "1" =
2810 { bst.th * }
2811 { duplicate$ #-1 #1 substring$
2812 duplicate$ "1" =
2813 { pop$ bst.st * }
2814 { duplicate$ "2" =
2815 { pop$ bst.nd * }
2816 { "3" =
2817 { bst.rd * }
2818 { bst.th * }
2819 if$
2820 }
2821 if$
2822 }
2823 if$
2824 }
2825 if$
2826 }
2827
2828 % Convert first, second etc in edition field to 1st, 2nd (from jfm.bst)
2829 FUNCTION {convert.edition}
2830 { edition extract.num "l" change.case$ 's :=
2831 s "first" = s "1" = or
2832 { bst.first }
2833 { s "second" = s "2" = or
2834 { bst.second }
2835 { s "third" = s "3" = or
2836 { bst.third }
2837 { s "fourth" = s "4" = or
2838 { bst.fourth }
2839 { s "fifth" = s "5" = or
2840 { bst.fifth }
2841 { s #1 #1 substring$ is.num
2842 { s eng.ord }
2843 { edition }
2844 if$
2845 }
2846 if$
2847 }
2848 if$
2849 }
2850 if$
2851 }
2852 if$
2853 }
2854 if$
2855 }
2856
2857 %%% edition
2858 FUNCTION {format.output.edition}
2859 { edition empty$
2860 'skip$
2861 { bst.edition.pre convert.edition "l" change.case$ * bst.edition.post * output.field }
2862 if$
2863 }
2864
2865 %%% month
2866 FUNCTION {format.output.month}
2867 { month empty$
2868 bst.hide.month #0 = not or
2869 'skip$
2870 { bst.month.pre month * bst.month.post * output.field }
2871 if$
2872 }
2873
2874 FUNCTION {format.output.date}
2875 { month empty$
2876 { year empty$
2877 'skip$
2878 { format.output.year }
2879 if$
2880 }
2881 { year empty$
2882 { format.output.month }
2883 { format.output.month
2884 format.output.year }
2885 if$
2886 }
2887 if$
2888 }
2889
2890 %%% Is multiple pages like 1-100?
2891 FUNCTION { multi.page.check }
2892 { 't :=
2893 #0 'multiresult :=
2894 { multiresult not
2895 t empty$ not
2896 and
2897 }
2898 { t #1 #1 substring$
2899 duplicate$ "-" =
2900 swap$ duplicate$ "," =
2901 swap$ "+" =
2902 or or
2903 { #1 'multiresult := }
2904 { t #2 global.max$ substring$ 't := }
2905 if$
2906 }
2907 while$
2908 multiresult
2909 }
2910
2911 %%% pages
2912 FUNCTION {format.pages}
2913 { pages multi.page.check
2914 { bst.pages.pre pages n.dashify tie.or.space.connect.alt * bst.pages.post * }
2915 { bst.page.pre pages tie.or.space.connect.alt * bst.page.post * }
2916 if$
2917 }
2918
2919 FUNCTION {format.output.pages}
2920 { pages empty$
2921 'skip$
2922 { format.pages output.field }
2923 if$
2924 }
2925
2926 %%% number
2927 FUNCTION {format.output.number}
2928 { number empty$
2929 bst.hide.number #0 = not or
2930 'skip$
2931 { bst.number.pre number * bst.number.post * output.field }
2932 if$
2933 }
2934
2935 %%% volume
2936 FUNCTION {format.output.volume}
2937 { volume empty$
2938 'skip$
2939 { bst.volume.pre volume * bst.volume.post * output.field }
2940 if$
2941 }
2942
2943 %%% chapter
2944 FUNCTION {format.output.chapter}
2945 { chapter empty$
2946 'skip$
2947 { bst.chapter.pre chapter tie.or.space.connect.alt * bst.chapter.post * output.field }
2948 if$
2949 }
2950
2951 %%% editor and booktitle
2952 FUNCTION {format.output.in.ed.booktitle}
2953 { booktitle empty$
2954 'skip$
2955 { editor empty$
2956 { bst.in format.btitle * }
2957 { bst.editor.btitle.order #0 =
2958 { bst.in format.editors.x * " " * format.btitle * }
2959 { bst.in format.btitle * " " * format.editors.x * }
2960 if$
2961 }
2962 if$
2963 output.field
2964 }
2965 if$
2966 }
2967
2968 %%% howpublished
2969 FUNCTION {format.output.howpublished}
2970 { howpublished empty$
2971 'skip$
2972 { bst.howpublished.pre howpublished * bst.howpublished.post * output.field }
2973 if$
2974 }
2975
2976 %%% address
2977 FUNCTION {format.output.address}
2978 { address empty$
2979 'skip$
2980 { bst.address.pre address * bst.address.post * output.field }
2981 if$
2982 }
2983
2984 %%% publisher
2985 FUNCTION {format.output.publisher}
2986 { publisher empty$
2987 'skip$
2988 { bst.publisher.pre publisher * bst.publisher.post * output.field }
2989 if$
2990 }
2991
2992 %%% organization
2993 FUNCTION {format.output.organization}
2994 { organization empty$
2995 'skip$
2996 { bst.organization.pre organization * bst.organization.post * output.field }
2997 if$
2998 }
2999
3000 %% publisher and address
3001 FUNCTION {format.output.publisher.address}
3002 { bst.address.position #0 =
3003 { format.output.address
3004 format.output.publisher }
3005 { format.output.publisher
3006 format.output.address }
3007 if$
3008 }
3009
3010 %% address, organization, publisher
3011 FUNCTION {format.output.address.organization.publisher}
3012 { format.output.organization
3013 bst.address.position #0 =
3014 { format.output.address
3015 format.output.publisher }
3016 { format.output.publisher
3017 format.output.address }
3018 if$
3019 }
3020
3021 %%% misc
3022 FUNCTION {empty.misc.check}
3023 { author empty$ title empty$ howpublished empty$
3024 month empty$ year empty$ note empty$
3025 and and and and and
3026 key empty$ not and
3027 { "All relevant fields are empty in " cite$ * warning$ }
3028 'skip$
3029 if$
3030 }
3031
3032 FUNCTION {format.thesis.type}
3033 { type empty$
3034 'skip$
3035 { pop$ ", " type * }
3036 if$
3037 }
3038
3039 FUNCTION {format.tr.number}
3040 { type empty$
3041 { bst.techrep }
3042 { ", " type * }
3043 if$
3044 number empty$
3045 bst.hide.number #0 = not or
3046 { "t" change.case$ }
3047 { number tie.or.space.connect }
3048 if$
3049 }
3050
3051 %%% phdthesis
3052 FUNCTION {format.output.phd}
3053 { bst.phdthesis format.thesis.type output.field }
3054
3055 %%% mastersthesis
3056 FUNCTION {format.output.mthesis}
3057 { bst.mthesis format.thesis.type output.field }
3058
3059 %%% school
3060 FUNCTION {format.output.school}
3061 { school empty$
3062 'skip$
3063 { bst.school.pre school * bst.school.post * output.field }
3064 if$
3065 }
3066
3067 %%% institution
3068 FUNCTION {format.output.institution}
3069 { institution empty$
3070 'skip$
3071 { bst.institution.pre institution * bst.institution.post * output.field }
3072 if$
3073 }
3074
3075 FUNCTION {format.output.note}
3076 { note empty$
3077 'skip$
3078 { bst.note.pre note * bst.note.post * output.field }
3079 if$
3080 }
3081
3082 %%% remove first ? characters.
3083 % example
3084 %
3085 % "abc" #3" x1 chop.word
3086 %
3087 % If the first three characters of x1 are equal to abc, the function returns
3088 % the string with abc removed. Otherwise, it returns x1 as is.
3089 FUNCTION {chop.word}
3090 { 's :=
3091 'len :=
3092 s #1 len substring$ =
3093 { s len #1 + global.max$ substring$ }
3094 's
3095 if$
3096 }
3097
3098 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3099 % \havarditem
3100
3101 FUNCTION {output.bibitem}
3102 { newline$
3103 "\harvarditem[" write$
3104 alabel write$ % alabel <- abbreviated citation
3105 "]{" write$
3106 flabel write$ % flabel <- full citation
3107 "}{" write$
3108 cyear write$
3109 % cyear = year
3110 "}{" write$
3111 cite$ write$ % cite$ -> pusch keyword
3112 "}" write$
3113 % If number index is on
3114 bst.use.number.index #0 =
3115 'skip$
3116 { index #1 + 'index :=
3117 "" 'preone :=
3118 "" 'preten :=
3119 bst.number.index.digit "1" =
3120 'skip$
3121 { bst.number.index.digit "2" =
3122 { "\hskip0.5em" 'preone := }
3123 { bst.number.index.digit "3" =
3124 { "\hskip1em" 'preone :=
3125 "\hskip0.5em" 'preten := }
3126 'skip$
3127 if$
3128 }
3129 if$
3130 }
3131 if$
3132 }
3133 if$
3134 newline$
3135 before.all 'output.state :=
3136 ""
3137 % number index
3138 bst.use.number.index #0 =
3139 'skip$
3140 { index #10 <
3141 % Insert spaces according to digit of number index.
3142 { preone }
3143 { index #100 <
3144 { preten }
3145 { "" }
3146 if$
3147 }
3148 if$
3149 bst.number.index.pre * index int.to.str$ * bst.number.index.post * write$
3150 }
3151 if$
3152 }
3153
3154 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3155 % article
3156
3157 FUNCTION {article}
3158 { output.bibitem
3159 format.output.authors
3160 bst.year.position #0 =
3161 { format.output.year }
3162 'skip$
3163 if$
3164 format.output.title
3165 format.output.journal
3166 bst.year.position #2 =
3167 { format.output.year }
3168 'skip$
3169 if$
3170 format.output.volume
3171 bst.year.position #3 =
3172 { format.output.year }
3173 'skip$
3174 if$
3175 format.output.number
3176 format.output.pages
3177 bst.year.position #1 =
3178 { format.output.year }
3179 'skip$
3180 if$
3181 format.output.url.doi
3182 format.output.note
3183 fin.entry
3184 }
3185
3186 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3187 % book
3188
3189 FUNCTION {book}
3190 { output.bibitem
3191 author empty$
3192 { format.output.editors }
3193 { format.output.authors
3194 "author and editor" editor either.or.check
3195 }
3196 if$
3197 bst.year.position #0 =
3198 { format.output.year }
3199 'skip$
3200 if$
3201 format.output.book
3202 format.output.bvolume
3203 format.output.number.series
3204 format.output.edition
3205 format.output.publisher.address
3206 bst.year.position #0 = not
3207 { format.output.year }
3208 'skip$
3209 if$
3210 format.output.url.doi
3211 format.output.note
3212 fin.entry
3213 }
3214
3215 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3216 % booklet
3217
3218 FUNCTION {booklet}
3219 { output.bibitem
3220 % Only the author field can be used? The editor field cannot be used?
3221 format.output.authors
3222 bst.year.position #0 =
3223 { format.output.year }
3224 'skip$
3225 if$
3226 format.output.title
3227 format.output.howpublished
3228 format.output.address
3229 bst.year.position #0 = not
3230 { format.output.year }
3231 'skip$
3232 if$
3233 format.output.url.doi
3234 format.output.note
3235 fin.entry
3236 }
3237
3238 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3239 % inbook
3240
3241 FUNCTION {inbook}
3242 { output.bibitem
3243 author empty$
3244 { format.output.editors }
3245 { format.output.authors
3246 "author and editor" editor either.or.check
3247 }
3248 if$
3249 bst.year.position #0 =
3250 { format.output.year }
3251 'skip$
3252 if$
3253 format.output.book
3254 format.output.edition
3255 format.output.bvolume
3256 format.output.chapter
3257 format.output.pages
3258 format.output.number.series
3259 format.output.publisher.address
3260 bst.year.position #0 = not
3261 { format.output.year }
3262 'skip$
3263 if$
3264 format.output.url.doi
3265 format.output.note
3266 fin.entry
3267 }
3268
3269 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3270 % incollection
3271
3272 FUNCTION {incollection}
3273 { output.bibitem
3274 format.output.authors
3275 bst.year.position #0 =
3276 { format.output.year }
3277 'skip$
3278 if$
3279 format.output.title
3280 format.output.in.ed.booktitle
3281 format.output.bvolume
3282 % For econ-jpe.bst, publisher and its address are placed before edition,
3283 % chapter and page number.
3284 format.output.address.organization.publisher
3285 format.output.edition
3286 format.output.chapter
3287 format.output.pages
3288 % format.output.address.organization.publisher
3289 bst.year.position #0 = not
3290 { format.output.year }
3291 'skip$
3292 if$
3293 format.output.url.doi
3294 format.output.note
3295 fin.entry
3296 }
3297
3298 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3299 % inproceedings
3300
3301 FUNCTION {inproceedings}
3302 { output.bibitem
3303 format.output.authors
3304 bst.year.position #0 =
3305 { format.output.year }
3306 'skip$
3307 if$
3308 format.output.title
3309 format.output.in.ed.booktitle
3310 format.output.bvolume
3311 format.output.number.series
3312 format.output.pages
3313 format.output.address.organization.publisher
3314 bst.year.position #0 = not
3315 { format.output.date }
3316 { format.output.month }
3317 if$
3318 format.output.url.doi
3319 format.output.note
3320 fin.entry
3321 }
3322
3323 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3324 % conference
3325
3326 FUNCTION {conference}
3327 { inproceedings }
3328
3329 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3330 % manual
3331
3332 FUNCTION {manual}
3333 { output.bibitem
3334 format.output.authors
3335 bst.year.position #0 =
3336 { format.output.year }
3337 'skip$
3338 if$
3339 format.output.book
3340 format.output.address.organization.publisher
3341 format.output.edition
3342 bst.year.position #0 = not
3343 { format.output.year }
3344 'skip$
3345 if$
3346 format.output.url.doi
3347 format.output.note
3348 fin.entry
3349 }
3350
3351 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3352 % mastersthesis
3353
3354 FUNCTION {masterthesis}
3355 { output.bibitem
3356 format.output.authors
3357 bst.year.position #0 =
3358 { format.output.year }
3359 'skip$
3360 if$
3361 format.output.title
3362 format.output.mthesis
3363 format.output.school
3364 format.output.address
3365 bst.year.position #0 = not
3366 { format.output.year }
3367 'skip$
3368 if$
3369 format.output.url.doi
3370 format.output.note
3371 fin.entry
3372 }
3373
3374 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3375 % phdthesis
3376
3377 FUNCTION {phdthesis}
3378 { output.bibitem
3379 format.output.authors
3380 bst.year.position #0 =
3381 { format.output.year }
3382 'skip$
3383 if$
3384 format.output.book
3385 format.output.phd
3386 format.output.school
3387 format.output.address
3388 bst.year.position #0 = not
3389 { format.output.year }
3390 'skip$
3391 if$
3392 format.output.url.doi
3393 format.output.note
3394 fin.entry
3395 }
3396
3397 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3398 % proceedings
3399
3400 FUNCTION {proceedings}
3401 { output.bibitem
3402 editor empty$
3403 { organization output.field }
3404 { format.output.editors }
3405 if$
3406 bst.year.position #0 =
3407 { format.output.year }
3408 'skip$
3409 if$
3410 format.output.book
3411 format.output.bvolume
3412 format.output.number.series
3413 format.output.address.organization.publisher
3414 bst.year.position #0 = not
3415 { format.output.year }
3416 'skip$
3417 if$
3418 format.output.url.doi
3419 format.output.note
3420 fin.entry
3421
3422 }
3423
3424 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3425 % techreport
3426
3427 FUNCTION {techreport}
3428 { output.bibitem
3429 format.output.authors
3430 bst.year.position #0 =
3431 { format.output.year }
3432 'skip$
3433 if$
3434 format.output.title
3435 format.tr.number output.field
3436 format.output.institution
3437 format.output.address
3438 bst.year.position #0 = not
3439 { format.output.year }
3440 'skip$
3441 if$
3442 format.output.url.doi
3443 format.output.note
3444 fin.entry
3445 }
3446
3447 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3448 % unpublished
3449
3450 FUNCTION {unpublished}
3451 { output.bibitem
3452 format.output.authors
3453 bst.year.position #0 =
3454 { format.output.year }
3455 'skip$
3456 if$
3457 format.output.title
3458 bst.year.position #0 = not
3459 { format.output.date }
3460 { format.output.month }
3461 if$
3462 format.output.url.doi
3463 format.output.note
3464 fin.entry
3465 }
3466
3467 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3468 % online
3469
3470 FUNCTION {online}
3471 { output.bibitem
3472 format.output.authors
3473 bst.year.position #0 =
3474 { format.output.year }
3475 'skip$
3476 if$
3477 format.output.title
3478 format.output.howpublished
3479 bst.year.position #0 = not
3480 { format.output.date }
3481 { format.output.month }
3482 if$
3483 format.output.url.doi
3484 format.output.note
3485 fin.entry
3486 }
3487
3488 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3489 % misc
3490
3491 FUNCTION {misc}
3492 { output.bibitem
3493 format.output.authors
3494 bst.year.position #0 =
3495 { format.output.year }
3496 'skip$
3497 if$
3498 format.output.title
3499 format.output.howpublished
3500 bst.year.position #0 = not
3501 { format.output.date }
3502 { format.output.month }
3503 if$
3504 format.output.url.doi
3505 format.output.note
3506 fin.entry
3507 empty.misc.check
3508 }
3509
3510 FUNCTION {default.type}
3511 { misc }
3512
3513 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3514 % Alias for month names:
3515
3516 MACRO {jan} {"January"}
3517 MACRO {feb} {"February"}
3518 MACRO {mar} {"March"}
3519 MACRO {apr} {"April"}
3520 MACRO {may} {"May"}
3521 MACRO {jun} {"June"}
3522 MACRO {jul} {"July"}
3523 MACRO {aug} {"August"}
3524 MACRO {sep} {"September"}
3525 MACRO {oct} {"October"}
3526 MACRO {nov} {"November"}
3527 MACRO {dec} {"December"}
3528
3529 %%% Read entries:
3530 READ
3531
3532 %%% Variable for remembering the order of citation.
3533 INTEGERS { order.num }
3534 FUNCTION {initialize.order.num}
3535 {
3536 #1 'order.num :=
3537 }
3538 %%% Initialize a variables
3539 EXECUTE {initialize.order.num}
3540
3541 %%% Variable for remembering the order of citation.
3542 FUNCTION {set.order.cited}
3543 {
3544 order.num 'order.cited :=
3545 #1 order.num + 'order.num :=
3546 }
3547 %%% Iterate for all entries:
3548 ITERATE {set.order.cited}
3549
3550 %%% check the value of nameorder field.
3551 FUNCTION {set.nameorder}
3552 { nameorder empty$
3553 { "" 'nameorder.temp := }
3554 { nameorder 'nameorder.temp := }
3555 if$
3556 }
3557 %%% Iterate for all entries:
3558 ITERATE {set.nameorder}
3559
3560 %%% Remove symbols and convert to lowercase.
3561 FUNCTION {sortify}
3562 { purify$ "l" change.case$ }
3563
3564 %%% names for sorting
3565 FUNCTION {sort.format.names}
3566 { 's :=
3567 #1 'nameptr :=
3568 ""
3569 s num.names$ 'numnames :=
3570 numnames 'namesleft :=
3571 { namesleft #0 > }
3572 { nameptr #1 >
3573 { ", " * }
3574 'skip$
3575 if$
3576 s nameptr "{ll}{ f}{ j}" format.name$ 't :=
3577 nameptr numnames = t "others" = and
3578 { bst.and.others.output *}
3579 { t sortify * }
3580 if$
3581 nameptr #1 + 'nameptr :=
3582 namesleft #1 - 'namesleft :=
3583 }
3584 while$
3585 }
3586
3587 FUNCTION {sort.format.names.abb}
3588 { 's :=
3589 s num.names$ 'numnames :=
3590 numnames bst.and.others.num <
3591 { s sort.format.names }
3592 { s #1 "{ll}{ f}{ j}" format.name$ " zz " * }
3593 if$
3594 }
3595
3596 %%% Label for full author name.
3597 FUNCTION {format.lab.names.full}
3598 { 's :=
3599 #1 'nameptr :=
3600 s num.names$ 'numnames :=
3601 numnames 'namesleft :=
3602 { namesleft #0 > }
3603 { s nameptr "{vv~}{ll}" format.name$ 't :=
3604 nameptr #1 >
3605 { namesleft #1 >
3606 { nameorder.temp "random" = bst.use.nameorder #0 = not and
3607 { bst.and.nameorder * t * }
3608 { ", " * t * }
3609 if$
3610 }
3611 { t "others" =
3612 { bst.and.others.output * }
3613 { numnames #2 >
3614 { nameorder.temp "random" = bst.use.nameorder #0 = not and
3615 { bst.cite.and.nameorder * t * }
3616 { bst.cite.ands * t * }
3617 if$
3618 }
3619 { nameorder.temp "random" = bst.use.nameorder #0 = not and
3620 { bst.cite.and.nameorder * t * }
3621 { bst.cite.and * t * }
3622 if$
3623 }
3624 if$
3625 }
3626 if$
3627 }
3628 if$
3629 }
3630 't
3631 if$
3632 nameptr #1 + 'nameptr :=
3633 namesleft #1 - 'namesleft :=
3634 }
3635 while$
3636 numnames #1 > #1 #2 = and {", eds" *} {} if$
3637 numnames #1 = #1 #2 = and {", ed" *} {} if$
3638 }
3639
3640 %%% laberl for abbreviated author name.
3641 FUNCTION {format.lab.names.abb}
3642 { 's :=
3643 s num.names$ 'numnames :=
3644 numnames bst.and.others.num <
3645 % if the number of authors is less than bst.and.others.num, full name.
3646 { s format.lab.names.full }
3647 % if the number of authors is equal or more than bst.and.others.num, abbreviated name.
3648 { s #1 "{vv~}{ll}" format.name$ bst.and.others.output * }
3649 if$
3650 }
3651
3652 %%% abbreviated author
3653 FUNCTION {author.key.label.abb}
3654 { author empty$
3655 { key empty$
3656 { cite$ #1 #3 substring$ }
3657 { key #3 text.prefix$ }
3658 if$
3659 }
3660 { author format.lab.names.abb }
3661 if$
3662 }
3663
3664 %%% full author
3665 FUNCTION {author.key.label.full}
3666 { author empty$
3667 { key empty$
3668 { cite$ #1 #3 substring$ }
3669 { key #3 text.prefix$ }
3670 if$
3671 }
3672 { author format.lab.names.full }
3673 if$
3674 }
3675
3676 FUNCTION {format.names.full.wo.and}
3677 { 's :=
3678 #1 'nameptr :=
3679 s num.names$ 'numnames :=
3680 numnames 'namesleft :=
3681 { namesleft #0 > }
3682 { s nameptr "{ll}{, ff}{, jj}" format.name$ 't :=
3683 nameptr #1 >
3684 { namesleft #1 >
3685 { " " * t * }
3686 { t "others" =
3687 { " " * }
3688 { numnames #2 >
3689 { " " * t * }
3690 { " " * t * }
3691 if$
3692 }
3693 if$
3694 }
3695 if$
3696 }
3697 't
3698 if$
3699 nameptr #1 + 'nameptr :=
3700 namesleft #1 - 'namesleft :=
3701 }
3702 while$
3703 }
3704
3705 FUNCTION {author.key.full.wo.and}
3706 { sortname empty$ not
3707 { sortname format.names.full.wo.and }
3708 { author empty$ not
3709 { author format.names.full.wo.and }
3710 { key empty$ not
3711 { key #3 text.prefix$ }
3712 { cite$ #1 #3 substring$ }
3713 if$
3714 }
3715 if$
3716 }
3717 if$
3718 }
3719
3720 FUNCTION {author.editor.key.full.wo.and}
3721 { sortname empty$ not
3722 { sortname format.names.full.wo.and }
3723 { author empty$ not
3724 { author format.names.full.wo.and }
3725 { editor empty$ not
3726 { editor format.names.full.wo.and }
3727 { key empty$
3728 { cite$ #1 #3 substring$ }
3729 { key #3 text.prefix$ }
3730 if$
3731 }
3732 if$
3733 }
3734 if$
3735 }
3736 if$
3737 }
3738
3739 FUNCTION {editor.key.organization.key.full.wo.and}
3740 { sortname empty$ not
3741 { sortname format.names.full.wo.and }
3742 { editor empty$ not
3743 { editor format.names.full.wo.and }
3744 { key empty$ not
3745 { key #3 text.prefix$ }
3746 { organization empty$ not
3747 { "The " #4 organization chop.word #3 text.prefix$ }
3748 { cite$ #1 #3 substring$ }
3749 if$
3750 }
3751 if$
3752 }
3753 if$
3754 }
3755 if$
3756 }
3757
3758 FUNCTION {author.key.organization.key.full.wo.and}
3759 { sortname empty$ not
3760 { sortname format.names.full.wo.and }
3761 { author empty$ not
3762 { author format.names.full.wo.and }
3763 { key empty$ not
3764 { key #3 text.prefix$ }
3765 { organization empty$ not
3766 { "The " #4 organization chop.word #3 text.prefix$ }
3767 { cite$ #1 #3 substring$ }
3768 if$
3769 }
3770 if$
3771 }
3772 if$
3773 }
3774 if$
3775 }
3776
3777 %%% abbreviated author
3778 FUNCTION {author.editor.key.label.abb}
3779 { author empty$
3780 { editor empty$
3781 { key empty$
3782 { cite$ #1 #3 substring$ }
3783 { key #3 text.prefix$ }
3784 if$
3785 }
3786 { editor format.lab.names.abb }
3787 if$
3788 }
3789 { author format.lab.names.abb }
3790 if$
3791 }
3792
3793 %%% full author
3794 FUNCTION {author.editor.key.label.full}
3795 { author empty$
3796 { editor empty$
3797 { key empty$
3798 { cite$ #1 #3 substring$ }
3799 { key #3 text.prefix$ }
3800 if$
3801 }
3802 { editor format.lab.names.full }
3803 if$
3804 }
3805 { author format.lab.names.full }
3806 if$
3807 }
3808
3809 FUNCTION {author.key.organization.label.full}
3810 { author empty$
3811 { key empty$
3812 { organization empty$
3813 { cite$ #1 #3 substring$ }
3814 { "The " #4 organization chop.word #3 text.prefix$ }
3815 if$
3816 }
3817 { key #3 text.prefix$ }
3818 if$
3819 }
3820 { author format.lab.names.full }
3821 if$
3822 }
3823
3824 FUNCTION {author.key.organization.label.abb}
3825 { author empty$
3826 { key empty$
3827 { organization empty$
3828 { cite$ #1 #3 substring$ }
3829 { "The " #4 organization chop.word #3 text.prefix$ }
3830 if$
3831 }
3832 { key #3 text.prefix$ }
3833 if$
3834 }
3835 { author format.lab.names.abb }
3836 if$
3837 }
3838
3839 FUNCTION {editor.key.organization.label.full}
3840 { editor empty$
3841 { key empty$
3842 { organization empty$
3843 { cite$ #1 #3 substring$ }
3844 { "The " #4 organization chop.word #3 text.prefix$ }
3845 if$
3846 }
3847 { key #3 text.prefix$ }
3848 if$
3849 }
3850 { editor format.lab.names.full }
3851 if$
3852 }
3853
3854 FUNCTION {editor.key.organization.label.abb}
3855 { editor empty$
3856 { key empty$
3857 { organization empty$
3858 { cite$ #1 #3 substring$ }
3859 { "The " #4 organization chop.word #3 text.prefix$ }
3860 if$
3861 }
3862 { key #3 text.prefix$ }
3863 if$
3864 }
3865 { editor format.lab.names.abb }
3866 if$
3867 }
3868
3869 %%% Convert numbers: 0->9, 1->8, 2->7,..., 9->0
3870 FUNCTION {reverse.num}
3871 { 's :=
3872 s "1" =
3873 { "8" 'year.num := }
3874 { s "2" =
3875 { "7" 'year.num := }
3876 { s "3" =
3877 { "6" 'year.num := }
3878 { s "4" =
3879 { "5" 'year.num := }
3880 { s "5" =
3881 { "4" 'year.num := }
3882 { s "6" =
3883 { "3" 'year.num := }
3884 { s "7" =
3885 { "2" 'year.num := }
3886 { s "8" =
3887 { "1" 'year.num := }
3888 { s "9" =
3889 { "0" 'year.num := }
3890 { s "0" =
3891 { "9" 'year.num := }
3892 { "9" 'year.num := }
3893 if$
3894 }
3895 if$
3896 }
3897 if$
3898 }
3899 if$
3900 }
3901 if$
3902 }
3903 if$
3904 }
3905 if$
3906 }
3907 if$
3908 }
3909 if$
3910 }
3911 if$
3912 year.num
3913 }
3914
3915 %%% Convert year (large number -> small number)
3916 FUNCTION {convert.year}
3917 { 't :=
3918 bst.reverse.year #0 =
3919 { t 'tt := }
3920 { t #1 #1 substring$ reverse.num
3921 t #2 #1 substring$ reverse.num *
3922 t #3 #1 substring$ reverse.num *
3923 t #4 #1 substring$ reverse.num * 'tt := }
3924 if$
3925 tt
3926 }
3927
3928 %%% cyear
3929 FUNCTION {calc.cyear}
3930 { type$ "book" =
3931 type$ "inbook" =
3932 or
3933 'author.editor.key.full.wo.and
3934 { type$ "proceedings" =
3935 'editor.key.organization.key.full.wo.and
3936 { type$ "manual" =
3937 'author.key.organization.key.full.wo.and
3938 'author.key.full.wo.and
3939 if$
3940 }
3941 if$
3942 }
3943 if$
3944 duplicate$
3945 year empty$
3946 { "2199" 'cyear := }
3947 { year 'cyear := }
3948 if$
3949 year empty$
3950 { " " "2199" convert.year * field.or.null * }
3951 { " " year convert.year * field.or.null * }
3952 if$
3953 sortify 'sort.label :=
3954 % For debug
3955 econ.debug #0 = not
3956 { "sort.label = ``\texttt{" write$
3957 sort.label write$
3958 "}''\\" write$
3959 newline$
3960 }
3961 'skip$
3962 if$
3963 pop$
3964 }
3965
3966 FUNCTION {calc.sort.label.abb}
3967 { sortname empty$ not
3968 { sortname 's := }
3969 { author empty$ not
3970 { author 's := }
3971 { editor empty$ not
3972 { editor 's := }
3973 { "" }
3974 if$
3975 }
3976 if$
3977 }
3978 if$
3979 s sort.format.names.abb 't :=
3980 year empty$
3981 { t sortify " " * "2199" convert.year * 'sort.label.abb := }
3982 { t sortify " " * year convert.year * 'sort.label.abb := }
3983 if$
3984 econ.debug #0 = not
3985 { "sort.label.abb = ``\texttt{" write$
3986 sort.label.abb write$
3987 "}''\\" write$
3988 newline$
3989 }
3990 'skip$
3991 if$
3992 }
3993
3994 %%% flabel
3995 FUNCTION {calc.flabel}
3996 { type$ "book" =
3997 type$ "inbook" =
3998 or
3999 'author.editor.key.label.full
4000 { type$ "proceedings" =
4001 'editor.key.organization.label.full
4002 { type$ "manual" =
4003 'author.key.organization.label.full
4004 'author.key.label.full
4005 if$
4006 }
4007 if$
4008 }
4009 if$
4010 'flabel :=
4011 author empty$
4012 'skip$
4013 { author num.names$ 'numnames :=
4014 numnames bst.max.author.num >
4015 { alabel 'flabel := }
4016 'skip$
4017 if$
4018 }
4019 if$
4020 % For debug
4021 econ.debug #0 = not
4022 { "flabel = ``\texttt{" write$
4023 flabel write$
4024 "}''\\" write$
4025 newline$
4026 }
4027 'skip$
4028 if$
4029 }
4030
4031 %%% alabel
4032 FUNCTION {calc.alabel}
4033 { type$ "book" =
4034 type$ "inbook" =
4035 or
4036 'author.editor.key.label.abb
4037 { type$ "proceedings" =
4038 'editor.key.organization.label.abb
4039 { type$ "manual" =
4040 'author.key.organization.label.abb
4041 'author.key.label.abb
4042 if$
4043 }
4044 if$
4045 }
4046 if$
4047 'alabel :=
4048 % For debug
4049 econ.debug #0 = not
4050 { "alabel = ``\texttt{" write$
4051 alabel write$
4052 "}''\\" write$
4053 newline$
4054 }
4055 'skip$
4056 if$
4057 }
4058
4059 %%% title for sorting
4060 FUNCTION {sort.format.title}
4061 { 't :=
4062 "A " #2
4063 "An " #3
4064 "The " #4 t chop.word
4065 chop.word
4066 chop.word
4067 sortify
4068 #1 global.max$ substring$
4069 }
4070
4071 %%% author for sorting
4072 FUNCTION {author.sort}
4073 { author empty$
4074 { key empty$
4075 { "to sort, need author or key in " cite$ * warning$
4076 ""
4077 }
4078 { key sortify }
4079 if$
4080 }
4081 { author sort.format.names }
4082 if$
4083 }
4084
4085 %%% editor for sorting
4086 FUNCTION {author.editor.sort}
4087 { author empty$
4088 { editor empty$
4089 { key empty$
4090 { "to sort, need author, editor, or key in " cite$ * warning$
4091 ""
4092 }
4093 { key sortify }
4094 if$
4095 }
4096 { editor sort.format.names }
4097 if$
4098 }
4099 { author sort.format.names }
4100 if$
4101 }
4102
4103 FUNCTION {author.organization.sort}
4104 { author empty$
4105 { organization empty$
4106 { key empty$
4107 { "to sort, need author, organization, or key in " cite$ * warning$
4108 ""
4109 }
4110 { key sortify }
4111 if$
4112 }
4113 { "The " #4 organization chop.word sortify }
4114 if$
4115 }
4116 { author sort.format.names }
4117 if$
4118 }
4119
4120 FUNCTION {editor.organization.sort}
4121 { editor empty$
4122 { organization empty$
4123 { key empty$
4124 { "to sort, need editor, organization, or key in " cite$ * warning$
4125 ""
4126 }
4127 { key sortify }
4128 if$
4129 }
4130 { "The " #4 organization chop.word sortify }
4131 if$
4132 }
4133 { editor sort.format.names }
4134 if$
4135 }
4136
4137 %%% 1,...,9 -> 001,...,009
4138 %%% 10,...,99 -> 010,...,099
4139 FUNCTION {add.zero.to.number}
4140 { 's :=
4141 s text.length$ #1 =
4142 { "00" s * }
4143 { s text.length$ #2 =
4144 { "0" s * }
4145 { s }
4146 if$
4147 }
4148 if$
4149 }
4150
4151 %% entry type
4152 FUNCTION {bst.sort.entry.type.order}
4153 { 'item.type :=
4154 item.type "article" =
4155 { "01" }
4156 { item.type "book" =
4157 { "02" }
4158 { item.type "booklet" =
4159 { "03" }
4160 { item.type "comment" =
4161 { "04" }
4162 { item.type "conference" =
4163 { "05" }
4164 { item.type "inbook" =
4165 { "06" }
4166 { item.type "incollection" =
4167 { "07" }
4168 { item.type "inproceedings" =
4169 { "08" }
4170 { item.type "manual" =
4171 { "09" }
4172 { item.type "masterthesis" =
4173 { "10" }
4174 { item.type "misc" =
4175 { "11" }
4176 { item.type "phdthesis" =
4177 { "12" }
4178 { item.type "proceedings" =
4179 { "13" }
4180 { item.type "techreport" =
4181 { "14" }
4182 { item.type "unpublished" =
4183 { "15" }
4184 { "16" }
4185 if$
4186 }
4187 if$
4188 }
4189 if$
4190 }
4191 if$
4192 }
4193 if$
4194 }
4195 if$
4196 }
4197 if$
4198 }
4199 if$
4200 }
4201 if$
4202 }
4203 if$
4204 }
4205 if$
4206 }
4207 if$
4208 }
4209 if$
4210 }
4211 if$
4212 }
4213 if$
4214 }
4215
4216 %%% Create sort.key$: absorder -> author -> year -> order -> month -> title.
4217 FUNCTION {presort.one}
4218 {
4219 bst.no.sort #0 = not
4220 { order.cited int.to.str$ add.zero.to.number " " * }
4221 { "" }
4222 if$
4223 bst.sort.year #0 = not
4224 %% Use year field as the primary sorting key.
4225 { year convert.year * }
4226 'skip$
4227 if$
4228 bst.sort.entry.type #0 = not
4229 { type$ bst.sort.entry.type.order * " " * }
4230 'skip$
4231 if$
4232 absorder empty$
4233 { "/// " * }
4234 { bst.notuse.absorder.field #0 =
4235 { absorder "999" =
4236 { "zzz " * }
4237 { absorder add.zero.to.number "000" =
4238 { "/// " * }
4239 { absorder add.zero.to.number * " " * }
4240 if$
4241 }
4242 if$
4243 }
4244 { "/// " * }
4245 if$
4246 }
4247 if$
4248 " " *
4249 sort.label.abb *
4250 " " *
4251 type$ "book" = type$ "inbook" = or
4252 'author.editor.sort
4253 { type$ "proceedings" =
4254 'editor.organization.sort
4255 { type$ "manual" =
4256 'author.organization.sort
4257 'author.sort
4258 if$
4259 }
4260 if$
4261 }
4262 if$
4263 * " "
4264 order empty$
4265 { "/// " * }
4266 { bst.notuse.order.field #0 =
4267 { order "999" =
4268 { "zzz " * }
4269 { order add.zero.to.number "000" =
4270 { "/// " * }
4271 { order add.zero.to.number * " " * }
4272 if$
4273 }
4274 if$
4275 }
4276 { "/// " * }
4277 if$
4278 }
4279 if$
4280 month empty$
4281 { * "/// " * }
4282 { month "999" =
4283 { * month add.zero.to.number * "zzz " * }
4284 { month add.zero.to.number "000" =
4285 { * month add.zero.to.number * "/// " * }
4286 { * month add.zero.to.number * " " * }
4287 if$
4288 }
4289 if$
4290 }
4291 if$
4292 title field.or.null sort.format.title
4293 *
4294 #1 entry.max$ substring$
4295 'sort.key$ :=
4296 % For debug
4297 econ.debug #0 = not
4298 { "``\texttt{" write$
4299 sort.key$ write$
4300 "}''\\" write$
4301 newline$
4302 }
4303 'skip$
4304 if$
4305 }
4306
4307 FUNCTION {presort.two}
4308 {
4309 bst.no.sort #0 = not
4310 { order.cited int.to.str$ add.zero.to.number " " * }
4311 { "" }
4312 if$
4313 bst.sort.year #0 = not
4314 %% Use year field as the primary sorting key.
4315 { year convert.year * }
4316 'skip$
4317 if$
4318 bst.sort.entry.type #0 = not
4319 { type$ bst.sort.entry.type.order * " " * }
4320 'skip$
4321 if$
4322 absorder empty$
4323 { "/// " * }
4324 { bst.notuse.absorder.field #0 =
4325 { absorder "999" =
4326 { "zzz " * }
4327 { absorder add.zero.to.number "000" =
4328 { "/// " * }
4329 { absorder add.zero.to.number * " " * }
4330 if$
4331 }
4332 if$
4333 }
4334 { "/// " * }
4335 if$
4336 }
4337 if$
4338 " " * sort.label * " "
4339 order empty$
4340 { "/// " * }
4341 { bst.notuse.order.field #0 =
4342 { order "999" =
4343 { "zzz " * }
4344 { order add.zero.to.number "000" =
4345 { "/// " * }
4346 { order add.zero.to.number * " " * }
4347 if$
4348 }
4349 if$
4350 }
4351 { "/// " * }
4352 if$
4353 }
4354 if$
4355 month empty$
4356 { * "/// " * }
4357 { month "999" =
4358 { * month add.zero.to.number * "zzz " * }
4359 { month add.zero.to.number "000" =
4360 { * month add.zero.to.number * "/// " * }
4361 { * month add.zero.to.number * " " * }
4362 if$
4363 }
4364 if$
4365 }
4366 if$
4367 title field.or.null sort.format.title
4368 *
4369 #1 entry.max$ substring$
4370 'sort.key$ :=
4371 % For debug
4372 econ.debug #0 = not
4373 { "``\texttt{" write$
4374 sort.key$ write$
4375 "}''\\" write$
4376 newline$
4377 }
4378 'skip$
4379 if$
4380 }
4381
4382 %%% Codes for debugging
4383 FUNCTION {calc.alabel.mess}
4384 { econ.debug #0 = not
4385 { "\textbf{Iteration of calc.alabel: alabel = }\\" write$
4386 newline$ }
4387 'skip$
4388 if$
4389 }
4390 FUNCTION {calc.flabel.mess}
4391 { econ.debug #0 = not
4392 { "\textbf{Iteration of calc.flabel: flabel = }\\" write$
4393 newline$ }
4394 'skip$
4395 if$
4396 }
4397 FUNCTION {presort.one.mess}
4398 { econ.debug #0 = not
4399 { "\textbf{Iteration of presort (1st time): \$sort.key = }\\" write$
4400 newline$ }
4401 'skip$
4402 if$
4403 }
4404
4405 FUNCTION {presort.two.mess}
4406 { econ.debug #0 = not
4407 { "\textbf{Iteration of presort (2nd time): \$sort.key = }\\" write$
4408 newline$ }
4409 'skip$
4410 if$
4411 }
4412
4413 FUNCTION {calc.cyear.mess}
4414 { econ.debug #0 = not
4415 { "\textbf{Iteration of calc.cyear: sort.label = }\\" write$
4416 newline$ }
4417 'skip$
4418 if$
4419 }
4420
4421 FUNCTION {calc.sort.label.abb.mess}
4422 { econ.debug #0 = not
4423 { "\textbf{Iteration of calc.sort.label.abb: sort.label.abb = }\\" write$
4424 newline$ }
4425 'skip$
4426 if$
4427 }
4428
4429 %%% alabel
4430 EXECUTE {calc.alabel.mess}
4431 ITERATE {calc.alabel}
4432
4433 %%% flabel
4434 EXECUTE {calc.flabel.mess}
4435 ITERATE {calc.flabel}
4436
4437 %%% cyear and sort.label
4438 EXECUTE {calc.cyear.mess}
4439 ITERATE {calc.cyear}
4440
4441 %%%
4442 EXECUTE {calc.sort.label.abb.mess}
4443 ITERATE {calc.sort.label.abb}
4444
4445 %%% Sorting by $sort.key (first time)
4446 %
4447 % Sorting is done in two times. This is the first time.
4448 %
4449 EXECUTE {presort.one.mess}
4450 ITERATE {presort.one}
4451 SORT
4452
4453 FUNCTION {forward.pass}
4454 { bst.use.bysame #0 = bst.use.bysame #2 = or
4455 % Not use \bysame
4456 { last.sort.label sort.label.abb =
4457 { last.extra.num #1 + 'last.extra.num :=
4458 last.extra.num int.to.chr$ 'extra.label :=
4459 }
4460 { "a" chr.to.int$ 'last.extra.num :=
4461 "" 'extra.label :=
4462 sort.label.abb 'last.sort.label :=
4463 }
4464 if$
4465 }
4466 % Use \bysame
4467 { last.sort.label sort.label.abb =
4468 { last.extra.num #1 + 'last.extra.num :=
4469 last.extra.num int.to.chr$ 'extra.label :=
4470 }
4471 { "a" chr.to.int$ 'last.extra.num :=
4472 "" 'extra.label :=
4473 sort.label.abb 'last.sort.label :=
4474 }
4475 if$
4476 author empty$
4477 { editor empty$
4478 { "" }
4479 'format.editors.alt
4480 if$
4481 }
4482 'format.authors.alt
4483 if$
4484 'this.author :=
4485 % format.names 'this.author :=
4486 this.author prev.author =
4487 { "bysame" 'extra.label.bysame := }
4488 { this.author "" =
4489 { "abcxyz" }
4490 'this.author
4491 if$
4492 'prev.author :=
4493 }
4494 if$
4495 }
4496 if$
4497 }
4498
4499 FUNCTION {reverse.pass}
4500 { next.extra "b" =
4501 { "a" 'extra.label := }
4502 'skip$
4503 if$
4504 extra.label empty$ not
4505 { cyear extra.label * }
4506 { cyear "" * }
4507 if$
4508 "" field.or.null *
4509 'cyear :=
4510 extra.label 'next.extra :=
4511 }
4512
4513 %%% \bysame
4514 ITERATE {forward.pass}
4515
4516 REVERSE {reverse.pass}
4517
4518 %%% Sorting by sort.key$ (second time)
4519 EXECUTE {presort.two.mess}
4520 ITERATE {presort.two}
4521 SORT
4522
4523 FUNCTION {reset.prev.author}
4524 { "xxyyzz" 'prev.author := }
4525
4526 EXECUTE {reset.prev.author}
4527
4528 FUNCTION {forward.pass.two}
4529 { bst.use.bysame #1 =
4530 { author empty$
4531 { editor empty$
4532 { "" }
4533 'format.editors.alt
4534 if$
4535 }
4536 'format.authors.alt
4537 if$
4538 'this.author :=
4539 this.author prev.author =
4540 { "bysame" 'extra.label.bysame := }
4541 { this.author "" =
4542 { "abcxyz" }
4543 'this.author
4544 if$
4545 'prev.author :=
4546 }
4547 if$
4548 }
4549 'skip$
4550 if$
4551 }
4552
4553 ITERATE {forward.pass.two}
4554
4555 FUNCTION{punctuation}
4556 {
4557 "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" write$ newline$
4558 "% This bbl file is created by " econ.file * " ver." * econ.version * write$ newline$
4559 "% The latest " econ.file * " is available at " * write$ newline$
4560 "% <https://github.com/ShiroTakeda/econ-bst>" write$ newline$ newline$
4561 }
4562
4563 EXECUTE {punctuation}
4564
4565 FUNCTION {begin.bib}
4566 {
4567 preamble$ empty$
4568 'skip$
4569 { preamble$ write$ newline$ }
4570 if$
4571 bst.use.bysame #0 =
4572 % Not use \bysame.
4573 'skip$
4574 % Use \bysame.
4575 { "%%% Definition of \bysame" write$ newline$
4576 "\ifx\undefined\bysame" write$ newline$
4577 "\newcommand{\bysame}{" bst.bysame.definition * "}" *
4578 write$ newline$
4579 "\fi" write$ newline$ newline$ }
4580 if$
4581 %% When number index is attached to the beginning of each item.
4582 bst.use.number.index #0 =
4583 'skip$
4584 { bst.number.index.digit "1" =
4585 % one digit.
4586 { bst.number.index.bibhang.one }
4587 { bst.number.index.digit "2" =
4588 % two digits.
4589 { bst.number.index.bibhang.ten }
4590 % three or more digits.
4591 { bst.number.index.bibhang.hund }
4592 if$
4593 }
4594 if$
4595 'hang :=
4596 "%%% Redefinition of \bibhang" write$ newline$
4597 "\ifx\undefined\bibhang" write$ newline$
4598 "\relax" write$ newline$
4599 "\else" write$ newline$
4600 "\setlength{\bibhang}{"
4601 hang * "}" * write$ newline$
4602 "\fi" write$ newline$ newline$
4603 }
4604 if$
4605 "\begin{thebibliography}{xxx}" write$ newline$
4606
4607 %% Initialize the variable `index'.
4608 #0 'index :=
4609 }
4610
4611 FUNCTION {end.bib}
4612 { newline$ "\end{thebibliography}" write$ newline$ }
4613
4614 EXECUTE {begin.bib}
4615
4616 EXECUTE {init.state.consts}
4617
4618 ITERATE {call.type$}
4619
4620 EXECUTE {end.bib}
4621
4622 % --------------------
4623 % Local Variables:
4624 % fill-column: 78
4625 % coding: utf-8
4626 % mode: bibtex-style
4627 % End: