Debian Codegraph @

texmf-dist/bibtex/bst/cje/cjebibstyle.bst

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