Debian Codegraph @

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

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