Debian Codegraph @

texmf-dist/bibtex/bst/cascadilla/cascadilla.bst

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