home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-06-19 | 67.7 KB | 3,318 lines |
- Newsgroups: comp.sources.misc
- From: arrouye@cosmos.imag.fr (Yves Arrouye)
- Subject: v38i007: annote - BibTeX styles supporting annotations, v1.5.1, Part03/04
- Message-ID: <1993Jun17.185632.10374@sparky.imd.sterling.com>
- X-Md4-Signature: f16f5a300b2b019d6f0e57c436823b6b
- Sender: kent@sparky.imd.sterling.com (Kent Landfield)
- Organization: IMAG Institute, University of Grenoble
- Date: Thu, 17 Jun 1993 18:56:32 GMT
- Approved: kent@sparky.imd.sterling.com
-
- Submitted-by: arrouye@cosmos.imag.fr (Yves Arrouye)
- Posting-number: Volume 38, Issue 7
- Archive-name: annote/part03
- Environment: LaTex
- Supersedes: annote: Volume 37, Issue 57-59
-
- #! /bin/sh
- # This is a shell archive. Remove anything before this line, then unpack
- # it by saving it into a file and typing "sh file". To overwrite existing
- # files, type "sh file -c". You can also feed this as standard input via
- # unshar, or by typing "sh <file", e.g.. If this archive is complete, you
- # will see the following message at the end:
- # "End of shell archive."
- # Contents: plain.bst unsrt.bst apalike.bst
- # Wrapped by arrouye@cosmos on Tue Jun 8 13:47:09 1993
- PATH=/bin:/usr/bin:/usr/ucb ; export PATH
- if test -f 'plain.bst' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'plain.bst'\"
- else
- echo shar: Extracting \"'plain.bst'\" \(21696 characters\)
- sed "s/^X//" >'plain.bst' <<'END_OF_FILE'
- X% Style file modified on Tue Jun 8 12:31:14 1993 with `annotebib.el' v1.5.1
- X% by Yves.Arrouye <arrouye@cosmos>
- X% to support the `annote' annotation field.
- X% Style file modified on Tue Jun 8 12:31:14 1993 with `annotebib.el' v1.5.1
- X% by Yves.Arrouye <arrouye@cosmos>
- X% to support the `commentaire' annotation field.
- X
- X% This bibliography style was made `annote'-compatible by "annotebib.el".
- X% It can be used for both annotated and non-annotated bibliographies listing
- X% (`annote' package by Yves Arrouye <arrouye@imag.imag.fr>).
- X
- X% BibTeX standard bibliography style `plain'
- X % version 0.99a for BibTeX versions 0.99a or later, LaTeX version 2.09.
- X % Copyright (C) 1985, all rights reserved.
- X % Copying of this file is authorized only if either
- X % (1) you make absolutely no changes to your copy, including name, or
- X % (2) if you do make changes, you name it something other than
- X % btxbst.doc, plain.bst, unsrt.bst, alpha.bst, and abbrv.bst.
- X % This restriction helps ensure that all standard styles are identical.
- X % The file btxbst.doc has the documentation for this style.
- X
- XENTRY
- X { annote
- X commentaire
- X address
- X author
- X booktitle
- X chapter
- X edition
- X editor
- X howpublished
- X institution
- X journal
- X key
- X month
- X note
- X number
- X organization
- X pages
- X publisher
- X school
- X series
- X title
- X type
- X volume
- X year
- X }
- X {}
- X { label }
- X
- XINTEGERS { output.state before.all mid.sentence after.sentence after.block }
- X
- XFUNCTION {init.state.consts}
- X{ #0 'before.all :=
- X #1 'mid.sentence :=
- X #2 'after.sentence :=
- X #3 'after.block :=
- X}
- X
- XSTRINGS { s t }
- X
- XFUNCTION {output.nonnull}
- X{ 's :=
- X output.state mid.sentence =
- X { ", " * write$ }
- X { output.state after.block =
- X { add.period$ write$
- X newline$
- X "\newblock " write$
- X }
- X { output.state before.all =
- X 'write$
- X { add.period$ " " * write$ }
- X if$
- X }
- X if$
- X mid.sentence 'output.state :=
- X }
- X if$
- X s
- X}
- X
- XFUNCTION {output}
- X{ duplicate$ empty$
- X 'pop$
- X 'output.nonnull
- X if$
- X}
- X
- XFUNCTION {output.check}
- X{ 't :=
- X duplicate$ empty$
- X { pop$ "empty " t * " in " * cite$ * warning$ }
- X 'output.nonnull
- X if$
- X}
- X
- XFUNCTION {output.bibitem}
- X{ newline$
- X "\bibitem{" write$
- X cite$ write$
- X "}" write$
- X newline$
- X ""
- X before.all 'output.state :=
- X}
- X
- XFUNCTION {annotebib.format.commentaire}
- X{ commentaire empty$
- X { "" }
- X { "\ifx\commentaire\undefined\else\begin{commentaire} "
- X commentaire
- X * " \end{commentaire}\fi " *
- X }
- X if$
- X}
- X
- XFUNCTION {annotebib.format.annote}
- X{ annote empty$
- X { "" }
- X { "\ifx\annote\undefined\else\begin{annote} "
- X annote
- X * " \end{annote}\fi " *
- X }
- X if$
- X}
- X
- XFUNCTION {fin.entry}
- X{ add.period$
- X write$
- X newline$
- X annotebib.format.commentaire write$
- X annotebib.format.annote write$
- X}
- X
- XFUNCTION {new.block}
- X{ output.state before.all =
- X 'skip$
- X { after.block 'output.state := }
- X if$
- X}
- X
- XFUNCTION {new.sentence}
- X{ output.state after.block =
- X 'skip$
- X { output.state before.all =
- X 'skip$
- X { after.sentence 'output.state := }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {not}
- X{ { #0 }
- X { #1 }
- X if$
- X}
- X
- XFUNCTION {and}
- X{ 'skip$
- X { pop$ #0 }
- X if$
- X}
- X
- XFUNCTION {or}
- X{ { pop$ #1 }
- X 'skip$
- X if$
- X}
- X
- XFUNCTION {new.block.checka}
- X{ empty$
- X 'skip$
- X 'new.block
- X if$
- X}
- X
- XFUNCTION {new.block.checkb}
- X{ empty$
- X swap$ empty$
- X and
- X 'skip$
- X 'new.block
- X if$
- X}
- X
- XFUNCTION {new.sentence.checka}
- X{ empty$
- X 'skip$
- X 'new.sentence
- X if$
- X}
- X
- XFUNCTION {new.sentence.checkb}
- X{ empty$
- X swap$ empty$
- X and
- X 'skip$
- X 'new.sentence
- X if$
- X}
- X
- XFUNCTION {field.or.null}
- X{ duplicate$ empty$
- X { pop$ "" }
- X 'skip$
- X if$
- X}
- X
- XFUNCTION {emphasize}
- X{ duplicate$ empty$
- X { pop$ "" }
- X { "{\em " swap$ * "}" * }
- X if$
- X}
- X
- XINTEGERS { nameptr namesleft numnames }
- X
- XFUNCTION {format.names}
- X{ 's :=
- X #1 'nameptr :=
- X s num.names$ 'numnames :=
- X numnames 'namesleft :=
- X { namesleft #0 > }
- X { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't :=
- X nameptr #1 >
- X { namesleft #1 >
- X { ", " * t * }
- X { numnames #2 >
- X { "," * }
- X 'skip$
- X if$
- X t "others" =
- X { " et~al." * }
- X { " and " * t * }
- X if$
- X }
- X if$
- X }
- X 't
- X if$
- X nameptr #1 + 'nameptr :=
- X namesleft #1 - 'namesleft :=
- X }
- X while$
- X}
- X
- XFUNCTION {format.authors}
- X{ author empty$
- X { "" }
- X { author format.names }
- X if$
- X}
- X
- XFUNCTION {format.editors}
- X{ editor empty$
- X { "" }
- X { editor format.names
- X editor num.names$ #1 >
- X { ", editors" * }
- X { ", editor" * }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {format.title}
- X{ title empty$
- X { "" }
- X { title "t" change.case$ }
- X if$
- X}
- X
- XFUNCTION {n.dashify}
- X{ 't :=
- X ""
- X { t empty$ not }
- X { t #1 #1 substring$ "-" =
- X { t #1 #2 substring$ "--" = not
- X { "--" *
- X t #2 global.max$ substring$ 't :=
- X }
- X { { t #1 #1 substring$ "-" = }
- X { "-" *
- X t #2 global.max$ substring$ 't :=
- X }
- X while$
- X }
- X if$
- X }
- X { t #1 #1 substring$ *
- X t #2 global.max$ substring$ 't :=
- X }
- X if$
- X }
- X while$
- X}
- X
- XFUNCTION {format.date}
- X{ year empty$
- X { month empty$
- X { "" }
- X { "there's a month but no year in " cite$ * warning$
- X month
- X }
- X if$
- X }
- X { month empty$
- X 'year
- X { month " " * year * }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {format.btitle}
- X{ title emphasize
- X}
- X
- XFUNCTION {tie.or.space.connect}
- X{ duplicate$ text.length$ #3 <
- X { "~" }
- X { " " }
- X if$
- X swap$ * *
- X}
- X
- XFUNCTION {either.or.check}
- X{ empty$
- X 'pop$
- X { "can't use both " swap$ * " fields in " * cite$ * warning$ }
- X if$
- X}
- X
- XFUNCTION {format.bvolume}
- X{ volume empty$
- X { "" }
- X { "volume" volume tie.or.space.connect
- X series empty$
- X 'skip$
- X { " of " * series emphasize * }
- X if$
- X "volume and number" number either.or.check
- X }
- X if$
- X}
- X
- XFUNCTION {format.number.series}
- X{ volume empty$
- X { number empty$
- X { series field.or.null }
- X { output.state mid.sentence =
- X { "number" }
- X { "Number" }
- X if$
- X number tie.or.space.connect
- X series empty$
- X { "there's a number but no series in " cite$ * warning$ }
- X { " in " * series * }
- X if$
- X }
- X if$
- X }
- X { "" }
- X if$
- X}
- X
- XFUNCTION {format.edition}
- X{ edition empty$
- X { "" }
- X { output.state mid.sentence =
- X { edition "l" change.case$ " edition" * }
- X { edition "t" change.case$ " edition" * }
- X if$
- X }
- X if$
- X}
- X
- XINTEGERS { multiresult }
- X
- XFUNCTION {multi.page.check}
- X{ 't :=
- X #0 'multiresult :=
- X { multiresult not
- X t empty$ not
- X and
- X }
- X { t #1 #1 substring$
- X duplicate$ "-" =
- X swap$ duplicate$ "," =
- X swap$ "+" =
- X or or
- X { #1 'multiresult := }
- X { t #2 global.max$ substring$ 't := }
- X if$
- X }
- X while$
- X multiresult
- X}
- X
- XFUNCTION {format.pages}
- X{ pages empty$
- X { "" }
- X { pages multi.page.check
- X { "pages" pages n.dashify tie.or.space.connect }
- X { "page" pages tie.or.space.connect }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {format.vol.num.pages}
- X{ volume field.or.null
- X number empty$
- X 'skip$
- X { "(" number * ")" * *
- X volume empty$
- X { "there's a number but no volume in " cite$ * warning$ }
- X 'skip$
- X if$
- X }
- X if$
- X pages empty$
- X 'skip$
- X { duplicate$ empty$
- X { pop$ format.pages }
- X { ":" * pages n.dashify * }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {format.chapter.pages}
- X{ chapter empty$
- X 'format.pages
- X { type empty$
- X { "chapter" }
- X { type "l" change.case$ }
- X if$
- X chapter tie.or.space.connect
- X pages empty$
- X 'skip$
- X { ", " * format.pages * }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {format.in.ed.booktitle}
- X{ booktitle empty$
- X { "" }
- X { editor empty$
- X { "In " booktitle emphasize * }
- X { "In " format.editors * ", " * booktitle emphasize * }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {empty.misc.check}
- X{ author empty$ title empty$ howpublished empty$
- X month empty$ year empty$ note empty$
- X and and and and and
- X key empty$ not and
- X { "all relevant fields are empty in " cite$ * warning$ }
- X 'skip$
- X if$
- X}
- X
- XFUNCTION {format.thesis.type}
- X{ type empty$
- X 'skip$
- X { pop$
- X type "t" change.case$
- X }
- X if$
- X}
- X
- XFUNCTION {format.tr.number}
- X{ type empty$
- X { "Technical Report" }
- X 'type
- X if$
- X number empty$
- X { "t" change.case$ }
- X { number tie.or.space.connect }
- X if$
- X}
- X
- XFUNCTION {format.article.crossref}
- X{ key empty$
- X { journal empty$
- X { "need key or journal for " cite$ * " to crossref " * crossref *
- X warning$
- X ""
- X }
- X { "In {\em " journal * "\/}" * }
- X if$
- X }
- X { "In " key * }
- X if$
- X " \cite{" * crossref * "}" *
- X}
- X
- XFUNCTION {format.crossref.editor}
- X{ editor #1 "{vv~}{ll}" format.name$
- X editor num.names$ duplicate$
- X #2 >
- X { pop$ " et~al." * }
- X { #2 <
- X 'skip$
- X { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
- X { " et~al." * }
- X { " and " * editor #2 "{vv~}{ll}" format.name$ * }
- X if$
- X }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {format.book.crossref}
- X{ volume empty$
- X { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
- X "In "
- X }
- X { "Volume" volume tie.or.space.connect
- X " of " *
- X }
- X if$
- X editor empty$
- X editor field.or.null author field.or.null =
- X or
- X { key empty$
- X { series empty$
- X { "need editor, key, or series for " cite$ * " to crossref " *
- X crossref * warning$
- X "" *
- X }
- X { "{\em " * series * "\/}" * }
- X if$
- X }
- X { key * }
- X if$
- X }
- X { format.crossref.editor * }
- X if$
- X " \cite{" * crossref * "}" *
- X}
- X
- XFUNCTION {format.incoll.inproc.crossref}
- X{ editor empty$
- X editor field.or.null author field.or.null =
- X or
- X { key empty$
- X { booktitle empty$
- X { "need editor, key, or booktitle for " cite$ * " to crossref " *
- X crossref * warning$
- X ""
- X }
- X { "In {\em " booktitle * "\/}" * }
- X if$
- X }
- X { "In " key * }
- X if$
- X }
- X { "In " format.crossref.editor * }
- X if$
- X " \cite{" * crossref * "}" *
- X}
- X
- XFUNCTION {article}
- X{ output.bibitem
- X format.authors "author" output.check
- X new.block
- X format.title "title" output.check
- X new.block
- X crossref missing$
- X { journal emphasize "journal" output.check
- X format.vol.num.pages output
- X format.date "year" output.check
- X }
- X { format.article.crossref output.nonnull
- X format.pages output
- X }
- X if$
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {book}
- X{ output.bibitem
- X author empty$
- X { format.editors "author and editor" output.check }
- X { format.authors output.nonnull
- X crossref missing$
- X { "author and editor" editor either.or.check }
- X 'skip$
- X if$
- X }
- X if$
- X new.block
- X format.btitle "title" output.check
- X crossref missing$
- X { format.bvolume output
- X new.block
- X format.number.series output
- X new.sentence
- X publisher "publisher" output.check
- X address output
- X }
- X { new.block
- X format.book.crossref output.nonnull
- X }
- X if$
- X format.edition output
- X format.date "year" output.check
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {booklet}
- X{ output.bibitem
- X format.authors output
- X new.block
- X format.title "title" output.check
- X howpublished address new.block.checkb
- X howpublished output
- X address output
- X format.date output
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {inbook}
- X{ output.bibitem
- X author empty$
- X { format.editors "author and editor" output.check }
- X { format.authors output.nonnull
- X crossref missing$
- X { "author and editor" editor either.or.check }
- X 'skip$
- X if$
- X }
- X if$
- X new.block
- X format.btitle "title" output.check
- X crossref missing$
- X { format.bvolume output
- X format.chapter.pages "chapter and pages" output.check
- X new.block
- X format.number.series output
- X new.sentence
- X publisher "publisher" output.check
- X address output
- X }
- X { format.chapter.pages "chapter and pages" output.check
- X new.block
- X format.book.crossref output.nonnull
- X }
- X if$
- X format.edition output
- X format.date "year" output.check
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {incollection}
- X{ output.bibitem
- X format.authors "author" output.check
- X new.block
- X format.title "title" output.check
- X new.block
- X crossref missing$
- X { format.in.ed.booktitle "booktitle" output.check
- X format.bvolume output
- X format.number.series output
- X format.chapter.pages output
- X new.sentence
- X publisher "publisher" output.check
- X address output
- X format.edition output
- X format.date "year" output.check
- X }
- X { format.incoll.inproc.crossref output.nonnull
- X format.chapter.pages output
- X }
- X if$
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {inproceedings}
- X{ output.bibitem
- X format.authors "author" output.check
- X new.block
- X format.title "title" output.check
- X new.block
- X crossref missing$
- X { format.in.ed.booktitle "booktitle" output.check
- X format.bvolume output
- X format.number.series output
- X format.pages output
- X address empty$
- X { organization publisher new.sentence.checkb
- X organization output
- X publisher output
- X format.date "year" output.check
- X }
- X { address output.nonnull
- X format.date "year" output.check
- X new.sentence
- X organization output
- X publisher output
- X }
- X if$
- X }
- X { format.incoll.inproc.crossref output.nonnull
- X format.pages output
- X }
- X if$
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {conference} { inproceedings }
- X
- XFUNCTION {manual}
- X{ output.bibitem
- X author empty$
- X { organization empty$
- X 'skip$
- X { organization output.nonnull
- X address output
- X }
- X if$
- X }
- X { format.authors output.nonnull }
- X if$
- X new.block
- X format.btitle "title" output.check
- X author empty$
- X { organization empty$
- X { address new.block.checka
- X address output
- X }
- X 'skip$
- X if$
- X }
- X { organization address new.block.checkb
- X organization output
- X address output
- X }
- X if$
- X format.edition output
- X format.date output
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {mastersthesis}
- X{ output.bibitem
- X format.authors "author" output.check
- X new.block
- X format.title "title" output.check
- X new.block
- X "Master's thesis" format.thesis.type output.nonnull
- X school "school" output.check
- X address output
- X format.date "year" output.check
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {misc}
- X{ output.bibitem
- X format.authors output
- X title howpublished new.block.checkb
- X format.title output
- X howpublished new.block.checka
- X howpublished output
- X format.date output
- X new.block
- X note output
- X fin.entry
- X empty.misc.check
- X}
- X
- XFUNCTION {phdthesis}
- X{ output.bibitem
- X format.authors "author" output.check
- X new.block
- X format.btitle "title" output.check
- X new.block
- X "PhD thesis" format.thesis.type output.nonnull
- X school "school" output.check
- X address output
- X format.date "year" output.check
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {proceedings}
- X{ output.bibitem
- X editor empty$
- X { organization output }
- X { format.editors output.nonnull }
- X if$
- X new.block
- X format.btitle "title" output.check
- X format.bvolume output
- X format.number.series output
- X address empty$
- X { editor empty$
- X { publisher new.sentence.checka }
- X { organization publisher new.sentence.checkb
- X organization output
- X }
- X if$
- X publisher output
- X format.date "year" output.check
- X }
- X { address output.nonnull
- X format.date "year" output.check
- X new.sentence
- X editor empty$
- X 'skip$
- X { organization output }
- X if$
- X publisher output
- X }
- X if$
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {techreport}
- X{ output.bibitem
- X format.authors "author" output.check
- X new.block
- X format.title "title" output.check
- X new.block
- X format.tr.number output.nonnull
- X institution "institution" output.check
- X address output
- X format.date "year" output.check
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {unpublished}
- X{ output.bibitem
- X format.authors "author" output.check
- X new.block
- X format.title "title" output.check
- X new.block
- X note "note" output.check
- X format.date output
- X fin.entry
- X}
- X
- XFUNCTION {default.type} { misc }
- X
- XMACRO {jan} {"January"}
- X
- XMACRO {feb} {"February"}
- X
- XMACRO {mar} {"March"}
- X
- XMACRO {apr} {"April"}
- X
- XMACRO {may} {"May"}
- X
- XMACRO {jun} {"June"}
- X
- XMACRO {jul} {"July"}
- X
- XMACRO {aug} {"August"}
- X
- XMACRO {sep} {"September"}
- X
- XMACRO {oct} {"October"}
- X
- XMACRO {nov} {"November"}
- X
- XMACRO {dec} {"December"}
- X
- XMACRO {acmcs} {"ACM Computing Surveys"}
- X
- XMACRO {acta} {"Acta Informatica"}
- X
- XMACRO {cacm} {"Communications of the ACM"}
- X
- XMACRO {ibmjrd} {"IBM Journal of Research and Development"}
- X
- XMACRO {ibmsj} {"IBM Systems Journal"}
- X
- XMACRO {ieeese} {"IEEE Transactions on Software Engineering"}
- X
- XMACRO {ieeetc} {"IEEE Transactions on Computers"}
- X
- XMACRO {ieeetcad}
- X {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
- X
- XMACRO {ipl} {"Information Processing Letters"}
- X
- XMACRO {jacm} {"Journal of the ACM"}
- X
- XMACRO {jcss} {"Journal of Computer and System Sciences"}
- X
- XMACRO {scp} {"Science of Computer Programming"}
- X
- XMACRO {sicomp} {"SIAM Journal on Computing"}
- X
- XMACRO {tocs} {"ACM Transactions on Computer Systems"}
- X
- XMACRO {tods} {"ACM Transactions on Database Systems"}
- X
- XMACRO {tog} {"ACM Transactions on Graphics"}
- X
- XMACRO {toms} {"ACM Transactions on Mathematical Software"}
- X
- XMACRO {toois} {"ACM Transactions on Office Information Systems"}
- X
- XMACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
- X
- XMACRO {tcs} {"Theoretical Computer Science"}
- X
- XREAD
- X
- XFUNCTION {sortify}
- X{ purify$
- X "l" change.case$
- X}
- X
- XINTEGERS { len }
- X
- XFUNCTION {chop.word}
- X{ 's :=
- X 'len :=
- X s #1 len substring$ =
- X { s len #1 + global.max$ substring$ }
- X 's
- X if$
- X}
- X
- XFUNCTION {sort.format.names}
- X{ 's :=
- X #1 'nameptr :=
- X ""
- X s num.names$ 'numnames :=
- X numnames 'namesleft :=
- X { namesleft #0 > }
- X { nameptr #1 >
- X { " " * }
- X 'skip$
- X if$
- X s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't :=
- X nameptr numnames = t "others" = and
- X { "et al" * }
- X { t sortify * }
- X if$
- X nameptr #1 + 'nameptr :=
- X namesleft #1 - 'namesleft :=
- X }
- X while$
- X}
- X
- XFUNCTION {sort.format.title}
- X{ 't :=
- X "A " #2
- X "An " #3
- X "The " #4 t chop.word
- X chop.word
- X chop.word
- X sortify
- X #1 global.max$ substring$
- X}
- X
- XFUNCTION {author.sort}
- X{ author empty$
- X { key empty$
- X { "to sort, need author or key in " cite$ * warning$
- X ""
- X }
- X { key sortify }
- X if$
- X }
- X { author sort.format.names }
- X if$
- X}
- X
- XFUNCTION {author.editor.sort}
- X{ author empty$
- X { editor empty$
- X { key empty$
- X { "to sort, need author, editor, or key in " cite$ * warning$
- X ""
- X }
- X { key sortify }
- X if$
- X }
- X { editor sort.format.names }
- X if$
- X }
- X { author sort.format.names }
- X if$
- X}
- X
- XFUNCTION {author.organization.sort}
- X{ author empty$
- X { organization empty$
- X { key empty$
- X { "to sort, need author, organization, or key in " cite$ * warning$
- X ""
- X }
- X { key sortify }
- X if$
- X }
- X { "The " #4 organization chop.word sortify }
- X if$
- X }
- X { author sort.format.names }
- X if$
- X}
- X
- XFUNCTION {editor.organization.sort}
- X{ editor empty$
- X { organization empty$
- X { key empty$
- X { "to sort, need editor, organization, or key in " cite$ * warning$
- X ""
- X }
- X { key sortify }
- X if$
- X }
- X { "The " #4 organization chop.word sortify }
- X if$
- X }
- X { editor sort.format.names }
- X if$
- X}
- X
- XFUNCTION {presort}
- X{ type$ "book" =
- X type$ "inbook" =
- X or
- X 'author.editor.sort
- X { type$ "proceedings" =
- X 'editor.organization.sort
- X { type$ "manual" =
- X 'author.organization.sort
- X 'author.sort
- X if$
- X }
- X if$
- X }
- X if$
- X " "
- X *
- X year field.or.null sortify
- X *
- X " "
- X *
- X title field.or.null
- X sort.format.title
- X *
- X #1 entry.max$ substring$
- X 'sort.key$ :=
- X}
- X
- XITERATE {presort}
- X
- XSORT
- X
- XSTRINGS { longest.label }
- X
- XINTEGERS { number.label longest.label.width }
- X
- XFUNCTION {initialize.longest.label}
- X{ "" 'longest.label :=
- X #1 'number.label :=
- X #0 'longest.label.width :=
- X}
- X
- XFUNCTION {longest.label.pass}
- X{ number.label int.to.str$ 'label :=
- X number.label #1 + 'number.label :=
- X label width$ longest.label.width >
- X { label 'longest.label :=
- X label width$ 'longest.label.width :=
- X }
- X 'skip$
- X if$
- X}
- X
- XEXECUTE {initialize.longest.label}
- X
- XITERATE {longest.label.pass}
- X
- XFUNCTION {begin.bib}
- X{ preamble$ empty$
- X 'skip$
- X { preamble$ write$ newline$ }
- X if$
- X "\begin{thebibliography}{" longest.label * "}" * write$ newline$
- X}
- X
- XEXECUTE {begin.bib}
- X
- XEXECUTE {init.state.consts}
- X
- XITERATE {call.type$}
- X
- XFUNCTION {end.bib}
- X{ newline$
- X "\end{thebibliography}" write$ newline$
- X}
- X
- XEXECUTE {end.bib}
- END_OF_FILE
- if test 21696 -ne `wc -c <'plain.bst'`; then
- echo shar: \"'plain.bst'\" unpacked with wrong size!
- fi
- # end of 'plain.bst'
- fi
- if test -f 'unsrt.bst' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'unsrt.bst'\"
- else
- echo shar: Extracting \"'unsrt.bst'\" \(19113 characters\)
- sed "s/^X//" >'unsrt.bst' <<'END_OF_FILE'
- X% Style file modified on Tue Jun 8 12:31:19 1993 with `annotebib.el' v1.5.1
- X% by Yves.Arrouye <arrouye@cosmos>
- X% to support the `annote' annotation field.
- X% Style file modified on Tue Jun 8 12:31:19 1993 with `annotebib.el' v1.5.1
- X% by Yves.Arrouye <arrouye@cosmos>
- X% to support the `commentaire' annotation field.
- X
- X% This bibliography style was made `annote'-compatible by "annotebib.el".
- X% It can be used for both annotated and non-annotated bibliographies listing
- X% (`annote' package by Yves Arrouye <arrouye@imag.imag.fr>).
- X
- X% BibTeX standard bibliography style `unsrt'
- X % version 0.99a for BibTeX versions 0.99a or later, LaTeX version 2.09.
- X % Copyright (C) 1985, all rights reserved.
- X % Copying of this file is authorized only if either
- X % (1) you make absolutely no changes to your copy, including name, or
- X % (2) if you do make changes, you name it something other than
- X % btxbst.doc, plain.bst, unsrt.bst, alpha.bst, and abbrv.bst.
- X % This restriction helps ensure that all standard styles are identical.
- X % The file btxbst.doc has the documentation for this style.
- X
- XENTRY
- X { annote
- X commentaire
- X address
- X author
- X booktitle
- X chapter
- X edition
- X editor
- X howpublished
- X institution
- X journal
- X key
- X month
- X note
- X number
- X organization
- X pages
- X publisher
- X school
- X series
- X title
- X type
- X volume
- X year
- X }
- X {}
- X { label }
- X
- XINTEGERS { output.state before.all mid.sentence after.sentence after.block }
- X
- XFUNCTION {init.state.consts}
- X{ #0 'before.all :=
- X #1 'mid.sentence :=
- X #2 'after.sentence :=
- X #3 'after.block :=
- X}
- X
- XSTRINGS { s t }
- X
- XFUNCTION {output.nonnull}
- X{ 's :=
- X output.state mid.sentence =
- X { ", " * write$ }
- X { output.state after.block =
- X { add.period$ write$
- X newline$
- X "\newblock " write$
- X }
- X { output.state before.all =
- X 'write$
- X { add.period$ " " * write$ }
- X if$
- X }
- X if$
- X mid.sentence 'output.state :=
- X }
- X if$
- X s
- X}
- X
- XFUNCTION {output}
- X{ duplicate$ empty$
- X 'pop$
- X 'output.nonnull
- X if$
- X}
- X
- XFUNCTION {output.check}
- X{ 't :=
- X duplicate$ empty$
- X { pop$ "empty " t * " in " * cite$ * warning$ }
- X 'output.nonnull
- X if$
- X}
- X
- XFUNCTION {output.bibitem}
- X{ newline$
- X "\bibitem{" write$
- X cite$ write$
- X "}" write$
- X newline$
- X ""
- X before.all 'output.state :=
- X}
- X
- XFUNCTION {annotebib.format.commentaire}
- X{ commentaire empty$
- X { "" }
- X { "\ifx\commentaire\undefined\else\begin{commentaire} "
- X commentaire
- X * " \end{commentaire}\fi " *
- X }
- X if$
- X}
- X
- XFUNCTION {annotebib.format.annote}
- X{ annote empty$
- X { "" }
- X { "\ifx\annote\undefined\else\begin{annote} "
- X annote
- X * " \end{annote}\fi " *
- X }
- X if$
- X}
- X
- XFUNCTION {fin.entry}
- X{ add.period$
- X write$
- X newline$
- X annotebib.format.commentaire write$
- X annotebib.format.annote write$
- X}
- X
- XFUNCTION {new.block}
- X{ output.state before.all =
- X 'skip$
- X { after.block 'output.state := }
- X if$
- X}
- X
- XFUNCTION {new.sentence}
- X{ output.state after.block =
- X 'skip$
- X { output.state before.all =
- X 'skip$
- X { after.sentence 'output.state := }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {not}
- X{ { #0 }
- X { #1 }
- X if$
- X}
- X
- XFUNCTION {and}
- X{ 'skip$
- X { pop$ #0 }
- X if$
- X}
- X
- XFUNCTION {or}
- X{ { pop$ #1 }
- X 'skip$
- X if$
- X}
- X
- XFUNCTION {new.block.checka}
- X{ empty$
- X 'skip$
- X 'new.block
- X if$
- X}
- X
- XFUNCTION {new.block.checkb}
- X{ empty$
- X swap$ empty$
- X and
- X 'skip$
- X 'new.block
- X if$
- X}
- X
- XFUNCTION {new.sentence.checka}
- X{ empty$
- X 'skip$
- X 'new.sentence
- X if$
- X}
- X
- XFUNCTION {new.sentence.checkb}
- X{ empty$
- X swap$ empty$
- X and
- X 'skip$
- X 'new.sentence
- X if$
- X}
- X
- XFUNCTION {field.or.null}
- X{ duplicate$ empty$
- X { pop$ "" }
- X 'skip$
- X if$
- X}
- X
- XFUNCTION {emphasize}
- X{ duplicate$ empty$
- X { pop$ "" }
- X { "{\em " swap$ * "}" * }
- X if$
- X}
- X
- XINTEGERS { nameptr namesleft numnames }
- X
- XFUNCTION {format.names}
- X{ 's :=
- X #1 'nameptr :=
- X s num.names$ 'numnames :=
- X numnames 'namesleft :=
- X { namesleft #0 > }
- X { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't :=
- X nameptr #1 >
- X { namesleft #1 >
- X { ", " * t * }
- X { numnames #2 >
- X { "," * }
- X 'skip$
- X if$
- X t "others" =
- X { " et~al." * }
- X { " and " * t * }
- X if$
- X }
- X if$
- X }
- X 't
- X if$
- X nameptr #1 + 'nameptr :=
- X namesleft #1 - 'namesleft :=
- X }
- X while$
- X}
- X
- XFUNCTION {format.authors}
- X{ author empty$
- X { "" }
- X { author format.names }
- X if$
- X}
- X
- XFUNCTION {format.editors}
- X{ editor empty$
- X { "" }
- X { editor format.names
- X editor num.names$ #1 >
- X { ", editors" * }
- X { ", editor" * }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {format.title}
- X{ title empty$
- X { "" }
- X { title "t" change.case$ }
- X if$
- X}
- X
- XFUNCTION {n.dashify}
- X{ 't :=
- X ""
- X { t empty$ not }
- X { t #1 #1 substring$ "-" =
- X { t #1 #2 substring$ "--" = not
- X { "--" *
- X t #2 global.max$ substring$ 't :=
- X }
- X { { t #1 #1 substring$ "-" = }
- X { "-" *
- X t #2 global.max$ substring$ 't :=
- X }
- X while$
- X }
- X if$
- X }
- X { t #1 #1 substring$ *
- X t #2 global.max$ substring$ 't :=
- X }
- X if$
- X }
- X while$
- X}
- X
- XFUNCTION {format.date}
- X{ year empty$
- X { month empty$
- X { "" }
- X { "there's a month but no year in " cite$ * warning$
- X month
- X }
- X if$
- X }
- X { month empty$
- X 'year
- X { month " " * year * }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {format.btitle}
- X{ title emphasize
- X}
- X
- XFUNCTION {tie.or.space.connect}
- X{ duplicate$ text.length$ #3 <
- X { "~" }
- X { " " }
- X if$
- X swap$ * *
- X}
- X
- XFUNCTION {either.or.check}
- X{ empty$
- X 'pop$
- X { "can't use both " swap$ * " fields in " * cite$ * warning$ }
- X if$
- X}
- X
- XFUNCTION {format.bvolume}
- X{ volume empty$
- X { "" }
- X { "volume" volume tie.or.space.connect
- X series empty$
- X 'skip$
- X { " of " * series emphasize * }
- X if$
- X "volume and number" number either.or.check
- X }
- X if$
- X}
- X
- XFUNCTION {format.number.series}
- X{ volume empty$
- X { number empty$
- X { series field.or.null }
- X { output.state mid.sentence =
- X { "number" }
- X { "Number" }
- X if$
- X number tie.or.space.connect
- X series empty$
- X { "there's a number but no series in " cite$ * warning$ }
- X { " in " * series * }
- X if$
- X }
- X if$
- X }
- X { "" }
- X if$
- X}
- X
- XFUNCTION {format.edition}
- X{ edition empty$
- X { "" }
- X { output.state mid.sentence =
- X { edition "l" change.case$ " edition" * }
- X { edition "t" change.case$ " edition" * }
- X if$
- X }
- X if$
- X}
- X
- XINTEGERS { multiresult }
- X
- XFUNCTION {multi.page.check}
- X{ 't :=
- X #0 'multiresult :=
- X { multiresult not
- X t empty$ not
- X and
- X }
- X { t #1 #1 substring$
- X duplicate$ "-" =
- X swap$ duplicate$ "," =
- X swap$ "+" =
- X or or
- X { #1 'multiresult := }
- X { t #2 global.max$ substring$ 't := }
- X if$
- X }
- X while$
- X multiresult
- X}
- X
- XFUNCTION {format.pages}
- X{ pages empty$
- X { "" }
- X { pages multi.page.check
- X { "pages" pages n.dashify tie.or.space.connect }
- X { "page" pages tie.or.space.connect }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {format.vol.num.pages}
- X{ volume field.or.null
- X number empty$
- X 'skip$
- X { "(" number * ")" * *
- X volume empty$
- X { "there's a number but no volume in " cite$ * warning$ }
- X 'skip$
- X if$
- X }
- X if$
- X pages empty$
- X 'skip$
- X { duplicate$ empty$
- X { pop$ format.pages }
- X { ":" * pages n.dashify * }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {format.chapter.pages}
- X{ chapter empty$
- X 'format.pages
- X { type empty$
- X { "chapter" }
- X { type "l" change.case$ }
- X if$
- X chapter tie.or.space.connect
- X pages empty$
- X 'skip$
- X { ", " * format.pages * }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {format.in.ed.booktitle}
- X{ booktitle empty$
- X { "" }
- X { editor empty$
- X { "In " booktitle emphasize * }
- X { "In " format.editors * ", " * booktitle emphasize * }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {empty.misc.check}
- X{ author empty$ title empty$ howpublished empty$
- X month empty$ year empty$ note empty$
- X and and and and and
- X { "all relevant fields are empty in " cite$ * warning$ }
- X 'skip$
- X if$
- X}
- X
- XFUNCTION {format.thesis.type}
- X{ type empty$
- X 'skip$
- X { pop$
- X type "t" change.case$
- X }
- X if$
- X}
- X
- XFUNCTION {format.tr.number}
- X{ type empty$
- X { "Technical Report" }
- X 'type
- X if$
- X number empty$
- X { "t" change.case$ }
- X { number tie.or.space.connect }
- X if$
- X}
- X
- XFUNCTION {format.article.crossref}
- X{ key empty$
- X { journal empty$
- X { "need key or journal for " cite$ * " to crossref " * crossref *
- X warning$
- X ""
- X }
- X { "In {\em " journal * "\/}" * }
- X if$
- X }
- X { "In " key * }
- X if$
- X " \cite{" * crossref * "}" *
- X}
- X
- XFUNCTION {format.crossref.editor}
- X{ editor #1 "{vv~}{ll}" format.name$
- X editor num.names$ duplicate$
- X #2 >
- X { pop$ " et~al." * }
- X { #2 <
- X 'skip$
- X { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
- X { " et~al." * }
- X { " and " * editor #2 "{vv~}{ll}" format.name$ * }
- X if$
- X }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {format.book.crossref}
- X{ volume empty$
- X { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
- X "In "
- X }
- X { "Volume" volume tie.or.space.connect
- X " of " *
- X }
- X if$
- X editor empty$
- X editor field.or.null author field.or.null =
- X or
- X { key empty$
- X { series empty$
- X { "need editor, key, or series for " cite$ * " to crossref " *
- X crossref * warning$
- X "" *
- X }
- X { "{\em " * series * "\/}" * }
- X if$
- X }
- X { key * }
- X if$
- X }
- X { format.crossref.editor * }
- X if$
- X " \cite{" * crossref * "}" *
- X}
- X
- XFUNCTION {format.incoll.inproc.crossref}
- X{ editor empty$
- X editor field.or.null author field.or.null =
- X or
- X { key empty$
- X { booktitle empty$
- X { "need editor, key, or booktitle for " cite$ * " to crossref " *
- X crossref * warning$
- X ""
- X }
- X { "In {\em " booktitle * "\/}" * }
- X if$
- X }
- X { "In " key * }
- X if$
- X }
- X { "In " format.crossref.editor * }
- X if$
- X " \cite{" * crossref * "}" *
- X}
- X
- XFUNCTION {article}
- X{ output.bibitem
- X format.authors "author" output.check
- X new.block
- X format.title "title" output.check
- X new.block
- X crossref missing$
- X { journal emphasize "journal" output.check
- X format.vol.num.pages output
- X format.date "year" output.check
- X }
- X { format.article.crossref output.nonnull
- X format.pages output
- X }
- X if$
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {book}
- X{ output.bibitem
- X author empty$
- X { format.editors "author and editor" output.check }
- X { format.authors output.nonnull
- X crossref missing$
- X { "author and editor" editor either.or.check }
- X 'skip$
- X if$
- X }
- X if$
- X new.block
- X format.btitle "title" output.check
- X crossref missing$
- X { format.bvolume output
- X new.block
- X format.number.series output
- X new.sentence
- X publisher "publisher" output.check
- X address output
- X }
- X { new.block
- X format.book.crossref output.nonnull
- X }
- X if$
- X format.edition output
- X format.date "year" output.check
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {booklet}
- X{ output.bibitem
- X format.authors output
- X new.block
- X format.title "title" output.check
- X howpublished address new.block.checkb
- X howpublished output
- X address output
- X format.date output
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {inbook}
- X{ output.bibitem
- X author empty$
- X { format.editors "author and editor" output.check }
- X { format.authors output.nonnull
- X crossref missing$
- X { "author and editor" editor either.or.check }
- X 'skip$
- X if$
- X }
- X if$
- X new.block
- X format.btitle "title" output.check
- X crossref missing$
- X { format.bvolume output
- X format.chapter.pages "chapter and pages" output.check
- X new.block
- X format.number.series output
- X new.sentence
- X publisher "publisher" output.check
- X address output
- X }
- X { format.chapter.pages "chapter and pages" output.check
- X new.block
- X format.book.crossref output.nonnull
- X }
- X if$
- X format.edition output
- X format.date "year" output.check
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {incollection}
- X{ output.bibitem
- X format.authors "author" output.check
- X new.block
- X format.title "title" output.check
- X new.block
- X crossref missing$
- X { format.in.ed.booktitle "booktitle" output.check
- X format.bvolume output
- X format.number.series output
- X format.chapter.pages output
- X new.sentence
- X publisher "publisher" output.check
- X address output
- X format.edition output
- X format.date "year" output.check
- X }
- X { format.incoll.inproc.crossref output.nonnull
- X format.chapter.pages output
- X }
- X if$
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {inproceedings}
- X{ output.bibitem
- X format.authors "author" output.check
- X new.block
- X format.title "title" output.check
- X new.block
- X crossref missing$
- X { format.in.ed.booktitle "booktitle" output.check
- X format.bvolume output
- X format.number.series output
- X format.pages output
- X address empty$
- X { organization publisher new.sentence.checkb
- X organization output
- X publisher output
- X format.date "year" output.check
- X }
- X { address output.nonnull
- X format.date "year" output.check
- X new.sentence
- X organization output
- X publisher output
- X }
- X if$
- X }
- X { format.incoll.inproc.crossref output.nonnull
- X format.pages output
- X }
- X if$
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {conference} { inproceedings }
- X
- XFUNCTION {manual}
- X{ output.bibitem
- X author empty$
- X { organization empty$
- X 'skip$
- X { organization output.nonnull
- X address output
- X }
- X if$
- X }
- X { format.authors output.nonnull }
- X if$
- X new.block
- X format.btitle "title" output.check
- X author empty$
- X { organization empty$
- X { address new.block.checka
- X address output
- X }
- X 'skip$
- X if$
- X }
- X { organization address new.block.checkb
- X organization output
- X address output
- X }
- X if$
- X format.edition output
- X format.date output
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {mastersthesis}
- X{ output.bibitem
- X format.authors "author" output.check
- X new.block
- X format.title "title" output.check
- X new.block
- X "Master's thesis" format.thesis.type output.nonnull
- X school "school" output.check
- X address output
- X format.date "year" output.check
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {misc}
- X{ output.bibitem
- X format.authors output
- X title howpublished new.block.checkb
- X format.title output
- X howpublished new.block.checka
- X howpublished output
- X format.date output
- X new.block
- X note output
- X fin.entry
- X empty.misc.check
- X}
- X
- XFUNCTION {phdthesis}
- X{ output.bibitem
- X format.authors "author" output.check
- X new.block
- X format.btitle "title" output.check
- X new.block
- X "PhD thesis" format.thesis.type output.nonnull
- X school "school" output.check
- X address output
- X format.date "year" output.check
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {proceedings}
- X{ output.bibitem
- X editor empty$
- X { organization output }
- X { format.editors output.nonnull }
- X if$
- X new.block
- X format.btitle "title" output.check
- X format.bvolume output
- X format.number.series output
- X address empty$
- X { editor empty$
- X { publisher new.sentence.checka }
- X { organization publisher new.sentence.checkb
- X organization output
- X }
- X if$
- X publisher output
- X format.date "year" output.check
- X }
- X { address output.nonnull
- X format.date "year" output.check
- X new.sentence
- X editor empty$
- X 'skip$
- X { organization output }
- X if$
- X publisher output
- X }
- X if$
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {techreport}
- X{ output.bibitem
- X format.authors "author" output.check
- X new.block
- X format.title "title" output.check
- X new.block
- X format.tr.number output.nonnull
- X institution "institution" output.check
- X address output
- X format.date "year" output.check
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {unpublished}
- X{ output.bibitem
- X format.authors "author" output.check
- X new.block
- X format.title "title" output.check
- X new.block
- X note "note" output.check
- X format.date output
- X fin.entry
- X}
- X
- XFUNCTION {default.type} { misc }
- X
- XMACRO {jan} {"January"}
- X
- XMACRO {feb} {"February"}
- X
- XMACRO {mar} {"March"}
- X
- XMACRO {apr} {"April"}
- X
- XMACRO {may} {"May"}
- X
- XMACRO {jun} {"June"}
- X
- XMACRO {jul} {"July"}
- X
- XMACRO {aug} {"August"}
- X
- XMACRO {sep} {"September"}
- X
- XMACRO {oct} {"October"}
- X
- XMACRO {nov} {"November"}
- X
- XMACRO {dec} {"December"}
- X
- XMACRO {acmcs} {"ACM Computing Surveys"}
- X
- XMACRO {acta} {"Acta Informatica"}
- X
- XMACRO {cacm} {"Communications of the ACM"}
- X
- XMACRO {ibmjrd} {"IBM Journal of Research and Development"}
- X
- XMACRO {ibmsj} {"IBM Systems Journal"}
- X
- XMACRO {ieeese} {"IEEE Transactions on Software Engineering"}
- X
- XMACRO {ieeetc} {"IEEE Transactions on Computers"}
- X
- XMACRO {ieeetcad}
- X {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
- X
- XMACRO {ipl} {"Information Processing Letters"}
- X
- XMACRO {jacm} {"Journal of the ACM"}
- X
- XMACRO {jcss} {"Journal of Computer and System Sciences"}
- X
- XMACRO {scp} {"Science of Computer Programming"}
- X
- XMACRO {sicomp} {"SIAM Journal on Computing"}
- X
- XMACRO {tocs} {"ACM Transactions on Computer Systems"}
- X
- XMACRO {tods} {"ACM Transactions on Database Systems"}
- X
- XMACRO {tog} {"ACM Transactions on Graphics"}
- X
- XMACRO {toms} {"ACM Transactions on Mathematical Software"}
- X
- XMACRO {toois} {"ACM Transactions on Office Information Systems"}
- X
- XMACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
- X
- XMACRO {tcs} {"Theoretical Computer Science"}
- X
- XREAD
- X
- XSTRINGS { longest.label }
- X
- XINTEGERS { number.label longest.label.width }
- X
- XFUNCTION {initialize.longest.label}
- X{ "" 'longest.label :=
- X #1 'number.label :=
- X #0 'longest.label.width :=
- X}
- X
- XFUNCTION {longest.label.pass}
- X{ number.label int.to.str$ 'label :=
- X number.label #1 + 'number.label :=
- X label width$ longest.label.width >
- X { label 'longest.label :=
- X label width$ 'longest.label.width :=
- X }
- X 'skip$
- X if$
- X}
- X
- XEXECUTE {initialize.longest.label}
- X
- XITERATE {longest.label.pass}
- X
- XFUNCTION {begin.bib}
- X{ preamble$ empty$
- X 'skip$
- X { preamble$ write$ newline$ }
- X if$
- X "\begin{thebibliography}{" longest.label * "}" * write$ newline$
- X}
- X
- XEXECUTE {begin.bib}
- X
- XEXECUTE {init.state.consts}
- X
- XITERATE {call.type$}
- X
- XFUNCTION {end.bib}
- X{ newline$
- X "\end{thebibliography}" write$ newline$
- X}
- X
- XEXECUTE {end.bib}
- END_OF_FILE
- if test 19113 -ne `wc -c <'unsrt.bst'`; then
- echo shar: \"'unsrt.bst'\" unpacked with wrong size!
- fi
- # end of 'unsrt.bst'
- fi
- if test -f 'apalike.bst' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'apalike.bst'\"
- else
- echo shar: Extracting \"'apalike.bst'\" \(22921 characters\)
- sed "s/^X//" >'apalike.bst' <<'END_OF_FILE'
- X% Style file modified on Tue Jun 8 12:31:04 1993 with `annotebib.el' v1.5.1
- X% by Yves.Arrouye <arrouye@cosmos>
- X% to support the `annote' annotation field.
- X% Style file modified on Tue Jun 8 12:31:04 1993 with `annotebib.el' v1.5.1
- X% by Yves.Arrouye <arrouye@cosmos>
- X% to support the `commentaire' annotation field.
- X
- X% This bibliography style was made `annote'-compatible by "annotebib.el".
- X% It can be used for both annotated and non-annotated bibliographies listing
- X% (`annote' package by Yves Arrouye <arrouye@imag.imag.fr>).
- X
- X% BibTeX `apalike' bibliography style (24-Jan-88 version)
- X% Adapted from the `alpha' style, version 0.99a; for BibTeX version 0.99a.
- X% Copyright (C) 1988, all rights reserved.
- X% Copying of this file is allowed, provided that if you make any changes at all
- X% you name it something other than `apalike.bst'.
- X% This restriction helps ensure that all copies are identical.
- X% Differences between this style and `alpha' are generally heralded by a `%'.
- X% The file btxbst.doc has the documentation for alpha.bst.
- X%
- X% This style should be used with the `apalike' LaTeX style (apalike.sty).
- X% \cite's come out like "(Jones, 1986)" in the text but there are no labels
- X% in the bibliography, and something like "(1986)" comes out immediately
- X% after the author. Author (and editor) names appear as last name, comma,
- X% initials. A `year' field is required for every entry, and so is either
- X% an author (or in some cases, an editor) field or a key field.
- X%
- X% Editorial note:
- X% Many journals require a style like `apalike', but I strongly, strongly,
- X% strongly recommend that you not use it if you have a choice---use something
- X% like `plain' instead. Mary-Claire van Leunen (A Handbook for Scholars,
- X% Knopf, 1979) argues convincingly that a style like `plain' encourages better
- X% writing than one like `apalike'. Furthermore the strongest arguments for
- X% using an author-date style like `apalike'---that it's "the most practical"
- X% (The Chicago Manual of Style, University of Chicago Press, thirteenth
- X% edition, 1982, pages 400--401)---fall flat on their face with the new
- X% computer-typesetting technology. For instance page 401 anachronistically
- X% states "The chief disadvantage of [a style like `plain'] is that additions
- X% or deletions cannot be made after the manuscript is typed without changing
- X% numbers in both text references and list." LaTeX sidesteps the disadvantage.
- X%
- X% History:
- X% 15-sep-86 (SK,OP) Original version, by Susan King and Oren Patashnik.
- X% 10-nov-86 (OP) Truncated the sort.key$ string to the correct length
- X% in bib.sort.order to eliminate error message.
- X% 24-jan-88 (OP) Updated for BibTeX version 0.99a, from alpha.bst 0.99a;
- X% apalike now sorts by author, then year, then title;
- X% THIS `apalike' VERSION DOES NOT WORK WITH BIBTEX 0.98i.
- X
- XENTRY
- X { annote
- X commentaire
- X address
- X author
- X booktitle
- X chapter
- X edition
- X editor
- X howpublished
- X institution
- X journal
- X key
- X% month not used in apalike
- X note
- X number
- X organization
- X pages
- X publisher
- X school
- X series
- X title
- X type
- X volume
- X year
- X }
- X {}
- X { label extra.label sort.label }
- X
- XINTEGERS { output.state before.all mid.sentence after.sentence after.block }
- X
- XFUNCTION {init.state.consts}
- X{ #0 'before.all :=
- X #1 'mid.sentence :=
- X #2 'after.sentence :=
- X #3 'after.block :=
- X}
- X
- XSTRINGS { s t }
- X
- XFUNCTION {output.nonnull}
- X{ 's :=
- X output.state mid.sentence =
- X { ", " * write$ }
- X { output.state after.block =
- X { add.period$ write$
- X newline$
- X "\newblock " write$
- X }
- X { output.state before.all =
- X 'write$
- X { add.period$ " " * write$ }
- X if$
- X }
- X if$
- X mid.sentence 'output.state :=
- X }
- X if$
- X s
- X}
- X
- XFUNCTION {output}
- X{ duplicate$ empty$
- X 'pop$
- X 'output.nonnull
- X if$
- X}
- X
- XFUNCTION {output.check}
- X{ 't :=
- X duplicate$ empty$
- X { pop$ "empty " t * " in " * cite$ * warning$ }
- X 'output.nonnull
- X if$
- X}
- X
- X% apalike needs this function because
- X% the year has special punctuation;
- X% apalike ignores the month
- XFUNCTION {output.year.check}
- X{ year empty$
- X { "empty year in " cite$ * warning$ }
- X { write$
- X " (" year * extra.label * ")" *
- X mid.sentence 'output.state :=
- X }
- X if$
- X}
- X
- XFUNCTION {output.bibitem}
- X{ newline$
- X "\bibitem[" write$
- X label write$
- X "]{" write$
- X cite$ write$
- X "}" write$
- X newline$
- X ""
- X before.all 'output.state :=
- X}
- X
- XFUNCTION {annotebib.format.commentaire}
- X{ commentaire empty$
- X { "" }
- X { "\ifx\commentaire\undefined\else\begin{commentaire} "
- X commentaire
- X * " \end{commentaire}\fi " *
- X }
- X if$
- X}
- X
- XFUNCTION {annotebib.format.annote}
- X{ annote empty$
- X { "" }
- X { "\ifx\annote\undefined\else\begin{annote} "
- X annote
- X * " \end{annote}\fi " *
- X }
- X if$
- X}
- X
- XFUNCTION {fin.entry}
- X{ add.period$
- X write$
- X newline$
- X annotebib.format.commentaire write$
- X annotebib.format.annote write$
- X}
- X
- XFUNCTION {new.block}
- X{ output.state before.all =
- X 'skip$
- X { after.block 'output.state := }
- X if$
- X}
- X
- XFUNCTION {new.sentence}
- X{ output.state after.block =
- X 'skip$
- X { output.state before.all =
- X 'skip$
- X { after.sentence 'output.state := }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {not}
- X{ { #0 }
- X { #1 }
- X if$
- X}
- X
- XFUNCTION {and}
- X{ 'skip$
- X { pop$ #0 }
- X if$
- X}
- X
- XFUNCTION {or}
- X{ { pop$ #1 }
- X 'skip$
- X if$
- X}
- X
- XFUNCTION {new.block.checkb}
- X{ empty$
- X swap$ empty$
- X and
- X 'skip$
- X 'new.block
- X if$
- X}
- X
- XFUNCTION {field.or.null}
- X{ duplicate$ empty$
- X { pop$ "" }
- X 'skip$
- X if$
- X}
- X
- XFUNCTION {emphasize}
- X{ duplicate$ empty$
- X { pop$ "" }
- X { "{\em " swap$ * "}" * }
- X if$
- X}
- X
- XINTEGERS { nameptr namesleft numnames }
- X
- XFUNCTION {format.names}
- X{ 's :=
- X #1 'nameptr :=
- X s num.names$ 'numnames :=
- X numnames 'namesleft :=
- X { namesleft #0 > }
- X { s nameptr "{vv~}{ll}{, jj}{, f.}" format.name$ 't := % last name first
- X nameptr #1 >
- X { namesleft #1 >
- X { ", " * t * }
- X { numnames #2 >
- X { "," * }
- X 'skip$
- X if$
- X t "others" =
- X { " et~al." * }
- X { " and " * t * }
- X if$
- X }
- X if$
- X }
- X 't
- X if$
- X nameptr #1 + 'nameptr :=
- X namesleft #1 - 'namesleft :=
- X }
- X while$
- X}
- X
- XFUNCTION {format.authors}
- X{ author empty$
- X { "" }
- X { author format.names }
- X if$
- X}
- X
- XFUNCTION {format.key} % this function is just for apalike
- X{ empty$
- X { key field.or.null }
- X { "" }
- X if$
- X}
- X
- XFUNCTION {format.editors}
- X{ editor empty$
- X { "" }
- X { editor format.names
- X editor num.names$ #1 >
- X { ", editors" * }
- X { ", editor" * }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {format.title}
- X{ title empty$
- X { "" }
- X { title "t" change.case$ }
- X if$
- X}
- X
- XFUNCTION {n.dashify}
- X{ 't :=
- X ""
- X { t empty$ not }
- X { t #1 #1 substring$ "-" =
- X { t #1 #2 substring$ "--" = not
- X { "--" *
- X t #2 global.max$ substring$ 't :=
- X }
- X { { t #1 #1 substring$ "-" = }
- X { "-" *
- X t #2 global.max$ substring$ 't :=
- X }
- X while$
- X }
- X if$
- X }
- X { t #1 #1 substring$ *
- X t #2 global.max$ substring$ 't :=
- X }
- X if$
- X }
- X while$
- X}
- X
- XFUNCTION {format.btitle}
- X{ title emphasize
- X}
- X
- XFUNCTION {tie.or.space.connect}
- X{ duplicate$ text.length$ #3 <
- X { "~" }
- X { " " }
- X if$
- X swap$ * *
- X}
- X
- XFUNCTION {either.or.check}
- X{ empty$
- X 'pop$
- X { "can't use both " swap$ * " fields in " * cite$ * warning$ }
- X if$
- X}
- X
- XFUNCTION {format.bvolume}
- X{ volume empty$
- X { "" }
- X { "volume" volume tie.or.space.connect
- X series empty$
- X 'skip$
- X { " of " * series emphasize * }
- X if$
- X "volume and number" number either.or.check
- X }
- X if$
- X}
- X
- XFUNCTION {format.number.series}
- X{ volume empty$
- X { number empty$
- X { series field.or.null }
- X { output.state mid.sentence =
- X { "number" }
- X { "Number" }
- X if$
- X number tie.or.space.connect
- X series empty$
- X { "there's a number but no series in " cite$ * warning$ }
- X { " in " * series * }
- X if$
- X }
- X if$
- X }
- X { "" }
- X if$
- X}
- X
- XFUNCTION {format.edition}
- X{ edition empty$
- X { "" }
- X { output.state mid.sentence =
- X { edition "l" change.case$ " edition" * }
- X { edition "t" change.case$ " edition" * }
- X if$
- X }
- X if$
- X}
- X
- XINTEGERS { multiresult }
- X
- XFUNCTION {multi.page.check}
- X{ 't :=
- X #0 'multiresult :=
- X { multiresult not
- X t empty$ not
- X and
- X }
- X { t #1 #1 substring$
- X duplicate$ "-" =
- X swap$ duplicate$ "," =
- X swap$ "+" =
- X or or
- X { #1 'multiresult := }
- X { t #2 global.max$ substring$ 't := }
- X if$
- X }
- X while$
- X multiresult
- X}
- X
- XFUNCTION {format.pages}
- X{ pages empty$
- X { "" }
- X { pages multi.page.check
- X { "pages" pages n.dashify tie.or.space.connect }
- X { "page" pages tie.or.space.connect }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {format.vol.num.pages}
- X{ volume field.or.null
- X number empty$
- X 'skip$
- X { "(" number * ")" * *
- X volume empty$
- X { "there's a number but no volume in " cite$ * warning$ }
- X 'skip$
- X if$
- X }
- X if$
- X pages empty$
- X 'skip$
- X { duplicate$ empty$
- X { pop$ format.pages }
- X { ":" * pages n.dashify * }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {format.chapter.pages}
- X{ chapter empty$
- X 'format.pages
- X { type empty$
- X { "chapter" }
- X { type "l" change.case$ }
- X if$
- X chapter tie.or.space.connect
- X pages empty$
- X 'skip$
- X { ", " * format.pages * }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {format.in.ed.booktitle}
- X{ booktitle empty$
- X { "" }
- X { editor empty$
- X { "In " booktitle emphasize * }
- X { "In " format.editors * ", " * booktitle emphasize * }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {format.thesis.type}
- X{ type empty$
- X 'skip$
- X { pop$
- X type "t" change.case$
- X }
- X if$
- X}
- X
- XFUNCTION {format.tr.number}
- X{ type empty$
- X { "Technical Report" }
- X 'type
- X if$
- X number empty$
- X { "t" change.case$ }
- X { number tie.or.space.connect }
- X if$
- X}
- X
- XFUNCTION {format.article.crossref}
- X{ "In" % this is for apalike
- X " \cite{" * crossref * "}" *
- X}
- X
- XFUNCTION {format.book.crossref}
- X{ volume empty$
- X { "empty volume in " cite$ * "'s crossref of " * crossref * warning$
- X "In "
- X }
- X { "Volume" volume tie.or.space.connect
- X " of " *
- X }
- X if$
- X "\cite{" * crossref * "}" * % this is for apalike
- X}
- X
- XFUNCTION {format.incoll.inproc.crossref}
- X{ "In" % this is for apalike
- X " \cite{" * crossref * "}" *
- X}
- X
- XFUNCTION {article}
- X{ output.bibitem
- X format.authors "author" output.check
- X author format.key output % special for
- X output.year.check % apalike
- X new.block
- X format.title "title" output.check
- X new.block
- X crossref missing$
- X { journal emphasize "journal" output.check
- X format.vol.num.pages output
- X }
- X { format.article.crossref output.nonnull
- X format.pages output
- X }
- X if$
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {book}
- X{ output.bibitem
- X author empty$
- X { format.editors "author and editor" output.check
- X editor format.key output
- X }
- X { format.authors output.nonnull
- X crossref missing$
- X { "author and editor" editor either.or.check }
- X 'skip$
- X if$
- X }
- X if$
- X output.year.check % special for apalike
- X new.block
- X format.btitle "title" output.check
- X crossref missing$
- X { format.bvolume output
- X new.block
- X format.number.series output
- X new.sentence
- X publisher "publisher" output.check
- X address output
- X }
- X { new.block
- X format.book.crossref output.nonnull
- X }
- X if$
- X format.edition output
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {booklet}
- X{ output.bibitem
- X format.authors output
- X author format.key output % special for
- X output.year.check % apalike
- X new.block
- X format.title "title" output.check
- X new.block
- X howpublished output
- X address output
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {inbook}
- X{ output.bibitem
- X author empty$
- X { format.editors "author and editor" output.check
- X editor format.key output
- X }
- X { format.authors output.nonnull
- X crossref missing$
- X { "author and editor" editor either.or.check }
- X 'skip$
- X if$
- X }
- X if$
- X output.year.check % special for apalike
- X new.block
- X format.btitle "title" output.check
- X crossref missing$
- X { format.bvolume output
- X format.chapter.pages "chapter and pages" output.check
- X new.block
- X format.number.series output
- X new.sentence
- X publisher "publisher" output.check
- X address output
- X }
- X { format.chapter.pages "chapter and pages" output.check
- X new.block
- X format.book.crossref output.nonnull
- X }
- X if$
- X format.edition output
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {incollection}
- X{ output.bibitem
- X format.authors "author" output.check
- X author format.key output % special for
- X output.year.check % apalike
- X new.block
- X format.title "title" output.check
- X new.block
- X crossref missing$
- X { format.in.ed.booktitle "booktitle" output.check
- X format.bvolume output
- X format.number.series output
- X format.chapter.pages output
- X new.sentence
- X publisher "publisher" output.check
- X address output
- X format.edition output
- X }
- X { format.incoll.inproc.crossref output.nonnull
- X format.chapter.pages output
- X }
- X if$
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {inproceedings}
- X{ output.bibitem
- X format.authors "author" output.check
- X author format.key output % special for
- X output.year.check % apalike
- X new.block
- X format.title "title" output.check
- X new.block
- X crossref missing$
- X { format.in.ed.booktitle "booktitle" output.check
- X format.bvolume output
- X format.number.series output
- X format.pages output
- X address output % for apalike
- X new.sentence % there's no year
- X organization output % here so things
- X publisher output % are simpler
- X }
- X { format.incoll.inproc.crossref output.nonnull
- X format.pages output
- X }
- X if$
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {conference} { inproceedings }
- X
- XFUNCTION {manual}
- X{ output.bibitem
- X format.authors output
- X author format.key output % special for
- X output.year.check % apalike
- X new.block
- X format.btitle "title" output.check
- X organization address new.block.checkb
- X organization output
- X address output
- X format.edition output
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {mastersthesis}
- X{ output.bibitem
- X format.authors "author" output.check
- X author format.key output % special for
- X output.year.check % apalike
- X new.block
- X format.title "title" output.check
- X new.block
- X "Master's thesis" format.thesis.type output.nonnull
- X school "school" output.check
- X address output
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {misc}
- X{ output.bibitem
- X format.authors output
- X author format.key output % special for
- X output.year.check % apalike
- X new.block
- X format.title output
- X new.block
- X howpublished output
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {phdthesis}
- X{ output.bibitem
- X format.authors "author" output.check
- X author format.key output % special for
- X output.year.check % apalike
- X new.block
- X format.btitle "title" output.check
- X new.block
- X "PhD thesis" format.thesis.type output.nonnull
- X school "school" output.check
- X address output
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {proceedings}
- X{ output.bibitem
- X format.editors output
- X editor format.key output % special for
- X output.year.check % apalike
- X new.block
- X format.btitle "title" output.check
- X format.bvolume output
- X format.number.series output
- X address output % for apalike
- X new.sentence % we always output
- X organization output % a nonempty organization
- X publisher output % here
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {techreport}
- X{ output.bibitem
- X format.authors "author" output.check
- X author format.key output % special for
- X output.year.check % apalike
- X new.block
- X format.title "title" output.check
- X new.block
- X format.tr.number output.nonnull
- X institution "institution" output.check
- X address output
- X new.block
- X note output
- X fin.entry
- X}
- X
- XFUNCTION {unpublished}
- X{ output.bibitem
- X format.authors "author" output.check
- X author format.key output % special for
- X output.year.check % apalike
- X new.block
- X format.title "title" output.check
- X new.block
- X note "note" output.check
- X fin.entry
- X}
- X
- XFUNCTION {default.type} { misc }
- X
- XMACRO {jan} {"January"}
- X
- XMACRO {feb} {"February"}
- X
- XMACRO {mar} {"March"}
- X
- XMACRO {apr} {"April"}
- X
- XMACRO {may} {"May"}
- X
- XMACRO {jun} {"June"}
- X
- XMACRO {jul} {"July"}
- X
- XMACRO {aug} {"August"}
- X
- XMACRO {sep} {"September"}
- X
- XMACRO {oct} {"October"}
- X
- XMACRO {nov} {"November"}
- X
- XMACRO {dec} {"December"}
- X
- XMACRO {acmcs} {"ACM Computing Surveys"}
- X
- XMACRO {acta} {"Acta Informatica"}
- X
- XMACRO {cacm} {"Communications of the ACM"}
- X
- XMACRO {ibmjrd} {"IBM Journal of Research and Development"}
- X
- XMACRO {ibmsj} {"IBM Systems Journal"}
- X
- XMACRO {ieeese} {"IEEE Transactions on Software Engineering"}
- X
- XMACRO {ieeetc} {"IEEE Transactions on Computers"}
- X
- XMACRO {ieeetcad}
- X {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}
- X
- XMACRO {ipl} {"Information Processing Letters"}
- X
- XMACRO {jacm} {"Journal of the ACM"}
- X
- XMACRO {jcss} {"Journal of Computer and System Sciences"}
- X
- XMACRO {scp} {"Science of Computer Programming"}
- X
- XMACRO {sicomp} {"SIAM Journal on Computing"}
- X
- XMACRO {tocs} {"ACM Transactions on Computer Systems"}
- X
- XMACRO {tods} {"ACM Transactions on Database Systems"}
- X
- XMACRO {tog} {"ACM Transactions on Graphics"}
- X
- XMACRO {toms} {"ACM Transactions on Mathematical Software"}
- X
- XMACRO {toois} {"ACM Transactions on Office Information Systems"}
- X
- XMACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}
- X
- XMACRO {tcs} {"Theoretical Computer Science"}
- X
- XREAD
- X
- XFUNCTION {sortify}
- X{ purify$
- X "l" change.case$
- X}
- X
- XINTEGERS { len }
- X
- XFUNCTION {chop.word}
- X{ 's :=
- X 'len :=
- X s #1 len substring$ =
- X { s len #1 + global.max$ substring$ }
- X 's
- X if$
- X}
- X
- X% There are three apalike cases: one person (Jones),
- X% two (Jones and de~Bruijn), and more (Jones et~al.).
- X% This function is much like format.crossref.editors.
- X%
- XFUNCTION {format.lab.names}
- X{ 's :=
- X s #1 "{vv~}{ll}" format.name$
- X s num.names$ duplicate$
- X #2 >
- X { pop$ " et~al." * }
- X { #2 <
- X 'skip$
- X { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
- X { " et~al." * }
- X { " and " * s #2 "{vv~}{ll}" format.name$ * }
- X if$
- X }
- X if$
- X }
- X if$
- X}
- X
- XFUNCTION {author.key.label}
- X{ author empty$
- X { key empty$
- X { cite$ #1 #3 substring$ }
- X 'key % apalike uses the whole key
- X if$
- X }
- X { author format.lab.names }
- X if$
- X}
- X
- XFUNCTION {author.editor.key.label}
- X{ author empty$
- X { editor empty$
- X { key empty$
- X { cite$ #1 #3 substring$ }
- X 'key % apalike uses the whole key
- X if$
- X }
- X { editor format.lab.names }
- X if$
- X }
- X { author format.lab.names }
- X if$
- X}
- X
- XFUNCTION {editor.key.label}
- X{ editor empty$
- X { key empty$
- X { cite$ #1 #3 substring$ }
- X 'key % apalike uses the whole key, no organization
- X if$
- X }
- X { editor format.lab.names }
- X if$
- X}
- X
- XFUNCTION {calc.label}
- X{ type$ "book" =
- X type$ "inbook" =
- X or
- X 'author.editor.key.label
- X { type$ "proceedings" =
- X 'editor.key.label % apalike ignores organization
- X 'author.key.label % for labeling and sorting
- X if$
- X }
- X if$
- X ", " % these three lines are
- X * % for apalike, which
- X year field.or.null purify$ #-1 #4 substring$ % uses all four digits
- X *
- X 'label :=
- X}
- X
- XFUNCTION {sort.format.names}
- X{ 's :=
- X #1 'nameptr :=
- X ""
- X s num.names$ 'numnames :=
- X numnames 'namesleft :=
- X { namesleft #0 > }
- X { nameptr #1 >
- X { " " * }
- X 'skip$
- X if$ % apalike uses initials
- X s nameptr "{vv{ } }{ll{ }}{ f{ }}{ jj{ }}" format.name$ 't := % <= here
- X nameptr numnames = t "others" = and
- X { "et al" * }
- X { t sortify * }
- X if$
- X nameptr #1 + 'nameptr :=
- X namesleft #1 - 'namesleft :=
- X }
- X while$
- X}
- X
- XFUNCTION {sort.format.title}
- X{ 't :=
- X "A " #2
- X "An " #3
- X "The " #4 t chop.word
- X chop.word
- X chop.word
- X sortify
- X #1 global.max$ substring$
- X}
- X
- XFUNCTION {author.sort}
- X{ author empty$
- X { key empty$
- X { "to sort, need author or key in " cite$ * warning$
- X ""
- X }
- X { key sortify }
- X if$
- X }
- X { author sort.format.names }
- X if$
- X}
- X
- XFUNCTION {author.editor.sort}
- X{ author empty$
- X { editor empty$
- X { key empty$
- X { "to sort, need author, editor, or key in " cite$ * warning$
- X ""
- X }
- X { key sortify }
- X if$
- X }
- X { editor sort.format.names }
- X if$
- X }
- X { author sort.format.names }
- X if$
- X}
- X
- XFUNCTION {editor.sort}
- X{ editor empty$
- X { key empty$
- X { "to sort, need editor or key in " cite$ * warning$
- X ""
- X }
- X { key sortify }
- X if$
- X }
- X { editor sort.format.names }
- X if$
- X}
- X
- X% apalike uses two sorting passes; the first one sets the
- X% labels so that the `a's, `b's, etc. can be computed;
- X% the second pass puts the references in "correct" order.
- X% The presort function is for the first pass. It computes
- X% label, sort.label, and title, and then concatenates.
- XFUNCTION {presort}
- X{ calc.label
- X label sortify
- X " "
- X *
- X type$ "book" =
- X type$ "inbook" =
- X or
- X 'author.editor.sort
- X { type$ "proceedings" =
- X 'editor.sort
- X 'author.sort
- X if$
- X }
- X if$
- X #1 entry.max$ substring$ % for
- X 'sort.label := % apalike
- X sort.label % style
- X *
- X " "
- X *
- X title field.or.null
- X sort.format.title
- X *
- X #1 entry.max$ substring$
- X 'sort.key$ :=
- X}
- X
- XITERATE {presort}
- X
- XSORT % by label, sort.label, title---for final label calculation
- X
- XSTRINGS { last.label next.extra } % apalike labels are only for the text;
- X
- XINTEGERS { last.extra.num } % there are none in the bibliography
- X
- XFUNCTION {initialize.extra.label.stuff} % and hence there is no `longest.label'
- X{ #0 int.to.chr$ 'last.label :=
- X "" 'next.extra :=
- X #0 'last.extra.num :=
- X}
- X
- XFUNCTION {forward.pass}
- X{ last.label label =
- X { last.extra.num #1 + 'last.extra.num :=
- X last.extra.num int.to.chr$ 'extra.label :=
- X }
- X { "a" chr.to.int$ 'last.extra.num :=
- X "" 'extra.label :=
- X label 'last.label :=
- X }
- X if$
- X}
- X
- XFUNCTION {reverse.pass}
- X{ next.extra "b" =
- X { "a" 'extra.label := }
- X 'skip$
- X if$
- X label extra.label * 'label :=
- X extra.label 'next.extra :=
- X}
- X
- XEXECUTE {initialize.extra.label.stuff}
- X
- XITERATE {forward.pass}
- X
- XREVERSE {reverse.pass}
- X
- X% Now that the label is right we sort for real,
- X% on sort.label then year then title. This is
- X% for the second sorting pass.
- XFUNCTION {bib.sort.order}
- X{ sort.label
- X " "
- X *
- X year field.or.null sortify
- X *
- X " "
- X *
- X title field.or.null
- X sort.format.title
- X *
- X #1 entry.max$ substring$
- X 'sort.key$ :=
- X}
- X
- XITERATE {bib.sort.order}
- X
- XSORT % by sort.label, year, title---giving final bibliography order
- X
- XFUNCTION {begin.bib}
- X{ preamble$ empty$ % no \etalchar in apalike
- X 'skip$
- X { preamble$ write$ newline$ }
- X if$
- X "\begin{thebibliography}{}" write$ newline$ % no labels in apalike
- X}
- X
- XEXECUTE {begin.bib}
- X
- XEXECUTE {init.state.consts}
- X
- XITERATE {call.type$}
- X
- XFUNCTION {end.bib}
- X{ newline$
- X "\end{thebibliography}" write$ newline$
- X}
- X
- XEXECUTE {end.bib}
- END_OF_FILE
- if test 22921 -ne `wc -c <'apalike.bst'`; then
- echo shar: \"'apalike.bst'\" unpacked with wrong size!
- fi
- # end of 'apalike.bst'
- fi
- echo shar: End of shell archive.
- exit 0
-
- exit 0 # Just in case...
-