Debian Codegraph @

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

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