Debian Codegraph @

texmf-dist/bibtex/bst/sageep/sageep.bst

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