-
Notifications
You must be signed in to change notification settings - Fork 26
/
econ.bst
3645 lines (3213 loc) · 82.4 KB
/
econ.bst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%% econ.bst: BibTeX style file for papers in economics.
%
% Author: Shiro Takeda
% Maintainer: Shiro Takeda
% Copyright (C) 2001-2023 Shiro Takeda
% First-written: <2007/07/28>
% Version: 3.2
% Keywords: TeX, BibTeX, bst
% URL: https://github.com/ShiroTakeda/econ-bst
% It may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
% of this license or (at your option) any later version.
% The latest version of this license is in
% https://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions of LaTeX
% version 2008 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% The Current Maintainer of this work is Shiro Takeda.
%% Main features of econ.bst.
% "econ.bst" is a BibTeX style file for economics. It provids the following
% features:
% 1) The author-year type citation (you need "natbib.sty" as well).
% 2) Reference style used in economics papers ("econ.bst" is not a BibTeX style
% for a specific journal).
% 3) Highly customizable. You can easily customize reference style as you wish.
% 4) You can use "certified random order" proposed by Ray ⓡ Robson (2018)
% (http://dx.doi.org/10.1257/aer.20161492).
% Bug reports, requests and suggestions are welcome.
% For changelogs, see CHANGES.txt file.
% version number
FUNCTION {econ.version} { "3.2" }
% File name
FUNCTION {econ.file} { "econ.bst" }
% Debug mode. Non-zero makes debug mode on.
FUNCTION {econ.debug}
{ #0 } % Debug mode off (default).
% { #1 } % Debug mode on.
ENTRY
%%% Declaration of field
{ access address author booktitle chapter doi edition editor howpublished
institution journal key month note number organization pages publisher
school series title type url volume year
% Fields specific to econ.bst
order absorder nameorder sortname
}
% Definition of entry variable. The entry variable is a variable which has
% different values according to different entries.
%% Integer entry variable:
{ order.cited }
%% String entry variable
{ label cyear flabel alabel extra.label sort.label sort.label.abb
extra.label.bysame nameorder.temp jname }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Functions for customization:
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Use \bysame or not.
%
% If set to #0, \bysame is not used.
% If set to #1, \bysame is used
% If set to #2, \bysame is used (alternative abbreviation style).
%
% Note that integer number is expressed as # + integer in bst file.
% \bysame is the function that abbreviates succession of the same authors' name by ---.
%
% See econ-sample.pdf for details.
%
FUNCTION {bst.use.bysame}
% { #0 } % Not use \bysame
{ #1 } % -> Use \bysame (default)
% { #2 } % -> Use \bysame of alternative style.
% The definition of \bysame command.
%
FUNCTION {bst.bysame.definition}
{ "\hskip.3em \leavevmode\rule[.5ex]{3em}{.3pt}\hskip0.5em" } % (default)
% { "\leavevmode\hbox to\leftmargin{\hrulefill\,\,}" } % If you set #2 to bst.use.bysame, use this.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The order of fist and last name.
%
FUNCTION {bst.author.name}
{ #0 } % (default)
% { #1 }
% { #2 }
% Case of #0: First author -> last-first, other authors -> first-last.
% Fujita, Masahisa, Paul R. Krugman, and Anthony J. Venables.
% Case of #1: All authors -> last-first
% Fujita, Masahisa, Krugman, Paul R., and Venables, Anthony J.
% Case of #2: All authors -> first-last
% Masahisa Fujita, Paul R. Krugman, and Anthony J. Venables.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Abbreviate first name of authors (editors):
%
FUNCTION {bst.first.name.initial}
{ #0 } % #0 -> full letters (default).
% { #1 } % Non-zero -> initial letter only.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Decapitalize of strings in title field.
%
FUNCTION {bst.title.lower.case}
{ #0 } % If #0, not decapitalize title (default).
% { #1 } % If non-#0, decapitalize title
% Hide title filed.
%
FUNCTION {bst.hide.title}
{ #0 } % #0 -> Title field is displayed (default)
% { #1 } % Non-zer -> Title field is hidden
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Hide month.
%
FUNCTION {bst.hide.month}
{ #0 } % #0 -> show month field (default).
% { #1 } % non-#0 -> hide month field.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Attach number index like plain.bst.
%
FUNCTION {bst.use.number.index}
{ #0 } % Not use number index (default).
% { #1 } % Non-#0 -> Use number index
% The string before number index:
%
FUNCTION {bst.number.index.pre}
{ "[" } % (default)
% The string after number index. Adjustment is recommended.
%
FUNCTION {bst.number.index.post}
{ "]\hskip1.0em " } % (default)
% Maximum digit of number index:
% If the number of reference items >= 100, set 3 to this function.
% If the number of reference items < 100, set 2 to this function.
% If the number of reference items < 10, set 1 to this function.
%
FUNCTION {bst.number.index.digit}
{ "2" } % (default)
% { "3" }
% The functions below are used to adjust space and postion. If you use fonts
% other than computer modern fonts, you had better make adjustments.
%
% Setting for bst.number.index.digit = 1:
FUNCTION {bst.number.index.bibhang.one}
{ "2.05em" } % (default)
% Setting for bst.number.index.digit = 2:
FUNCTION {bst.number.index.bibhang.ten}
{ "2.55em" } % (default)
% Setting for bst.number.index.digit = 3:
FUNCTION {bst.number.index.bibhang.hund}
{ "3.05em" } % (default).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Position of "year":
%
% You can choose the position of year by this function.
%
% If set to #0, year is placed right after "author".
% If set to non-zero, year is placed at the end (before note field) except for
% aritcle type entry.
%
% In article type entry, the position of year changes according to the
% following rule:
%
% #1 -> year is placed at the end.
% #2 -> year is placed after journal name in aritcle type entry.
% #3 -> year is placed after volume in aritcle type entry.
%
FUNCTION {bst.year.position}
{ #0 } % (default).
% { #1 } % Last place before note.
% { #2 } % After journal name for aticle type entry.
% { #3 } % After volume for aticle type entry.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% If 0, references are sorted by old documents -> recent documents. If
% non-zero, reverse order.
FUNCTION {bst.reverse.year}
{ #0 } % Normal order (old -> recent) (default).
% { #1 } % inverse order (recent -> old)
% If non-zero, sort references by using year field as the primary key
% (chronological sorting).
FUNCTION {bst.sort.year}
{ #0 } % Normal case: year is used as the sorting key next to author (default).
% { #1 } % year is used as the primary sorting key.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% If non-zero, references are listed in citation order.
%
FUNCTION {bst.no.sort}
{ #0 } % (default)
% { #1 } % listed in citation order.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Non-zero -> sort references by entry type (article, book, incollection etc.)
%
FUNCTION {bst.sort.entry.type}
{ #0 } % #0 -> Normal (not sort references by entry type) (default).
% { #1 } % Non-zero -> sort references by entry type.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 0 -> use absorder field to sort items. Otherwise, ignore absorder field.
%
FUNCTION {bst.notuse.absorder.field}
{ #0 } % #0 -> Use absorder (default).
% { #1 } % Non-#0 -> Not use absorder.
%
% Order of priority to sort items
%
% absorder -> author -> year -> order -> month -> title
%
% wehre absorder and order fields are specific to econ.bst.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 0 -> use order field to sort items. Otherwise, ignore order field.
% Note: order field is specific to econ.bst.
FUNCTION {bst.notuse.order.field}
{ #0 } % #0 -> Use order field (default).
% { #1 } % Non-#0 -> not use order field.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% and
%%% String used to separate author names in references.
%
% String replaced with _ in "Mr. A _ Mr. B "
%
FUNCTION {bst.and}
{ " and " } % (default)
%%% String used to separate author names in references (more than two authors).
%
% String replaced with _ in "Mr. A, Mr. B _ Mr. C"
%
FUNCTION {bst.ands}
{ ", and " } % (default)
%%% String used to separate author names in citation part.
%
% String replaced with _ in "Mr. A _ Mr. B "
%
FUNCTION {bst.cite.and}
{ " and " } % (default)
%%% String used to separate author names in citation part (more than two authors).
%
% String replaced with _ in "Mr. A, Mr. B _ Mr. C"
%
FUNCTION {bst.cite.ands}
{ " and " } % (default)
%%% If you want to use random author order for some bibliography entries, set
% non-zero to this function.
%
FUNCTION {bst.use.nameorder}
{ #1 } % Use random order (default)
% { #0 } % Not use random order
%%% String used to separate author names in references for the entry of random
% author order.
%
FUNCTION {bst.and.nameorder}
{ " \textcircled{r} " } % (default)
%%% String used to separate author names in citation part for the entry of
% random author order
%
FUNCTION {bst.cite.and.nameorder}
{ " \textcircled{r} " } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Author names in the citation part are abbreviated by et al. if the number of
% authors is greater or equal to bst.and.others.num.
FUNCTION {bst.and.others.num}
{ #3 } % If the number of authors is greater or equal to three (default).
% If the number of authors is greater than N1, only the first N2 authors are
% displayed in the reference part (and other authors' names are omitted by "et
% al".
%
% The following function determines the value of N1.
FUNCTION {bst.max.author.num}
{ #8 } % (default).
% The following function determines the value of N2.
FUNCTION {bst.max.author.num.display}
{ #3 } % (default).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Strings used when abbreviating multiple-authors in citation part.
FUNCTION {bst.and.others}
{ " et~al." } % (default)
% Strings used when abbreviating multiple-authors in citation part for entries
% with random author order.
FUNCTION {bst.and.others.nameorder}
{ " \textcircled{r}~al." } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% author
% The string before author:
%
FUNCTION {bst.author.pre}
{ "" } % (default)
% The string after author:
%
FUNCTION {bst.author.post}
{ "" } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% year
% The string before year only for aritcle type entry.
%
FUNCTION {bst.year.pre}
{ " (" } % (default)
% The string after year only for aritcle type entry.
%
FUNCTION {bst.year.post}
{ ") " } % (default)
% The string after year for non-article type entry (book, incollection etc)
%
FUNCTION {bst.year.na.pre}
{ " (" } % (default)
% The string after year for non-article type entry (book, incollection etc)
%
FUNCTION {bst.year.na.post}
{ ") " } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% title (except for title in book)
% The string before title:
%
FUNCTION {bst.title.pre}
{ "``" } % (default)
% The string after title:
%
FUNCTION {bst.title.post}
{ ",''" } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% tile for book:
% The string before book title:
%
FUNCTION {bst.book.pre}
{ " \textit{" } % (default)
% The string after book title:
%
FUNCTION {bst.book.post}
{ "}" } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% booktitle
% The string before booktitle:
%
FUNCTION {bst.btitle.pre}
{ " \textit{" } % (default)
% The string after booktitle:
%
FUNCTION {bst.btitle.post}
{ "}" } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% journal name
% The string before journal name:
%
FUNCTION {bst.journal.pre}
{ " \textit{" } % (default)
% The string after journal name:
%
FUNCTION {bst.journal.post}
{ "}" } % (default)
% Use the abbreviated journal name
%
% If set to #0, do not use abbreviated journal name.
% If set to non-#0, use abbreviated journal name.
%
FUNCTION {bst.journal.name.abb}
{ #0 } % (default)
% { #1 }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% editor notation:
% The string that indicates multiple editors:
%
FUNCTION {bst.editors}
{ " eds. " } % (default)
% The string that indicates single editor:
%
FUNCTION {bst.editor}
{ " ed. " } % (default)
% Order of editor and booktitle in incollection and inproceedings entries.
%
% If set to #0: editors -> booktitle order
% If set to non-zero: booktitle -> editors order
%
FUNCTION {bst.editor.btitle.order}
{ #0 } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% edition
% The string before edition:
%
FUNCTION {bst.edition.pre}
{ ", " } % (default)
% The string after edition:
%
FUNCTION {bst.edition.post}
{ " edition" } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% volume
% The string before volume:
%
FUNCTION {bst.volume.pre}
{ ", " } % (default)
% The string after volume:
%
FUNCTION {bst.volume.post}
{ "" } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% number
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Hide number. If non-zero, number is suppressed.
FUNCTION {bst.hide.number}
{ #0 } % #0 -> show number field (default)
% { #1 } % non-#0 -> Hide number field.
% The string before number:
%
FUNCTION {bst.number.pre}
{ " (" } % (default)
% The string after number:
%
FUNCTION {bst.number.post}
{ ")" } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% in
% In
%
FUNCTION {bst.in}
{ " in " } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% page
% The string before page (multiple pages):
%
FUNCTION {bst.pages.pre}
{ ", " } % (default)
% The string before page:
%
FUNCTION {bst.page.pre}
{ ", " } % (default)
% The string after page (multiple pages):
%
FUNCTION {bst.pages.post}
{ "" } % (default)
% The string after page:
%
FUNCTION {bst.page.post}
{ "" } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% chapter
% The string before chapter:
%
FUNCTION {bst.chapter.pre}
{ ", Chap." } % (default)
% The string after chapter:
%
FUNCTION {bst.chapter.post}
{ "" } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% month
% The string before month:
%
FUNCTION {bst.month.pre}
{ ", " } % (default)
% The string after month:
%
FUNCTION {bst.month.post}
{ "" } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% address
% The string before address:
%
FUNCTION {bst.address.pre}
{ ", " } % (default)
% The string after address:
%
FUNCTION {bst.address.post}
{ "" } % (default)
% You can choose the order of address and publisher by this function.
%
% If #0, address -> publisher order (the default value).
% If non-zero, publisher -> address order.
FUNCTION {bst.address.position}
{ #0 } % Address is placed before publisher (default)
% { #1 } % Address is placed after publisher
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% publisher
% The string before publisher:
%
FUNCTION {bst.publisher.pre}
{ ": " } % (default)
% The string after publisher:
%
FUNCTION {bst.publisher.post}
{ "" } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% series
% The string before series:
%
FUNCTION {bst.series.pre}
{ ", " } % (default)
% The string after series:
%
FUNCTION {bst.series.post}
{ "" } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% organization
% The string before organization:
%
FUNCTION {bst.organization.pre}
{ ", " } % (default)
% The string after organization:
%
FUNCTION {bst.organization.post}
{ "" } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% school
% The string before school:
%
FUNCTION {bst.school.pre}
{ ", " } % (default)
% The string after school:
%
FUNCTION {bst.school.post}
{ "" } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% institution
% The string before institution:
%
FUNCTION {bst.institution.pre}
{ ", " } % (default)
% The string after institution:
%
FUNCTION {bst.institution.post}
{ "" } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% howpublished
% The string before howpublished:
%
FUNCTION {bst.howpublished.pre}
{ " " } % (default)
% The string after howpublished:
%
FUNCTION {bst.howpublished.post}
{ "" } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% url
% Show or Hide url. If non-zero, url is displayed. Otherwise, url is suppressed.
FUNCTION {bst.show.url}
{ #1 } % non-#0 -> Show url field (default)
% { #0 } % #0 -> Not show url field.
% The string before url:
%
FUNCTION {bst.url.pre}
{ ", \url{" } % (default)
% The string after url:
%
FUNCTION {bst.url.post}
{ "}" } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Access
% This setting is valid only if there are "access" field in bib
% files. The value of access field indicates accessed date for URL.
% The string before access.
FUNCTION {bst.access.pre}
{ ", accessed on " } % (default)
% The string after access.
FUNCTION {bst.access.post}
{ "" } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% DOI (digital object identifier)
% This setting is valid only if there are "doi" field in bib files.
% Show or Hide DOI. If non-zero, DOI is displayed. Otherwise, DOI is suppressed.
FUNCTION {bst.show.doi}
{ #1 } % non-#0 -> Show DOI field (default)
% { #0 } % #0 -> Not show DOI field.
% The string before DOI:
%
FUNCTION {bst.doi.pre}
{ ", \href{http://dx.doi.org/" doi * "}{\urlstyle{rm} \nolinkurl{" * } % (default)
% The string after DOI:
%
FUNCTION {bst.doi.post}
{ "}}" } % (default)
% How to show URL and DOI fields when both fields exist.
%
% #0 -> Both fields are displayed
% #1 -> Only URL field is displayed
% #2 -> Only DOI field is displayed
%
FUNCTION {bst.url.doi}
% { #0 } % -> Both fields are displayed
% { #1 } % -> Only URL field is displayed
{ #2 } % (default) --> Only DOI field is displayed
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Other functions:
% The string before note.
FUNCTION {bst.note.pre}
{ ", " } % (default)
% The string after note.
FUNCTION {bst.note.post}
{ "" } % (default)
% The string that represents Technical report:
%
FUNCTION {bst.techrep}
{ "Technical Report" } % (default)
% The string that represents master thesis:
%
FUNCTION {bst.mthesis}
{ ", Master's thesis" } % (default)
% The string that represents phd thesis:
%
FUNCTION {bst.phdthesis}
{ ", Ph.D. dissertation" } % (default)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Functions for customization end here:
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
FUNCTION {bst.first}
{ "1st" }
FUNCTION {bst.second}
{ "2nd" }
FUNCTION {bst.third}
{ "3rd" }
FUNCTION {bst.fourth}
{ "4th" }
FUNCTION {bst.fifth}
{ "5th" }
FUNCTION {bst.st}
{ "st" }
FUNCTION {bst.nd}
{ "nd" }
FUNCTION {bst.rd}
{ "rd" }
FUNCTION {bst.th}
{ "th" }
%%%%% memo by Takeda
% "a" 'b := indicates substituting string "a" for variable b.
% Integer number #0, #1,...
%%% Function definition:
%
% FUNCTION {name}
% { 's :=
%
% }
%
% This is the definition of a function named "name". The function "name" is
% used in the following way
%
% "foo" name
% "foo" is an argument for the function "name".
%
% About the definition of a function with more than two arguments, see the
% definition of "chop.word".
%%% Declaration of variables:
%% String global variables:
STRINGS { s t tt }
STRINGS { year.num }
STRINGS { preone preten }
STRINGS { last.sort.label next.extra prev.author prev.author.aer this.author }
STRINGS { hang }
STRINGS { item.type }
STRINGS { tempa tempb }
%% Integer global variables:
INTEGERS { nameptr namesleft numnames name.num numtrunc }
INTEGERS { multiresult }
INTEGERS { index }
INTEGERS { len }
INTEGERS { last.extra.num }
INTEGERS { output.state before.all mid.sentence after.sentence after.block }
INTEGERS { last.period.comma }
INTEGERS { len1.aer len2.aer i.aer }
%%% Definition of functions:
FUNCTION {not}
{ { #0 }
{ #1 }
if$
}
FUNCTION {and}
{ 'skip$
{ pop$ #0 }
if$
}
FUNCTION {or}
{ { pop$ #1 }
'skip$
if$
}
%%% Initialize variables:
FUNCTION {init.state.consts}
{ #0 'before.all :=
#1 'mid.sentence :=
#2 'after.sentence :=
#3 'after.block :=
}
%%% Remove comma and add period:
%
%%%
FUNCTION {add.period.x}
{ duplicate$
#-1 #1 substring$ "," =
{ #-2 global.max$ substring$ "." * }
{ duplicate$
#-1 #2 substring$ ". " =
{ #-3 global.max$ substring$ "." * }
{ duplicate$
#-1 #2 substring$ ", " =
{ #-3 global.max$ substring$ "." * }
{ duplicate$
#-1 #2 substring$ ",'" =
{ #-3 global.max$ substring$ ".'" * }
{ duplicate$
#-1 #2 substring$ ".'" =
{ #-3 global.max$ substring$ ".'" * }
{ duplicate$
#-1 #2 substring$ ".~" =
{ #-3 global.max$ substring$ ".~" * }
{ duplicate$
#-1 #2 substring$ ",~" =
{ #-3 global.max$ substring$ ".~" * }
{ duplicate$
#-1 #3 substring$ ",''" =
{ #-4 global.max$ substring$ ".''" * }
{ duplicate$
#-1 #3 substring$ ".''" =
{ #-4 global.max$ substring$ ".''" * }
{ add.period$ }
if$
}
if$
}
if$
}
if$
}
if$
}
if$
}
if$
}
if$
}
if$
}
FUNCTION {output.nonnull}
{ 's :=
% mid.sentence
output.state mid.sentence =
{ ", " * write$ }
% not mid.sentence
{ output.state after.block =
% after.block
{ add.period.x " " * write$ }
% before.all
{ output.state before.all =
'write$
{ add.period.x " " * write$ }
if$
}
if$
% not mid.sentence, set to mid.sentence
mid.sentence 'output.state :=
}
if$
s
}
%%% If the last character is period or comma, set non-zero to
%%% last.period.comma.
FUNCTION {period.comma.p}
{ duplicate$ 't :=
t #-1 #1 substring$ "." =
t #-1 #1 substring$ "," = or
t #-1 #1 substring$ ":" = or
t #-1 #2 substring$ ".'" = or
t #-1 #2 substring$ ",'" = or
t #-1 #3 substring$ ".''" = or
t #-1 #3 substring$ ",''" = or
t #-1 #2 substring$ ".~" = or
t #-1 #2 substring$ ",~" = or
{ #1 'last.period.comma := }
{ #0 'last.period.comma := }
if$
}
%%% remove unnecessary comma.
FUNCTION {remove.pre.comma}
{ 's :=
s empty$
{ "" }
{ s #1 #1 substring$ "," =
{ s #2 global.max$ substring$ }
{ s #1 #1 substring$ "." =
{ s #2 global.max$ substring$ }
's
if$
}
if$
}
if$
}
%%% output.nonnull.nocomma is the same as output.nonnull except that it does
%%% not add commas even in mid.sentence.
FUNCTION {output.nonnull.nocomma}
{ 's :=
output.state mid.sentence =
% mid.sentence
{ period.comma.p "" * write$ }
% not mid.sentence
{ output.state after.block =
% after.block
{ add.period.x " " * write$ }
% before.all
{ output.state before.all =
'write$
{ add.period$ " " * write$ }
if$
}
if$
mid.sentence 'output.state :=
}
if$
last.period.comma #0 =
{ s }
{ s remove.pre.comma }
if$
}
% Not used in the current econ.bst.
% FUNCTION {output}
% { duplicate$ empty$
% 'pop$
% 'output.nonnull
% if$
% }