Debian Codegraph @

texmf-dist/bibtex/bst/computational-complexity/cc2.bst

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