Debian Codegraph @

texmf-dist/bibtex/bst/cjs-rcs-article/cjs-rcs-en.bst

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