Debian Codegraph @

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

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