
b@1641: %%
b@1641: %% IEEEtran.bst
b@1641: %% BibTeX Bibliography Style file for IEEE Journals and Conferences (unsorted)
b@1641: %% Version 1.12 (2007/01/11)
b@1641: %% 
b@1641: %% Copyright (c) 2003-2007 Michael Shell
b@1641: %% 
b@1641: %% Original starting code base and algorithms obtained from the output of
b@1641: %% Patrick W. Daly's makebst package as well as from prior versions of
b@1641: %% IEEE BibTeX styles:
b@1641: %% 
b@1641: %% 1. Howard Trickey and Oren Patashnik's ieeetr.bst  (1985/1988)
b@1641: %% 2. Silvano Balemi and Richard H. Roy's IEEEbib.bst (1993)
b@1641: %% 
b@1641: %% Support sites:
b@1641: %% http://www.michaelshell.org/tex/ieeetran/
b@1641: %% http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/
b@1641: %% and/or
b@1641: %% http://www.ieee.org/
b@1641: %% 
b@1641: %% For use with BibTeX version 0.99a or later
b@1641: %%
b@1641: %% This is a numerical citation style.
b@1641: %% 
b@1641: %%*************************************************************************
b@1641: %% Legal Notice:
b@1641: %% This code is offered as-is without any warranty either expressed or
b@1641: %% implied; without even the implied warranty of MERCHANTABILITY or
b@1641: %% FITNESS FOR A PARTICULAR PURPOSE! 
b@1641: %% User assumes all risk.
b@1641: %% In no event shall IEEE or any contributor to this code be liable for
b@1641: %% any damages or losses, including, but not limited to, incidental,
b@1641: %% consequential, or any other damages, resulting from the use or misuse
b@1641: %% of any information contained here.
b@1641: %%
b@1641: %% All comments are the opinions of their respective authors and are not
b@1641: %% necessarily endorsed by the IEEE.
b@1641: %%
b@1641: %% This work is distributed under the LaTeX Project Public License (LPPL)
b@1641: %% ( http://www.latex-project.org/ ) version 1.3, and may be freely used,
b@1641: %% distributed and modified. A copy of the LPPL, version 1.3, is included
b@1641: %% in the base LaTeX documentation of all distributions of LaTeX released
b@1641: %% 2003/12/01 or later.
b@1641: %% Retain all contribution notices and credits.
b@1641: %% ** Modified files should be clearly indicated as such, including  **
b@1641: %% ** renaming them and changing author support contact information. **
b@1641: %%
b@1641: %% File list of work: IEEEabrv.bib, IEEEfull.bib, IEEEexample.bib,
b@1641: %%                    IEEEtran.bst, IEEEtranS.bst, IEEEtranSA.bst,
b@1641: %%                    IEEEtranN.bst, IEEEtranSN.bst, IEEEtran_bst_HOWTO.pdf
b@1641: %%*************************************************************************
b@1641: %
b@1641: %
b@1641: % Changelog:
b@1641: %
b@1641: % 1.00 (2002/08/13) Initial release
b@1641: %
b@1641: % 1.10 (2002/09/27)
b@1641: %  1. Corrected minor bug for improperly formed warning message when a
b@1641: %     book was not given a title. Thanks to Ming Kin Lai for reporting this.
b@1641: %  2. Added support for CTLname_format_string and CTLname_latex_cmd fields
b@1641: %     in the BST control entry type.
b@1641: %
b@1641: % 1.11 (2003/04/02)
b@1641: %  1. Fixed bug with URLs containing underscores when using url.sty. Thanks
b@1641: %     to Ming Kin Lai for reporting this.
b@1641: %
b@1641: % 1.12 (2007/01/11)
b@1641: %  1. Fixed bug with unwanted comma before "et al." when an entry contained
b@1641: %     more than two author names. Thanks to Pallav Gupta for reporting this.
b@1641: %  2. Fixed bug with anomalous closing quote in tech reports that have a
b@1641: %     type, but without a number or address. Thanks to Mehrdad Mirreza for
b@1641: %     reporting this.
b@1641: %  3. Use braces in \providecommand in begin.bib to better support
b@1641: %     latex2html. TeX style length assignments OK with recent versions
b@1641: %     of latex2html - 1.71 (2002/2/1) or later is strongly recommended.
b@1641: %     Use of the language field still causes trouble with latex2html.
b@1641: %     Thanks to Federico Beffa for reporting this.
b@1641: %  4. Added IEEEtran.bst ID and version comment string to .bbl output.
b@1641: %  5. Provide a \BIBdecl hook that allows the user to execute commands
b@1641: %     just prior to the first entry.
b@1641: %  6. Use default urlstyle (is using url.sty) of "same" rather than rm to
b@1641: %     better work with a wider variety of bibliography styles.
b@1641: %  7. Changed month abbreviations from Sept., July and June to Sep., Jul.,
b@1641: %     and Jun., respectively, as IEEE now does. Thanks to Moritz Borgmann
b@1641: %     for reporting this.
b@1641: %  8. Control entry types should not be considered when calculating longest
b@1641: %     label width.
b@1641: %  9. Added alias www for electronic/online.
b@1641: % 10. Added CTLname_url_prefix control entry type.
b@1641: 
b@1641: 
b@1641: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
b@1641: %% DEFAULTS FOR THE CONTROLS OF THE BST STYLE %%
b@1641: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
b@1641: 
b@1641: % These are the defaults for the user adjustable controls. The values used
b@1641: % here can be overridden by the user via IEEEtranBSTCTL entry type.
b@1641: 
b@1641: % NOTE: The recommended LaTeX command to invoke a control entry type is:
b@1641: % 
b@1641: %\makeatletter
b@1641: %\def\bstctlcite{\@ifnextchar[{\@bstctlcite}{\@bstctlcite[@auxout]}}
b@1641: %\def\@bstctlcite[#1]#2{\@bsphack
b@1641: %  \@for\@citeb:=#2\do{%
b@1641: %    \edef\@citeb{\expandafter\@firstofone\@citeb}%
b@1641: %    \if@filesw\immediate\write\csname #1\endcsname{\string\citation{\@citeb}}\fi}%
b@1641: %  \@esphack}
b@1641: %\makeatother
b@1641: %
b@1641: % It is called at the start of the document, before the first \cite, like:
b@1641: % \bstctlcite{IEEEexample:BSTcontrol}
b@1641: %
b@1641: % IEEEtran.cls V1.6 and later does provide this command.
b@1641: 
b@1641: 
b@1641: 
b@1641: % #0 turns off the display of the number for articles.
b@1641: % #1 enables
b@1641: FUNCTION {default.is.use.number.for.article} { #1 }
b@1641: 
b@1641: 
b@1641: % #0 turns off the display of the paper and type fields in @inproceedings.
b@1641: % #1 enables
b@1641: FUNCTION {default.is.use.paper} { #1 }
b@1641: 
b@1641: 
b@1641: % #0 turns off the forced use of "et al."
b@1641: % #1 enables
b@1641: FUNCTION {default.is.forced.et.al} { #0 }
b@1641: 
b@1641: % The maximum number of names that can be present beyond which an "et al."
b@1641: % usage is forced. Be sure that num.names.shown.with.forced.et.al (below)
b@1641: % is not greater than this value!
b@1641: % Note: There are many instances of references in IEEE journals which have
b@1641: % a very large number of authors as well as instances in which "et al." is
b@1641: % used profusely.
b@1641: FUNCTION {default.max.num.names.before.forced.et.al} { #10 }
b@1641: 
b@1641: % The number of names that will be shown with a forced "et al.".
b@1641: % Must be less than or equal to max.num.names.before.forced.et.al
b@1641: FUNCTION {default.num.names.shown.with.forced.et.al} { #1 }
b@1641: 
b@1641: 
b@1641: % #0 turns off the alternate interword spacing for entries with URLs.
b@1641: % #1 enables
b@1641: FUNCTION {default.is.use.alt.interword.spacing} { #1 }
b@1641: 
b@1641: % If alternate interword spacing for entries with URLs is enabled, this is
b@1641: % the interword spacing stretch factor that will be used. For example, the
b@1641: % default "4" here means that the interword spacing in entries with URLs can
b@1641: % stretch to four times normal. Does not have to be an integer. Note that
b@1641: % the value specified here can be overridden by the user in their LaTeX
b@1641: % code via a command such as: 
b@1641: % "\providecommand\BIBentryALTinterwordstretchfactor{1.5}" in addition to
b@1641: % that via the IEEEtranBSTCTL entry type.
b@1641: FUNCTION {default.ALTinterwordstretchfactor} { "4" }
b@1641: 
b@1641: 
b@1641: % #0 turns off the "dashification" of repeated (i.e., identical to those
b@1641: % of the previous entry) names. IEEE normally does this.
b@1641: % #1 enables
b@1641: FUNCTION {default.is.dash.repeated.names} { #1 }
b@1641: 
b@1641: 
b@1641: % The default name format control string.
b@1641: FUNCTION {default.name.format.string}{ "{f.~}{vv~}{ll}{, jj}" }
b@1641: 
b@1641: 
b@1641: % The default LaTeX font command for the names.
b@1641: FUNCTION {default.name.latex.cmd}{ "" }
b@1641: 
b@1641: 
b@1641: % The default URL prefix.
b@1641: FUNCTION {default.name.url.prefix}{ "[Online]. Available:" }
b@1641: 
b@1641: 
b@1641: % Other controls that cannot be accessed via IEEEtranBSTCTL entry type.
b@1641: 
b@1641: % #0 turns off the terminal startup banner/completed message so as to
b@1641: % operate more quietly.
b@1641: % #1 enables
b@1641: FUNCTION {is.print.banners.to.terminal} { #1 }
b@1641: 
b@1641: 
b@1641: 
b@1641: 
b@1641: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
b@1641: %% FILE VERSION AND BANNER %%
b@1641: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
b@1641: 
b@1641: FUNCTION{bst.file.version} { "1.12" }
b@1641: FUNCTION{bst.file.date} { "2007/01/11" }
b@1641: FUNCTION{bst.file.website} { "http://www.michaelshell.org/tex/ieeetran/bibtex/" }
b@1641: 
b@1641: FUNCTION {banner.message}
b@1641: { is.print.banners.to.terminal
b@1641:      { "-- IEEEtran.bst version" " " * bst.file.version *
b@1641:        " (" * bst.file.date * ") " * "by Michael Shell." *
b@1641:        top$
b@1641:        "-- " bst.file.website *
b@1641:        top$
b@1641:        "-- See the " quote$ * "IEEEtran_bst_HOWTO.pdf" * quote$ * " manual for usage information." *
b@1641:        top$
b@1641:      }
b@1641:      { skip$ }
b@1641:    if$
b@1641: }
b@1641: 
b@1641: FUNCTION {completed.message}
b@1641: { is.print.banners.to.terminal
b@1641:      { ""
b@1641:        top$
b@1641:        "Done."
b@1641:        top$
b@1641:      }
b@1641:      { skip$ }
b@1641:    if$
b@1641: }
b@1641: 
b@1641: 
b@1641: 
b@1641: 
b@1641: %%%%%%%%%%%%%%%%%%%%%%
b@1641: %% STRING CONSTANTS %%
b@1641: %%%%%%%%%%%%%%%%%%%%%%
b@1641: 
b@1641: FUNCTION {bbl.and}{ "and" }
b@1641: FUNCTION {bbl.etal}{ "et~al." }
b@1641: FUNCTION {bbl.editors}{ "eds." }
b@1641: FUNCTION {bbl.editor}{ "ed." }
b@1641: FUNCTION {bbl.edition}{ "ed." }
b@1641: FUNCTION {bbl.volume}{ "vol." }
b@1641: FUNCTION {bbl.of}{ "of" }
b@1641: FUNCTION {bbl.number}{ "no." }
b@1641: FUNCTION {bbl.in}{ "in" }
b@1641: FUNCTION {bbl.pages}{ "pp." }
b@1641: FUNCTION {bbl.page}{ "p." }
b@1641: FUNCTION {bbl.chapter}{ "ch." }
b@1641: FUNCTION {bbl.paper}{ "paper" }
b@1641: FUNCTION {bbl.part}{ "pt." }
b@1641: FUNCTION {bbl.patent}{ "Patent" }
b@1641: FUNCTION {bbl.patentUS}{ "U.S." }
b@1641: FUNCTION {bbl.revision}{ "Rev." }
b@1641: FUNCTION {bbl.series}{ "ser." }
b@1641: FUNCTION {bbl.standard}{ "Std." }
b@1641: FUNCTION {bbl.techrep}{ "Tech. Rep." }
b@1641: FUNCTION {bbl.mthesis}{ "Master's thesis" }
b@1641: FUNCTION {bbl.phdthesis}{ "Ph.D. dissertation" }
b@1641: FUNCTION {bbl.st}{ "st" }
b@1641: FUNCTION {bbl.nd}{ "nd" }
b@1641: FUNCTION {bbl.rd}{ "rd" }
b@1641: FUNCTION {bbl.th}{ "th" }
b@1641: 
b@1641: 
b@1641: % This is the LaTeX spacer that is used when a larger than normal space
b@1641: % is called for (such as just before the address:publisher).
b@1641: FUNCTION {large.space} { "\hskip 1em plus 0.5em minus 0.4em\relax " }
b@1641: 
b@1641: % The LaTeX code for dashes that are used to represent repeated names.
b@1641: % Note: Some older IEEE journals used something like
b@1641: % "\rule{0.275in}{0.5pt}\," which is fairly thick and runs right along
b@1641: % the baseline. However, IEEE now uses a thinner, above baseline,
b@1641: % six dash long sequence.
b@1641: FUNCTION {repeated.name.dashes} { "------" }
b@1641: 
b@1641: 
b@1641: 
b@1641: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
b@1641: %% PREDEFINED STRING MACROS %%
b@1641: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
b@1641: 
b@1641: MACRO {jan} {"Jan."}
b@1641: MACRO {feb} {"Feb."}
b@1641: MACRO {mar} {"Mar."}
b@1641: MACRO {apr} {"Apr."}
b@1641: MACRO {may} {"May"}
b@1641: MACRO {jun} {"Jun."}
b@1641: MACRO {jul} {"Jul."}
b@1641: MACRO {aug} {"Aug."}
b@1641: MACRO {sep} {"Sep."}
b@1641: MACRO {oct} {"Oct."}
b@1641: MACRO {nov} {"Nov."}
b@1641: MACRO {dec} {"Dec."}
b@1641: 
b@1641: 
b@1641: 
b@1641: %%%%%%%%%%%%%%%%%%
b@1641: %% ENTRY FIELDS %%
b@1641: %%%%%%%%%%%%%%%%%%
b@1641: 
b@1641: ENTRY
b@1641:   { address
b@1641:     assignee
b@1641:     author
b@1641:     booktitle
b@1641:     chapter
b@1641:     day
b@1641:     dayfiled
b@1641:     edition
b@1641:     editor
b@1641:     howpublished
b@1641:     institution
b@1641:     intype
b@1641:     journal
b@1641:     key
b@1641:     language
b@1641:     month
b@1641:     monthfiled
b@1641:     nationality
b@1641:     note
b@1641:     number
b@1641:     organization
b@1641:     pages
b@1641:     paper
b@1641:     publisher
b@1641:     school
b@1641:     series
b@1641:     revision
b@1641:     title
b@1641:     type
b@1641:     url
b@1641:     volume
b@1641:     year
b@1641:     yearfiled
b@1641:     CTLuse_article_number
b@1641:     CTLuse_paper
b@1641:     CTLuse_forced_etal
b@1641:     CTLmax_names_forced_etal
b@1641:     CTLnames_show_etal
b@1641:     CTLuse_alt_spacing
b@1641:     CTLalt_stretch_factor
b@1641:     CTLdash_repeated_names
b@1641:     CTLname_format_string
b@1641:     CTLname_latex_cmd
b@1641:     CTLname_url_prefix
b@1641:   }
b@1641:   {}
b@1641:   { label }
b@1641: 
b@1641: 
b@1641: 
b@1641: 
b@1641: %%%%%%%%%%%%%%%%%%%%%%%
b@1641: %% INTEGER VARIABLES %%
b@1641: %%%%%%%%%%%%%%%%%%%%%%%
b@1641: 
b@1641: INTEGERS { prev.status.punct this.status.punct punct.std
b@1641:            punct.no punct.comma punct.period 
b@1641:            prev.status.space this.status.space space.std
b@1641:            space.no space.normal space.large
b@1641:            prev.status.quote this.status.quote quote.std
b@1641:            quote.no quote.close
b@1641:            prev.status.nline this.status.nline nline.std
b@1641:            nline.no nline.newblock 
b@1641:            status.cap cap.std
b@1641:            cap.no cap.yes}
b@1641: 
b@1641: INTEGERS { longest.label.width multiresult nameptr namesleft number.label numnames }
b@1641: 
b@1641: INTEGERS { is.use.number.for.article
b@1641:            is.use.paper
b@1641:            is.forced.et.al
b@1641:            max.num.names.before.forced.et.al
b@1641:            num.names.shown.with.forced.et.al
b@1641:            is.use.alt.interword.spacing
b@1641:            is.dash.repeated.names}
b@1641: 
b@1641: 
b@1641: %%%%%%%%%%%%%%%%%%%%%%
b@1641: %% STRING VARIABLES %%
b@1641: %%%%%%%%%%%%%%%%%%%%%%
b@1641: 
b@1641: STRINGS { bibinfo
b@1641:           longest.label
b@1641:           oldname
b@1641:           s
b@1641:           t
b@1641:           ALTinterwordstretchfactor
b@1641:           name.format.string
b@1641:           name.latex.cmd
b@1641:           name.url.prefix}
b@1641: 
b@1641: 
b@1641: 
b@1641: 
b@1641: %%%%%%%%%%%%%%%%%%%%%%%%%
b@1641: %% LOW LEVEL FUNCTIONS %%
b@1641: %%%%%%%%%%%%%%%%%%%%%%%%%
b@1641: 
b@1641: FUNCTION {initialize.controls}
b@1641: { default.is.use.number.for.article 'is.use.number.for.article :=
b@1641:   default.is.use.paper 'is.use.paper :=
b@1641:   default.is.forced.et.al 'is.forced.et.al :=
b@1641:   default.max.num.names.before.forced.et.al 'max.num.names.before.forced.et.al :=
b@1641:   default.num.names.shown.with.forced.et.al 'num.names.shown.with.forced.et.al :=
b@1641:   default.is.use.alt.interword.spacing 'is.use.alt.interword.spacing :=
b@1641:   default.is.dash.repeated.names 'is.dash.repeated.names :=
b@1641:   default.ALTinterwordstretchfactor 'ALTinterwordstretchfactor :=
b@1641:   default.name.format.string 'name.format.string :=
b@1641:   default.name.latex.cmd 'name.latex.cmd :=
b@1641:   default.name.url.prefix 'name.url.prefix :=
b@1641: }
b@1641: 
b@1641: 
b@1641: % This IEEEtran.bst features a very powerful and flexible mechanism for
b@1641: % controlling the capitalization, punctuation, spacing, quotation, and
b@1641: % newlines of the formatted entry fields. (Note: IEEEtran.bst does not need
b@1641: % or use the newline/newblock feature, but it has been implemented for
b@1641: % possible future use.) The output states of IEEEtran.bst consist of
b@1641: % multiple independent attributes and, as such, can be thought of as being
b@1641: % vectors, rather than the simple scalar values ("before.all", 
b@1641: % "mid.sentence", etc.) used in most other .bst files.
b@1641: % 
b@1641: % The more flexible and complex design used here was motivated in part by
b@1641: % IEEE's rather unusual bibliography style. For example, IEEE ends the
b@1641: % previous field item with a period and large space prior to the publisher
b@1641: % address; the @electronic entry types use periods as inter-item punctuation
b@1641: % rather than the commas used by the other entry types; and URLs are never
b@1641: % followed by periods even though they are the last item in the entry.
b@1641: % Although it is possible to accommodate these features with the conventional
b@1641: % output state system, the seemingly endless exceptions make for convoluted,
b@1641: % unreliable and difficult to maintain code.
b@1641: %
b@1641: % IEEEtran.bst's output state system can be easily understood via a simple
b@1641: % illustration of two most recently formatted entry fields (on the stack):
b@1641: %
b@1641: %               CURRENT_ITEM
b@1641: %               "PREVIOUS_ITEM
b@1641: %
b@1641: % which, in this example, is to eventually appear in the bibliography as:
b@1641: % 
b@1641: %               "PREVIOUS_ITEM," CURRENT_ITEM
b@1641: %
b@1641: % It is the job of the output routine to take the previous item off of the
b@1641: % stack (while leaving the current item at the top of the stack), apply its
b@1641: % trailing punctuation (including closing quote marks) and spacing, and then
b@1641: % to write the result to BibTeX's output buffer:
b@1641: % 
b@1641: %               "PREVIOUS_ITEM," 
b@1641: % 
b@1641: % Punctuation (and spacing) between items is often determined by both of the
b@1641: % items rather than just the first one. The presence of quotation marks
b@1641: % further complicates the situation because, in standard English, trailing
b@1641: % punctuation marks are supposed to be contained within the quotes.
b@1641: % 
b@1641: % IEEEtran.bst maintains two output state (aka "status") vectors which
b@1641: % correspond to the previous and current (aka "this") items. Each vector
b@1641: % consists of several independent attributes which track punctuation,
b@1641: % spacing, quotation, and newlines. Capitalization status is handled by a
b@1641: % separate scalar because the format routines, not the output routine,
b@1641: % handle capitalization and, therefore, there is no need to maintain the
b@1641: % capitalization attribute for both the "previous" and "this" items.
b@1641: % 
b@1641: % When a format routine adds a new item, it copies the current output status
b@1641: % vector to the previous output status vector and (usually) resets the
b@1641: % current (this) output status vector to a "standard status" vector. Using a
b@1641: % "standard status" vector in this way allows us to redefine what we mean by
b@1641: % "standard status" at the start of each entry handler and reuse the same
b@1641: % format routines under the various inter-item separation schemes. For
b@1641: % example, the standard status vector for the @book entry type may use
b@1641: % commas for item separators, while the @electronic type may use periods,
b@1641: % yet both entry handlers exploit many of the exact same format routines.
b@1641: % 
b@1641: % Because format routines have write access to the output status vector of
b@1641: % the previous item, they can override the punctuation choices of the
b@1641: % previous format routine! Therefore, it becomes trivial to implement rules
b@1641: % such as "Always use a period and a large space before the publisher." By
b@1641: % pushing the generation of the closing quote mark to the output routine, we
b@1641: % avoid all the problems caused by having to close a quote before having all
b@1641: % the information required to determine what the punctuation should be.
b@1641: %
b@1641: % The IEEEtran.bst output state system can easily be expanded if needed.
b@1641: % For instance, it is easy to add a "space.tie" attribute value if the
b@1641: % bibliography rules mandate that two items have to be joined with an
b@1641: % unbreakable space. 
b@1641: 
b@1641: FUNCTION {initialize.status.constants}
b@1641: { #0 'punct.no :=
b@1641:   #1 'punct.comma :=
b@1641:   #2 'punct.period :=
b@1641:   #0 'space.no := 
b@1641:   #1 'space.normal :=
b@1641:   #2 'space.large :=
b@1641:   #0 'quote.no :=
b@1641:   #1 'quote.close :=
b@1641:   #0 'cap.no :=
b@1641:   #1 'cap.yes :=
b@1641:   #0 'nline.no :=
b@1641:   #1 'nline.newblock :=
b@1641: }
b@1641: 
b@1641: FUNCTION {std.status.using.comma}
b@1641: { punct.comma 'punct.std :=
b@1641:   space.normal 'space.std :=
b@1641:   quote.no 'quote.std :=
b@1641:   nline.no 'nline.std :=
b@1641:   cap.no 'cap.std :=
b@1641: }
b@1641: 
b@1641: FUNCTION {std.status.using.period}
b@1641: { punct.period 'punct.std :=
b@1641:   space.normal 'space.std :=
b@1641:   quote.no 'quote.std :=
b@1641:   nline.no 'nline.std :=
b@1641:   cap.yes 'cap.std :=
b@1641: }
b@1641: 
b@1641: FUNCTION {initialize.prev.this.status}
b@1641: { punct.no 'prev.status.punct :=
b@1641:   space.no 'prev.status.space :=
b@1641:   quote.no 'prev.status.quote :=
b@1641:   nline.no 'prev.status.nline :=
b@1641:   punct.no 'this.status.punct :=
b@1641:   space.no 'this.status.space :=
b@1641:   quote.no 'this.status.quote :=
b@1641:   nline.no 'this.status.nline :=
b@1641:   cap.yes 'status.cap :=
b@1641: }
b@1641: 
b@1641: FUNCTION {this.status.std}
b@1641: { punct.std 'this.status.punct :=
b@1641:   space.std 'this.status.space :=
b@1641:   quote.std 'this.status.quote :=
b@1641:   nline.std 'this.status.nline :=
b@1641: }
b@1641: 
b@1641: FUNCTION {cap.status.std}{ cap.std 'status.cap := }
b@1641: 
b@1641: FUNCTION {this.to.prev.status}
b@1641: { this.status.punct 'prev.status.punct :=
b@1641:   this.status.space 'prev.status.space :=
b@1641:   this.status.quote 'prev.status.quote :=
b@1641:   this.status.nline 'prev.status.nline :=
b@1641: }
b@1641: 
b@1641: 
b@1641: FUNCTION {not}
b@1641: {   { #0 }
b@1641:     { #1 }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: FUNCTION {and}
b@1641: {   { skip$ }
b@1641:     { pop$ #0 }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: FUNCTION {or}
b@1641: {   { pop$ #1 }
b@1641:     { skip$ }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: % convert the strings "yes" or "no" to #1 or #0 respectively
b@1641: FUNCTION {yes.no.to.int}
b@1641: { "l" change.case$ duplicate$
b@1641:     "yes" =
b@1641:     { pop$  #1 }
b@1641:     { duplicate$ "no" =
b@1641:         { pop$ #0 }
b@1641:         { "unknown boolean " quote$ * swap$ * quote$ *
b@1641:           " in " * cite$ * warning$
b@1641:           #0
b@1641:         }
b@1641:       if$
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: % pushes true if the single char string on the stack is in the
b@1641: % range of "0" to "9"
b@1641: FUNCTION {is.num}
b@1641: { chr.to.int$
b@1641:   duplicate$ "0" chr.to.int$ < not
b@1641:   swap$ "9" chr.to.int$ > not and
b@1641: }
b@1641: 
b@1641: % multiplies the integer on the stack by a factor of 10
b@1641: FUNCTION {bump.int.mag}
b@1641: { #0 'multiresult :=
b@1641:     { duplicate$ #0 > }
b@1641:     { #1 -
b@1641:       multiresult #10 +
b@1641:       'multiresult :=
b@1641:     }
b@1641:   while$
b@1641: pop$
b@1641: multiresult
b@1641: }
b@1641: 
b@1641: % converts a single character string on the stack to an integer
b@1641: FUNCTION {char.to.integer}
b@1641: { duplicate$ 
b@1641:   is.num
b@1641:     { chr.to.int$ "0" chr.to.int$ - }
b@1641:     {"noninteger character " quote$ * swap$ * quote$ *
b@1641:           " in integer field of " * cite$ * warning$
b@1641:     #0
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: % converts a string on the stack to an integer
b@1641: FUNCTION {string.to.integer}
b@1641: { duplicate$ text.length$ 'namesleft :=
b@1641:   #1 'nameptr :=
b@1641:   #0 'numnames :=
b@1641:     { nameptr namesleft > not }
b@1641:     { duplicate$ nameptr #1 substring$
b@1641:       char.to.integer numnames bump.int.mag +
b@1641:       'numnames :=
b@1641:       nameptr #1 +
b@1641:       'nameptr :=
b@1641:     }
b@1641:   while$
b@1641: pop$
b@1641: numnames
b@1641: }
b@1641: 
b@1641: 
b@1641: 
b@1641: 
b@1641: % The output routines write out the *next* to the top (previous) item on the
b@1641: % stack, adding punctuation and such as needed. Since IEEEtran.bst maintains
b@1641: % the output status for the top two items on the stack, these output
b@1641: % routines have to consider the previous output status (which corresponds to
b@1641: % the item that is being output). Full independent control of punctuation,
b@1641: % closing quote marks, spacing, and newblock is provided.
b@1641: % 
b@1641: % "output.nonnull" does not check for the presence of a previous empty
b@1641: % item.
b@1641: % 
b@1641: % "output" does check for the presence of a previous empty item and will
b@1641: % remove an empty item rather than outputing it.
b@1641: % 
b@1641: % "output.warn" is like "output", but will issue a warning if it detects
b@1641: % an empty item.
b@1641: 
b@1641: FUNCTION {output.nonnull}
b@1641: { swap$
b@1641:   prev.status.punct punct.comma =
b@1641:      { "," * }
b@1641:      { skip$ }
b@1641:    if$
b@1641:   prev.status.punct punct.period =
b@1641:      { add.period$ }
b@1641:      { skip$ }
b@1641:    if$ 
b@1641:   prev.status.quote quote.close =
b@1641:      { "''" * }
b@1641:      { skip$ }
b@1641:    if$
b@1641:   prev.status.space space.normal =
b@1641:      { " " * }
b@1641:      { skip$ }
b@1641:    if$
b@1641:   prev.status.space space.large =
b@1641:      { large.space * }
b@1641:      { skip$ }
b@1641:    if$
b@1641:   write$
b@1641:   prev.status.nline nline.newblock =
b@1641:      { newline$ "\newblock " write$ }
b@1641:      { skip$ }
b@1641:    if$
b@1641: }
b@1641: 
b@1641: FUNCTION {output}
b@1641: { duplicate$ empty$
b@1641:     'pop$
b@1641:     'output.nonnull
b@1641:   if$
b@1641: }
b@1641: 
b@1641: FUNCTION {output.warn}
b@1641: { 't :=
b@1641:   duplicate$ empty$
b@1641:     { pop$ "empty " t * " in " * cite$ * warning$ }
b@1641:     'output.nonnull
b@1641:   if$
b@1641: }
b@1641: 
b@1641: % "fin.entry" is the output routine that handles the last item of the entry
b@1641: % (which will be on the top of the stack when "fin.entry" is called).
b@1641: 
b@1641: FUNCTION {fin.entry}
b@1641: { this.status.punct punct.no =
b@1641:      { skip$ }
b@1641:      { add.period$ }
b@1641:    if$
b@1641:    this.status.quote quote.close =
b@1641:      { "''" * }
b@1641:      { skip$ }
b@1641:    if$
b@1641: write$
b@1641: newline$
b@1641: }
b@1641: 
b@1641: 
b@1641: FUNCTION {is.last.char.not.punct}
b@1641: { duplicate$
b@1641:    "}" * add.period$
b@1641:    #-1 #1 substring$ "." =
b@1641: }
b@1641: 
b@1641: FUNCTION {is.multiple.pages}
b@1641: { 't :=
b@1641:   #0 'multiresult :=
b@1641:     { multiresult not
b@1641:       t empty$ not
b@1641:       and
b@1641:     }
b@1641:     { t #1 #1 substring$
b@1641:       duplicate$ "-" =
b@1641:       swap$ duplicate$ "," =
b@1641:       swap$ "+" =
b@1641:       or or
b@1641:         { #1 'multiresult := }
b@1641:         { t #2 global.max$ substring$ 't := }
b@1641:       if$
b@1641:     }
b@1641:   while$
b@1641:   multiresult
b@1641: }
b@1641: 
b@1641: FUNCTION {capitalize}{ "u" change.case$ "t" change.case$ }
b@1641: 
b@1641: FUNCTION {emphasize}
b@1641: { duplicate$ empty$
b@1641:     { pop$ "" }
b@1641:     { "\emph{" swap$ * "}" * }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: FUNCTION {do.name.latex.cmd}
b@1641: { name.latex.cmd
b@1641:   empty$
b@1641:     { skip$ }
b@1641:     { name.latex.cmd "{" * swap$ * "}" * }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: % IEEEtran.bst uses its own \BIBforeignlanguage command which directly
b@1641: % invokes the TeX hyphenation patterns without the need of the Babel
b@1641: % package. Babel does a lot more than switch hyphenation patterns and
b@1641: % its loading can cause unintended effects in many class files (such as
b@1641: % IEEEtran.cls).
b@1641: FUNCTION {select.language}
b@1641: { duplicate$ empty$ 'pop$
b@1641:     { language empty$ 'skip$
b@1641:         { "\BIBforeignlanguage{" language * "}{" * swap$ * "}" * }
b@1641:       if$
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: FUNCTION {tie.or.space.prefix}
b@1641: { duplicate$ text.length$ #3 <
b@1641:     { "~" }
b@1641:     { " " }
b@1641:   if$
b@1641:   swap$
b@1641: }
b@1641: 
b@1641: FUNCTION {get.bbl.editor}
b@1641: { editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ }
b@1641: 
b@1641: FUNCTION {space.word}{ " " swap$ * " " * }
b@1641: 
b@1641: 
b@1641: % Field Conditioners, Converters, Checkers and External Interfaces
b@1641: 
b@1641: FUNCTION {empty.field.to.null.string}
b@1641: { duplicate$ empty$
b@1641:     { pop$ "" }
b@1641:     { skip$ }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: FUNCTION {either.or.check}
b@1641: { empty$
b@1641:     { pop$ }
b@1641:     { "can't use both " swap$ * " fields in " * cite$ * warning$ }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: FUNCTION {empty.entry.warn}
b@1641: { author empty$ title empty$ howpublished empty$
b@1641:   month empty$ year empty$ note empty$ url empty$
b@1641:   and and and and and and
b@1641:     { "all relevant fields are empty in " cite$ * warning$ }
b@1641:     'skip$
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: % The bibinfo system provides a way for the electronic parsing/acquisition
b@1641: % of a bibliography's contents as is done by ReVTeX. For example, a field
b@1641: % could be entered into the bibliography as:
b@1641: % \bibinfo{volume}{2}
b@1641: % Only the "2" would show up in the document, but the LaTeX \bibinfo command
b@1641: % could do additional things with the information. IEEEtran.bst does provide
b@1641: % a \bibinfo command via "\providecommand{\bibinfo}[2]{#2}". However, it is
b@1641: % currently not used as the bogus bibinfo functions defined here output the
b@1641: % entry values directly without the \bibinfo wrapper. The bibinfo functions
b@1641: % themselves (and the calls to them) are retained for possible future use.
b@1641: % 
b@1641: % bibinfo.check avoids acting on missing fields while bibinfo.warn will
b@1641: % issue a warning message if a missing field is detected. Prior to calling
b@1641: % the bibinfo functions, the user should push the field value and then its
b@1641: % name string, in that order.
b@1641: 
b@1641: FUNCTION {bibinfo.check}
b@1641: { swap$ duplicate$ missing$
b@1641:     { pop$ pop$ "" }
b@1641:     { duplicate$ empty$
b@1641:         { swap$ pop$ }
b@1641:         { swap$ pop$ }
b@1641:       if$
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: FUNCTION {bibinfo.warn}
b@1641: { swap$ duplicate$ missing$
b@1641:     { swap$ "missing " swap$ * " in " * cite$ * warning$ pop$ "" }
b@1641:     { duplicate$ empty$
b@1641:         { swap$ "empty " swap$ * " in " * cite$ * warning$ }
b@1641:         { swap$ pop$ }
b@1641:       if$
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: % IEEE separates large numbers with more than 4 digits into groups of
b@1641: % three. IEEE uses a small space to separate these number groups. 
b@1641: % Typical applications include patent and page numbers.
b@1641: 
b@1641: % number of consecutive digits required to trigger the group separation.
b@1641: FUNCTION {large.number.trigger}{ #5 }
b@1641: 
b@1641: % For numbers longer than the trigger, this is the blocksize of the groups.
b@1641: % The blocksize must be less than the trigger threshold, and 2 * blocksize
b@1641: % must be greater than the trigger threshold (can't do more than one
b@1641: % separation on the initial trigger).
b@1641: FUNCTION {large.number.blocksize}{ #3 }
b@1641: 
b@1641: % What is actually inserted between the number groups.
b@1641: FUNCTION {large.number.separator}{ "\," }
b@1641: 
b@1641: % So as to save on integer variables by reusing existing ones, numnames
b@1641: % holds the current number of consecutive digits read and nameptr holds
b@1641: % the number that will trigger an inserted space.
b@1641: FUNCTION {large.number.separate}
b@1641: { 't :=
b@1641:   ""
b@1641:   #0 'numnames :=
b@1641:   large.number.trigger 'nameptr :=
b@1641:   { t empty$ not }
b@1641:   { t #-1 #1 substring$ is.num
b@1641:       { numnames #1 + 'numnames := }
b@1641:       { #0 'numnames := 
b@1641:         large.number.trigger 'nameptr :=
b@1641:       }
b@1641:     if$
b@1641:     t #-1 #1 substring$ swap$ *
b@1641:     t #-2 global.max$ substring$ 't :=
b@1641:     numnames nameptr =
b@1641:       { duplicate$ #1 nameptr large.number.blocksize - substring$ swap$
b@1641:         nameptr large.number.blocksize - #1 + global.max$ substring$
b@1641:         large.number.separator swap$ * *
b@1641:         nameptr large.number.blocksize - 'numnames :=
b@1641:         large.number.blocksize #1 + 'nameptr :=
b@1641:       }
b@1641:       { skip$ }
b@1641:     if$
b@1641:   }
b@1641:   while$
b@1641: }
b@1641: 
b@1641: % Converts all single dashes "-" to double dashes "--".
b@1641: FUNCTION {n.dashify}
b@1641: { large.number.separate
b@1641:   't :=
b@1641:   ""
b@1641:     { t empty$ not }
b@1641:     { t #1 #1 substring$ "-" =
b@1641:         { t #1 #2 substring$ "--" = not
b@1641:             { "--" *
b@1641:               t #2 global.max$ substring$ 't :=
b@1641:             }
b@1641:             {   { t #1 #1 substring$ "-" = }
b@1641:                 { "-" *
b@1641:                   t #2 global.max$ substring$ 't :=
b@1641:                 }
b@1641:               while$
b@1641:             }
b@1641:           if$
b@1641:         }
b@1641:         { t #1 #1 substring$ *
b@1641:           t #2 global.max$ substring$ 't :=
b@1641:         }
b@1641:       if$
b@1641:     }
b@1641:   while$
b@1641: }
b@1641: 
b@1641: 
b@1641: % This function detects entries with names that are identical to that of
b@1641: % the previous entry and replaces the repeated names with dashes (if the
b@1641: % "is.dash.repeated.names" user control is nonzero).
b@1641: FUNCTION {name.or.dash}
b@1641: { 's :=
b@1641:    oldname empty$
b@1641:      { s 'oldname := s }
b@1641:      { s oldname =
b@1641:          { is.dash.repeated.names
b@1641:               { repeated.name.dashes }
b@1641:               { s 'oldname := s }
b@1641:             if$
b@1641:          }
b@1641:          { s 'oldname := s }
b@1641:        if$
b@1641:      }
b@1641:    if$
b@1641: }
b@1641: 
b@1641: % Converts the number string on the top of the stack to
b@1641: % "numerical ordinal form" (e.g., "7" to "7th"). There is
b@1641: % no artificial limit to the upper bound of the numbers as the
b@1641: % least significant digit always determines the ordinal form.
b@1641: FUNCTION {num.to.ordinal}
b@1641: { duplicate$ #-1 #1 substring$ "1" =
b@1641:      { bbl.st * }
b@1641:      { duplicate$ #-1 #1 substring$ "2" =
b@1641:          { bbl.nd * }
b@1641:          { duplicate$ #-1 #1 substring$ "3" =
b@1641:              { bbl.rd * }
b@1641:              { bbl.th * }
b@1641:            if$
b@1641:          }
b@1641:        if$
b@1641:      }
b@1641:    if$
b@1641: }
b@1641: 
b@1641: % If the string on the top of the stack begins with a number,
b@1641: % (e.g., 11th) then replace the string with the leading number
b@1641: % it contains. Otherwise retain the string as-is. s holds the
b@1641: % extracted number, t holds the part of the string that remains
b@1641: % to be scanned.
b@1641: FUNCTION {extract.num}
b@1641: { duplicate$ 't :=
b@1641:   "" 's :=
b@1641:   { t empty$ not }
b@1641:   { t #1 #1 substring$
b@1641:     t #2 global.max$ substring$ 't :=
b@1641:     duplicate$ is.num
b@1641:       { s swap$ * 's := }
b@1641:       { pop$ "" 't := }
b@1641:     if$
b@1641:   }
b@1641:   while$
b@1641:   s empty$
b@1641:     'skip$
b@1641:     { pop$ s }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: % Converts the word number string on the top of the stack to
b@1641: % Arabic string form. Will be successful up to "tenth".
b@1641: FUNCTION {word.to.num}
b@1641: { duplicate$ "l" change.case$ 's :=
b@1641:   s "first" =
b@1641:     { pop$ "1" }
b@1641:     { skip$ }
b@1641:   if$
b@1641:   s "second" =
b@1641:     { pop$ "2" }
b@1641:     { skip$ }
b@1641:   if$
b@1641:   s "third" =
b@1641:     { pop$ "3" }
b@1641:     { skip$ }
b@1641:   if$
b@1641:   s "fourth" =
b@1641:     { pop$ "4" }
b@1641:     { skip$ }
b@1641:   if$
b@1641:   s "fifth" =
b@1641:     { pop$ "5" }
b@1641:     { skip$ }
b@1641:   if$
b@1641:   s "sixth" =
b@1641:     { pop$ "6" }
b@1641:     { skip$ }
b@1641:   if$
b@1641:   s "seventh" =
b@1641:     { pop$ "7" }
b@1641:     { skip$ }
b@1641:   if$
b@1641:   s "eighth" =
b@1641:     { pop$ "8" }
b@1641:     { skip$ }
b@1641:   if$
b@1641:   s "ninth" =
b@1641:     { pop$ "9" }
b@1641:     { skip$ }
b@1641:   if$
b@1641:   s "tenth" =
b@1641:     { pop$ "10" }
b@1641:     { skip$ }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: % Converts the string on the top of the stack to numerical
b@1641: % ordinal (e.g., "11th") form.
b@1641: FUNCTION {convert.edition}
b@1641: { duplicate$ empty$ 'skip$
b@1641:     { duplicate$ #1 #1 substring$ is.num
b@1641:         { extract.num
b@1641:           num.to.ordinal
b@1641:         }
b@1641:         { word.to.num
b@1641:           duplicate$ #1 #1 substring$ is.num
b@1641:             { num.to.ordinal }
b@1641:             { "edition ordinal word " quote$ * edition * quote$ *
b@1641:               " may be too high (or improper) for conversion" * " in " * cite$ * warning$
b@1641:             }
b@1641:           if$
b@1641:         }
b@1641:       if$
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: 
b@1641: 
b@1641: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
b@1641: %% LATEX BIBLIOGRAPHY CODE %%
b@1641: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
b@1641: 
b@1641: FUNCTION {start.entry}
b@1641: { newline$
b@1641:   "\bibitem{" write$
b@1641:   cite$ write$
b@1641:   "}" write$
b@1641:   newline$
b@1641:   ""
b@1641:   initialize.prev.this.status
b@1641: }
b@1641: 
b@1641: % Here we write out all the LaTeX code that we will need. The most involved
b@1641: % code sequences are those that control the alternate interword spacing and
b@1641: % foreign language hyphenation patterns. The heavy use of \providecommand
b@1641: % gives users a way to override the defaults. Special thanks to Javier Bezos,
b@1641: % Johannes Braams, Robin Fairbairns, Heiko Oberdiek, Donald Arseneau and all
b@1641: % the other gurus on comp.text.tex for their help and advice on the topic of
b@1641: % \selectlanguage, Babel and BibTeX.
b@1641: FUNCTION {begin.bib}
b@1641: { "% Generated by IEEEtran.bst, version: " bst.file.version * " (" * bst.file.date * ")" *
b@1641:   write$ newline$
b@1641:   preamble$ empty$ 'skip$
b@1641:     { preamble$ write$ newline$ }
b@1641:   if$
b@1641:   "\begin{thebibliography}{"  longest.label  * "}" *
b@1641:   write$ newline$
b@1641:   "\providecommand{\url}[1]{#1}"
b@1641:   write$ newline$
b@1641:   "\csname url@samestyle\endcsname"
b@1641:   write$ newline$
b@1641:   "\providecommand{\newblock}{\relax}"
b@1641:   write$ newline$
b@1641:   "\providecommand{\bibinfo}[2]{#2}"
b@1641:   write$ newline$
b@1641:   "\providecommand{\BIBentrySTDinterwordspacing}{\spaceskip=0pt\relax}"
b@1641:   write$ newline$
b@1641:   "\providecommand{\BIBentryALTinterwordstretchfactor}{"
b@1641:   ALTinterwordstretchfactor * "}" *
b@1641:   write$ newline$
b@1641:   "\providecommand{\BIBentryALTinterwordspacing}{\spaceskip=\fontdimen2\font plus "
b@1641:   write$ newline$
b@1641:   "\BIBentryALTinterwordstretchfactor\fontdimen3\font minus \fontdimen4\font\relax}"
b@1641:   write$ newline$
b@1641:   "\providecommand{\BIBforeignlanguage}[2]{{%"
b@1641:   write$ newline$
b@1641:   "\expandafter\ifx\csname l@#1\endcsname\relax"
b@1641:   write$ newline$
b@1641:   "\typeout{** WARNING: IEEEtran.bst: No hyphenation pattern has been}%"
b@1641:   write$ newline$
b@1641:   "\typeout{** loaded for the language `#1'. Using the pattern for}%"
b@1641:   write$ newline$
b@1641:   "\typeout{** the default language instead.}%"
b@1641:   write$ newline$
b@1641:   "\else"
b@1641:   write$ newline$
b@1641:   "\language=\csname l@#1\endcsname"
b@1641:   write$ newline$
b@1641:   "\fi"
b@1641:   write$ newline$
b@1641:   "#2}}"
b@1641:   write$ newline$
b@1641:   "\providecommand{\BIBdecl}{\relax}"
b@1641:   write$ newline$
b@1641:   "\BIBdecl"
b@1641:   write$ newline$
b@1641: }
b@1641: 
b@1641: FUNCTION {end.bib}
b@1641: { newline$ "\end{thebibliography}" write$ newline$ }
b@1641: 
b@1641: FUNCTION {if.url.alt.interword.spacing}
b@1641: { is.use.alt.interword.spacing 
b@1641:      {url empty$ 'skip$ {"\BIBentryALTinterwordspacing" write$ newline$} if$}
b@1641:      { skip$ }
b@1641:    if$
b@1641: }
b@1641: 
b@1641: FUNCTION {if.url.std.interword.spacing}
b@1641: { is.use.alt.interword.spacing 
b@1641:      {url empty$ 'skip$ {"\BIBentrySTDinterwordspacing" write$ newline$} if$}
b@1641:      { skip$ }
b@1641:    if$
b@1641: }
b@1641: 
b@1641: 
b@1641: 
b@1641: 
b@1641: %%%%%%%%%%%%%%%%%%%%%%%%
b@1641: %% LONGEST LABEL PASS %%
b@1641: %%%%%%%%%%%%%%%%%%%%%%%%
b@1641: 
b@1641: FUNCTION {initialize.longest.label}
b@1641: { "" 'longest.label :=
b@1641:   #1 'number.label :=
b@1641:   #0 'longest.label.width :=
b@1641: }
b@1641: 
b@1641: FUNCTION {longest.label.pass}
b@1641: { type$ "ieeetranbstctl" =
b@1641:     { skip$ }
b@1641:     { number.label int.to.str$ 'label :=
b@1641:       number.label #1 + 'number.label :=
b@1641:       label width$ longest.label.width >
b@1641:         { label 'longest.label :=
b@1641:           label width$ 'longest.label.width :=
b@1641:         }
b@1641:         { skip$ }
b@1641:       if$
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: 
b@1641: 
b@1641: %%%%%%%%%%%%%%%%%%%%%
b@1641: %% FORMAT HANDLERS %%
b@1641: %%%%%%%%%%%%%%%%%%%%%
b@1641: 
b@1641: %% Lower Level Formats (used by higher level formats)
b@1641: 
b@1641: FUNCTION {format.address.org.or.pub.date}
b@1641: { 't :=
b@1641:   ""
b@1641:   year empty$
b@1641:     { "empty year in " cite$ * warning$ }
b@1641:     { skip$ }
b@1641:   if$
b@1641:   address empty$ t empty$ and
b@1641:   year empty$ and month empty$ and
b@1641:     { skip$ }
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       cap.status.std
b@1641:       address "address" bibinfo.check *
b@1641:       t empty$
b@1641:         { skip$ }
b@1641:         { punct.period 'prev.status.punct :=
b@1641:           space.large 'prev.status.space :=
b@1641:           address empty$
b@1641:             { skip$ }
b@1641:             { ": " * }
b@1641:           if$
b@1641:           t *
b@1641:         }
b@1641:       if$
b@1641:       year empty$ month empty$ and
b@1641:         { skip$ }
b@1641:         { t empty$ address empty$ and
b@1641:             { skip$ }
b@1641:             { ", " * }
b@1641:           if$
b@1641:           month empty$
b@1641:             { year empty$
b@1641:                 { skip$ }
b@1641:                 { year "year" bibinfo.check * }
b@1641:               if$
b@1641:             }
b@1641:             { month "month" bibinfo.check *
b@1641:               year empty$
b@1641:                  { skip$ }
b@1641:                  { " " * year "year" bibinfo.check * }
b@1641:               if$
b@1641:             }
b@1641:           if$
b@1641:         }
b@1641:       if$
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: FUNCTION {format.names}
b@1641: { 'bibinfo :=
b@1641:   duplicate$ empty$ 'skip$ {
b@1641:   this.to.prev.status
b@1641:   this.status.std
b@1641:   's :=
b@1641:   "" 't :=
b@1641:   #1 'nameptr :=
b@1641:   s num.names$ 'numnames :=
b@1641:   numnames 'namesleft :=
b@1641:     { namesleft #0 > }
b@1641:     { s nameptr
b@1641:       name.format.string
b@1641:       format.name$
b@1641:       bibinfo bibinfo.check
b@1641:       't :=
b@1641:       nameptr #1 >
b@1641:         { nameptr num.names.shown.with.forced.et.al #1 + =
b@1641:           numnames max.num.names.before.forced.et.al >
b@1641:           is.forced.et.al and and
b@1641:             { "others" 't :=
b@1641:               #1 'namesleft :=
b@1641:             }
b@1641:             { skip$ }
b@1641:           if$
b@1641:           namesleft #1 >
b@1641:             { ", " * t do.name.latex.cmd * }
b@1641:             { s nameptr "{ll}" format.name$ duplicate$ "others" =
b@1641:                 { 't := }
b@1641:                 { pop$ }
b@1641:               if$
b@1641:               t "others" =
b@1641:                 { " " * bbl.etal emphasize * }
b@1641:                 { numnames #2 >
b@1641:                     { "," * }
b@1641:                     { skip$ }
b@1641:                   if$
b@1641:                   bbl.and
b@1641:                   space.word * t do.name.latex.cmd *
b@1641:                 }
b@1641:               if$
b@1641:             }
b@1641:           if$
b@1641:         }
b@1641:         { t do.name.latex.cmd }
b@1641:       if$
b@1641:       nameptr #1 + 'nameptr :=
b@1641:       namesleft #1 - 'namesleft :=
b@1641:     }
b@1641:   while$
b@1641:   cap.status.std
b@1641:   } if$
b@1641: }
b@1641: 
b@1641: 
b@1641: 
b@1641: 
b@1641: %% Higher Level Formats
b@1641: 
b@1641: %% addresses/locations
b@1641: 
b@1641: FUNCTION {format.address}
b@1641: { address duplicate$ empty$ 'skip$
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       cap.status.std
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: 
b@1641: %% author/editor names
b@1641: 
b@1641: FUNCTION {format.authors}{ author "author" format.names }
b@1641: 
b@1641: FUNCTION {format.editors}
b@1641: { editor "editor" format.names duplicate$ empty$ 'skip$
b@1641:     { ", " *
b@1641:       get.bbl.editor
b@1641:       capitalize
b@1641:       *
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: 
b@1641: %% date
b@1641: 
b@1641: FUNCTION {format.date}
b@1641: {
b@1641:   month "month" bibinfo.check duplicate$ empty$
b@1641:   year  "year" bibinfo.check duplicate$ empty$
b@1641:     { swap$ 'skip$
b@1641:         { this.to.prev.status
b@1641:           this.status.std
b@1641:           cap.status.std
b@1641:          "there's a month but no year in " cite$ * warning$ }
b@1641:       if$
b@1641:       *
b@1641:     }
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       cap.status.std
b@1641:       swap$ 'skip$
b@1641:         {
b@1641:           swap$
b@1641:           " " * swap$
b@1641:         }
b@1641:       if$
b@1641:       *
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: FUNCTION {format.date.electronic}
b@1641: { month "month" bibinfo.check duplicate$ empty$
b@1641:   year  "year" bibinfo.check duplicate$ empty$
b@1641:     { swap$ 
b@1641:         { pop$ }
b@1641:         { "there's a month but no year in " cite$ * warning$
b@1641:         pop$ ")" * "(" swap$ *
b@1641:         this.to.prev.status
b@1641:         punct.no 'this.status.punct :=
b@1641:         space.normal 'this.status.space :=
b@1641:         quote.no 'this.status.quote :=
b@1641:         cap.yes  'status.cap :=
b@1641:         }
b@1641:       if$
b@1641:     }
b@1641:     { swap$ 
b@1641:         { swap$ pop$ ")" * "(" swap$ * }
b@1641:         { "(" swap$ * ", " * swap$ * ")" * }
b@1641:       if$
b@1641:     this.to.prev.status
b@1641:     punct.no 'this.status.punct :=
b@1641:     space.normal 'this.status.space :=
b@1641:     quote.no 'this.status.quote :=
b@1641:     cap.yes  'status.cap :=
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: 
b@1641: %% edition/title
b@1641: 
b@1641: % Note: IEEE considers the edition to be closely associated with
b@1641: % the title of a book. So, in IEEEtran.bst the edition is normally handled 
b@1641: % within the formatting of the title. The format.edition function is 
b@1641: % retained here for possible future use.
b@1641: FUNCTION {format.edition}
b@1641: { edition duplicate$ empty$ 'skip$
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       convert.edition
b@1641:       status.cap
b@1641:         { "t" }
b@1641:         { "l" }
b@1641:       if$ change.case$
b@1641:       "edition" bibinfo.check
b@1641:       "~" * bbl.edition *
b@1641:       cap.status.std
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: % This is used to format the booktitle of a conference proceedings.
b@1641: % Here we use the "intype" field to provide the user a way to 
b@1641: % override the word "in" (e.g., with things like "presented at")
b@1641: % Use of intype stops the emphasis of the booktitle to indicate that
b@1641: % we no longer mean the written conference proceedings, but the
b@1641: % conference itself.
b@1641: FUNCTION {format.in.booktitle}
b@1641: { booktitle "booktitle" bibinfo.check duplicate$ empty$ 'skip$
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       select.language
b@1641:       intype missing$
b@1641:         { emphasize
b@1641:           bbl.in " " *
b@1641:         }
b@1641:         { intype " " * }
b@1641:       if$
b@1641:       swap$ *
b@1641:       cap.status.std
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: % This is used to format the booktitle of collection.
b@1641: % Here the "intype" field is not supported, but "edition" is.
b@1641: FUNCTION {format.in.booktitle.edition}
b@1641: { booktitle "booktitle" bibinfo.check duplicate$ empty$ 'skip$
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       select.language
b@1641:       emphasize
b@1641:       edition empty$ 'skip$
b@1641:         { ", " *
b@1641:           edition
b@1641:           convert.edition
b@1641:           "l" change.case$
b@1641:           * "~" * bbl.edition *
b@1641:         }
b@1641:       if$
b@1641:       bbl.in " " * swap$ *
b@1641:       cap.status.std
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: FUNCTION {format.article.title}
b@1641: { title duplicate$ empty$ 'skip$
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       "t" change.case$
b@1641:     }
b@1641:   if$
b@1641:   "title" bibinfo.check
b@1641:   duplicate$ empty$ 'skip$
b@1641:     { quote.close 'this.status.quote :=
b@1641:       is.last.char.not.punct
b@1641:         { punct.std 'this.status.punct := }
b@1641:         { punct.no 'this.status.punct := }
b@1641:       if$
b@1641:       select.language
b@1641:       "``" swap$ *
b@1641:       cap.status.std
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: FUNCTION {format.article.title.electronic}
b@1641: { title duplicate$ empty$ 'skip$
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       cap.status.std
b@1641:       "t" change.case$ 
b@1641:     }
b@1641:   if$
b@1641:   "title" bibinfo.check
b@1641:   duplicate$ empty$ 
b@1641:     { skip$ } 
b@1641:     { select.language }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: FUNCTION {format.book.title.edition}
b@1641: { title "title" bibinfo.check
b@1641:   duplicate$ empty$
b@1641:     { "empty title in " cite$ * warning$ }
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       select.language
b@1641:       emphasize
b@1641:       edition empty$ 'skip$
b@1641:         { ", " *
b@1641:           edition
b@1641:           convert.edition
b@1641:           status.cap
b@1641:             { "t" }
b@1641:             { "l" }
b@1641:           if$
b@1641:           change.case$
b@1641:           * "~" * bbl.edition *
b@1641:         }
b@1641:       if$
b@1641:       cap.status.std
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: FUNCTION {format.book.title}
b@1641: { title "title" bibinfo.check
b@1641:   duplicate$ empty$ 'skip$
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       cap.status.std
b@1641:       select.language
b@1641:       emphasize
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: 
b@1641: %% journal
b@1641: 
b@1641: FUNCTION {format.journal}
b@1641: { journal duplicate$ empty$ 'skip$
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       cap.status.std
b@1641:       select.language
b@1641:       emphasize
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: 
b@1641: %% how published
b@1641: 
b@1641: FUNCTION {format.howpublished}
b@1641: { howpublished duplicate$ empty$ 'skip$
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       cap.status.std
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: 
b@1641: %% institutions/organization/publishers/school
b@1641: 
b@1641: FUNCTION {format.institution}
b@1641: { institution duplicate$ empty$ 'skip$
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       cap.status.std
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: FUNCTION {format.organization}
b@1641: { organization duplicate$ empty$ 'skip$
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       cap.status.std
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: FUNCTION {format.address.publisher.date}
b@1641: { publisher "publisher" bibinfo.warn format.address.org.or.pub.date }
b@1641: 
b@1641: FUNCTION {format.address.publisher.date.nowarn}
b@1641: { publisher "publisher" bibinfo.check format.address.org.or.pub.date }
b@1641: 
b@1641: FUNCTION {format.address.organization.date}
b@1641: { organization "organization" bibinfo.check format.address.org.or.pub.date }
b@1641: 
b@1641: FUNCTION {format.school}
b@1641: { school duplicate$ empty$ 'skip$
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       cap.status.std
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: 
b@1641: %% volume/number/series/chapter/pages
b@1641: 
b@1641: FUNCTION {format.volume}
b@1641: { volume empty.field.to.null.string
b@1641:   duplicate$ empty$ 'skip$
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       bbl.volume 
b@1641:       status.cap
b@1641:         { capitalize }
b@1641:         { skip$ }
b@1641:       if$
b@1641:       swap$ tie.or.space.prefix
b@1641:       "volume" bibinfo.check
b@1641:       * *
b@1641:       cap.status.std
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: FUNCTION {format.number}
b@1641: { number empty.field.to.null.string
b@1641:   duplicate$ empty$ 'skip$
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       status.cap
b@1641:          { bbl.number capitalize }
b@1641:          { bbl.number }
b@1641:        if$
b@1641:       swap$ tie.or.space.prefix
b@1641:       "number" bibinfo.check
b@1641:       * *
b@1641:       cap.status.std
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: FUNCTION {format.number.if.use.for.article}
b@1641: { is.use.number.for.article 
b@1641:      { format.number }
b@1641:      { "" }
b@1641:    if$
b@1641: }
b@1641: 
b@1641: % IEEE does not seem to tie the series so closely with the volume
b@1641: % and number as is done in other bibliography styles. Instead the
b@1641: % series is treated somewhat like an extension of the title.
b@1641: FUNCTION {format.series}
b@1641: { series empty$ 
b@1641:    { "" }
b@1641:    { this.to.prev.status
b@1641:      this.status.std
b@1641:      bbl.series " " *
b@1641:      series "series" bibinfo.check *
b@1641:      cap.status.std
b@1641:    }
b@1641:  if$
b@1641: }
b@1641: 
b@1641: 
b@1641: FUNCTION {format.chapter}
b@1641: { chapter empty$
b@1641:     { "" }
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       type empty$
b@1641:         { bbl.chapter }
b@1641:         { type "l" change.case$
b@1641:           "type" bibinfo.check
b@1641:         }
b@1641:       if$
b@1641:       chapter tie.or.space.prefix
b@1641:       "chapter" bibinfo.check
b@1641:       * *
b@1641:       cap.status.std
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: % The intended use of format.paper is for paper numbers of inproceedings.
b@1641: % The paper type can be overridden via the type field.
b@1641: % We allow the type to be displayed even if the paper number is absent
b@1641: % for things like "postdeadline paper"
b@1641: FUNCTION {format.paper}
b@1641: { is.use.paper
b@1641:      { paper empty$
b@1641:         { type empty$
b@1641:             { "" }
b@1641:             { this.to.prev.status
b@1641:               this.status.std
b@1641:               type "type" bibinfo.check
b@1641:               cap.status.std
b@1641:             }
b@1641:           if$
b@1641:         }
b@1641:         { this.to.prev.status
b@1641:           this.status.std
b@1641:           type empty$
b@1641:             { bbl.paper }
b@1641:             { type "type" bibinfo.check }
b@1641:           if$
b@1641:           " " * paper
b@1641:           "paper" bibinfo.check
b@1641:           *
b@1641:           cap.status.std
b@1641:         }
b@1641:       if$
b@1641:      }
b@1641:      { "" } 
b@1641:    if$
b@1641: }
b@1641: 
b@1641: 
b@1641: FUNCTION {format.pages}
b@1641: { pages duplicate$ empty$ 'skip$
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       duplicate$ is.multiple.pages
b@1641:         {
b@1641:           bbl.pages swap$
b@1641:           n.dashify
b@1641:         }
b@1641:         {
b@1641:           bbl.page swap$
b@1641:         }
b@1641:       if$
b@1641:       tie.or.space.prefix
b@1641:       "pages" bibinfo.check
b@1641:       * *
b@1641:       cap.status.std
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: 
b@1641: %% technical report number
b@1641: 
b@1641: FUNCTION {format.tech.report.number}
b@1641: { number "number" bibinfo.check
b@1641:   this.to.prev.status
b@1641:   this.status.std
b@1641:   cap.status.std
b@1641:   type duplicate$ empty$
b@1641:     { pop$ 
b@1641:       bbl.techrep
b@1641:     }
b@1641:     { skip$ }
b@1641:   if$
b@1641:   "type" bibinfo.check 
b@1641:   swap$ duplicate$ empty$
b@1641:     { pop$ }
b@1641:     { tie.or.space.prefix * * }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: 
b@1641: %% note
b@1641: 
b@1641: FUNCTION {format.note}
b@1641: { note empty$
b@1641:     { "" }
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       punct.period 'this.status.punct :=
b@1641:       note #1 #1 substring$
b@1641:       duplicate$ "{" =
b@1641:         { skip$ }
b@1641:         { status.cap
b@1641:           { "u" }
b@1641:           { "l" }
b@1641:         if$
b@1641:         change.case$
b@1641:         }
b@1641:       if$
b@1641:       note #2 global.max$ substring$ * "note" bibinfo.check
b@1641:       cap.yes  'status.cap :=
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: 
b@1641: %% patent
b@1641: 
b@1641: FUNCTION {format.patent.date}
b@1641: { this.to.prev.status
b@1641:   this.status.std
b@1641:   year empty$
b@1641:     { monthfiled duplicate$ empty$
b@1641:         { "monthfiled" bibinfo.check pop$ "" }
b@1641:         { "monthfiled" bibinfo.check }
b@1641:       if$
b@1641:       dayfiled duplicate$ empty$
b@1641:         { "dayfiled" bibinfo.check pop$ "" * }
b@1641:         { "dayfiled" bibinfo.check 
b@1641:           monthfiled empty$ 
b@1641:              { "dayfiled without a monthfiled in " cite$ * warning$
b@1641:                * 
b@1641:              }
b@1641:              { " " swap$ * * }
b@1641:            if$
b@1641:         }
b@1641:       if$
b@1641:       yearfiled empty$
b@1641:         { "no year or yearfiled in " cite$ * warning$ }
b@1641:         { yearfiled "yearfiled" bibinfo.check 
b@1641:           swap$
b@1641:           duplicate$ empty$
b@1641:              { pop$ }
b@1641:              { ", " * swap$ * }
b@1641:            if$
b@1641:         }
b@1641:       if$
b@1641:     }
b@1641:     { month duplicate$ empty$
b@1641:         { "month" bibinfo.check pop$ "" }
b@1641:         { "month" bibinfo.check }
b@1641:       if$
b@1641:       day duplicate$ empty$
b@1641:         { "day" bibinfo.check pop$ "" * }
b@1641:         { "day" bibinfo.check 
b@1641:           month empty$ 
b@1641:              { "day without a month in " cite$ * warning$
b@1641:                * 
b@1641:              }
b@1641:              { " " swap$ * * }
b@1641:            if$
b@1641:         }
b@1641:       if$
b@1641:       year "year" bibinfo.check 
b@1641:       swap$
b@1641:       duplicate$ empty$
b@1641:         { pop$ }
b@1641:         { ", " * swap$ * }
b@1641:       if$
b@1641:     }
b@1641:   if$
b@1641:   cap.status.std
b@1641: }
b@1641: 
b@1641: FUNCTION {format.patent.nationality.type.number}
b@1641: { this.to.prev.status
b@1641:   this.status.std
b@1641:   nationality duplicate$ empty$
b@1641:     { "nationality" bibinfo.warn pop$ "" }
b@1641:     { "nationality" bibinfo.check
b@1641:       duplicate$ "l" change.case$ "united states" =
b@1641:         { pop$ bbl.patentUS }
b@1641:         { skip$ }
b@1641:       if$
b@1641:       " " *
b@1641:     }
b@1641:   if$
b@1641:   type empty$
b@1641:     { bbl.patent "type" bibinfo.check }
b@1641:     { type "type" bibinfo.check }
b@1641:   if$  
b@1641:   *
b@1641:   number duplicate$ empty$
b@1641:     { "number" bibinfo.warn pop$ }
b@1641:     { "number" bibinfo.check
b@1641:       large.number.separate
b@1641:       swap$ " " * swap$ *
b@1641:     }
b@1641:   if$ 
b@1641:   cap.status.std
b@1641: }
b@1641: 
b@1641: 
b@1641: 
b@1641: %% standard
b@1641: 
b@1641: FUNCTION {format.organization.institution.standard.type.number}
b@1641: { this.to.prev.status
b@1641:   this.status.std
b@1641:   organization duplicate$ empty$
b@1641:     { pop$ 
b@1641:       institution duplicate$ empty$
b@1641:         { "institution" bibinfo.warn }
b@1641:         { "institution" bibinfo.warn " " * }
b@1641:       if$
b@1641:     }
b@1641:     { "organization" bibinfo.warn " " * }
b@1641:   if$
b@1641:   type empty$
b@1641:     { bbl.standard "type" bibinfo.check }
b@1641:     { type "type" bibinfo.check }
b@1641:   if$  
b@1641:   *
b@1641:   number duplicate$ empty$
b@1641:     { "number" bibinfo.check pop$ }
b@1641:     { "number" bibinfo.check
b@1641:       large.number.separate
b@1641:       swap$ " " * swap$ *
b@1641:     }
b@1641:   if$ 
b@1641:   cap.status.std
b@1641: }
b@1641: 
b@1641: FUNCTION {format.revision}
b@1641: { revision empty$
b@1641:     { "" }
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       bbl.revision
b@1641:       revision tie.or.space.prefix
b@1641:       "revision" bibinfo.check
b@1641:       * *
b@1641:       cap.status.std
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: %% thesis
b@1641: 
b@1641: FUNCTION {format.master.thesis.type}
b@1641: { this.to.prev.status
b@1641:   this.status.std
b@1641:   type empty$
b@1641:     {
b@1641:       bbl.mthesis
b@1641:     }
b@1641:     { 
b@1641:       type "type" bibinfo.check
b@1641:     }
b@1641:   if$
b@1641: cap.status.std
b@1641: }
b@1641: 
b@1641: FUNCTION {format.phd.thesis.type}
b@1641: { this.to.prev.status
b@1641:   this.status.std
b@1641:   type empty$
b@1641:     {
b@1641:       bbl.phdthesis
b@1641:     }
b@1641:     { 
b@1641:       type "type" bibinfo.check
b@1641:     }
b@1641:   if$
b@1641: cap.status.std
b@1641: }
b@1641: 
b@1641: 
b@1641: 
b@1641: %% URL
b@1641: 
b@1641: FUNCTION {format.url}
b@1641: { url empty$
b@1641:     { "" }
b@1641:     { this.to.prev.status
b@1641:       this.status.std
b@1641:       cap.yes 'status.cap :=
b@1641:       name.url.prefix " " *
b@1641:       "\url{" * url * "}" *
b@1641:       punct.no 'this.status.punct :=
b@1641:       punct.period 'prev.status.punct :=
b@1641:       space.normal 'this.status.space :=
b@1641:       space.normal 'prev.status.space :=
b@1641:       quote.no 'this.status.quote :=
b@1641:     }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: 
b@1641: 
b@1641: %%%%%%%%%%%%%%%%%%%%
b@1641: %% ENTRY HANDLERS %%
b@1641: %%%%%%%%%%%%%%%%%%%%
b@1641: 
b@1641: 
b@1641: % Note: In many journals, IEEE (or the authors) tend not to show the number
b@1641: % for articles, so the display of the number is controlled here by the
b@1641: % switch "is.use.number.for.article"
b@1641: FUNCTION {article}
b@1641: { std.status.using.comma
b@1641:   start.entry
b@1641:   if.url.alt.interword.spacing
b@1641:   format.authors "author" output.warn
b@1641:   name.or.dash
b@1641:   format.article.title "title" output.warn
b@1641:   format.journal "journal" bibinfo.check "journal" output.warn
b@1641:   format.volume output
b@1641:   format.number.if.use.for.article output
b@1641:   format.pages output
b@1641:   format.date "year" output.warn
b@1641:   format.note output
b@1641:   format.url output
b@1641:   fin.entry
b@1641:   if.url.std.interword.spacing
b@1641: }
b@1641: 
b@1641: FUNCTION {book}
b@1641: { std.status.using.comma
b@1641:   start.entry
b@1641:   if.url.alt.interword.spacing
b@1641:   author empty$
b@1641:     { format.editors "author and editor" output.warn }
b@1641:     { format.authors output.nonnull }
b@1641:   if$
b@1641:   name.or.dash
b@1641:   format.book.title.edition output
b@1641:   format.series output
b@1641:   author empty$
b@1641:     { skip$ }
b@1641:     { format.editors output }
b@1641:   if$
b@1641:   format.address.publisher.date output
b@1641:   format.volume output
b@1641:   format.number output
b@1641:   format.note output
b@1641:   format.url output
b@1641:   fin.entry
b@1641:   if.url.std.interword.spacing
b@1641: }
b@1641: 
b@1641: FUNCTION {booklet}
b@1641: { std.status.using.comma
b@1641:   start.entry
b@1641:   if.url.alt.interword.spacing
b@1641:   format.authors output
b@1641:   name.or.dash
b@1641:   format.article.title "title" output.warn
b@1641:   format.howpublished "howpublished" bibinfo.check output
b@1641:   format.organization "organization" bibinfo.check output
b@1641:   format.address "address" bibinfo.check output
b@1641:   format.date output
b@1641:   format.note output
b@1641:   format.url output
b@1641:   fin.entry
b@1641:   if.url.std.interword.spacing
b@1641: }
b@1641: 
b@1641: FUNCTION {electronic}
b@1641: { std.status.using.period
b@1641:   start.entry
b@1641:   if.url.alt.interword.spacing
b@1641:   format.authors output
b@1641:   name.or.dash
b@1641:   format.date.electronic output
b@1641:   format.article.title.electronic output
b@1641:   format.howpublished "howpublished" bibinfo.check output
b@1641:   format.organization "organization" bibinfo.check output
b@1641:   format.address "address" bibinfo.check output
b@1641:   format.note output
b@1641:   format.url output
b@1641:   fin.entry
b@1641:   empty.entry.warn
b@1641:   if.url.std.interword.spacing
b@1641: }
b@1641: 
b@1641: FUNCTION {inbook}
b@1641: { std.status.using.comma
b@1641:   start.entry
b@1641:   if.url.alt.interword.spacing
b@1641:   author empty$
b@1641:     { format.editors "author and editor" output.warn }
b@1641:     { format.authors output.nonnull }
b@1641:   if$
b@1641:   name.or.dash
b@1641:   format.book.title.edition output
b@1641:   format.series output
b@1641:   format.address.publisher.date output
b@1641:   format.volume output
b@1641:   format.number output
b@1641:   format.chapter output
b@1641:   format.pages output
b@1641:   format.note output
b@1641:   format.url output
b@1641:   fin.entry
b@1641:   if.url.std.interword.spacing
b@1641: }
b@1641: 
b@1641: FUNCTION {incollection}
b@1641: { std.status.using.comma
b@1641:   start.entry
b@1641:   if.url.alt.interword.spacing
b@1641:   format.authors "author" output.warn
b@1641:   name.or.dash
b@1641:   format.article.title "title" output.warn
b@1641:   format.in.booktitle.edition "booktitle" output.warn
b@1641:   format.series output
b@1641:   format.editors output
b@1641:   format.address.publisher.date.nowarn output
b@1641:   format.volume output
b@1641:   format.number output
b@1641:   format.chapter output
b@1641:   format.pages output
b@1641:   format.note output
b@1641:   format.url output
b@1641:   fin.entry
b@1641:   if.url.std.interword.spacing
b@1641: }
b@1641: 
b@1641: FUNCTION {inproceedings}
b@1641: { std.status.using.comma
b@1641:   start.entry
b@1641:   if.url.alt.interword.spacing
b@1641:   format.authors "author" output.warn
b@1641:   name.or.dash
b@1641:   format.article.title "title" output.warn
b@1641:   format.in.booktitle "booktitle" output.warn
b@1641:   format.series output
b@1641:   format.editors output
b@1641:   format.volume output
b@1641:   format.number output
b@1641:   publisher empty$
b@1641:     { format.address.organization.date output }
b@1641:     { format.organization "organization" bibinfo.check output
b@1641:       format.address.publisher.date output
b@1641:     }
b@1641:   if$
b@1641:   format.paper output
b@1641:   format.pages output
b@1641:   format.note output
b@1641:   format.url output
b@1641:   fin.entry
b@1641:   if.url.std.interword.spacing
b@1641: }
b@1641: 
b@1641: FUNCTION {manual}
b@1641: { std.status.using.comma
b@1641:   start.entry
b@1641:   if.url.alt.interword.spacing
b@1641:   format.authors output
b@1641:   name.or.dash
b@1641:   format.book.title.edition "title" output.warn
b@1641:   format.howpublished "howpublished" bibinfo.check output 
b@1641:   format.organization "organization" bibinfo.check output
b@1641:   format.address "address" bibinfo.check output
b@1641:   format.date output
b@1641:   format.note output
b@1641:   format.url output
b@1641:   fin.entry
b@1641:   if.url.std.interword.spacing
b@1641: }
b@1641: 
b@1641: FUNCTION {mastersthesis}
b@1641: { std.status.using.comma
b@1641:   start.entry
b@1641:   if.url.alt.interword.spacing
b@1641:   format.authors "author" output.warn
b@1641:   name.or.dash
b@1641:   format.article.title "title" output.warn
b@1641:   format.master.thesis.type output.nonnull
b@1641:   format.school "school" bibinfo.warn output
b@1641:   format.address "address" bibinfo.check output
b@1641:   format.date "year" output.warn
b@1641:   format.note output
b@1641:   format.url output
b@1641:   fin.entry
b@1641:   if.url.std.interword.spacing
b@1641: }
b@1641: 
b@1641: FUNCTION {misc}
b@1641: { std.status.using.comma
b@1641:   start.entry
b@1641:   if.url.alt.interword.spacing
b@1641:   format.authors output
b@1641:   name.or.dash
b@1641:   format.article.title output
b@1641:   format.howpublished "howpublished" bibinfo.check output 
b@1641:   format.organization "organization" bibinfo.check output
b@1641:   format.address "address" bibinfo.check output
b@1641:   format.pages output
b@1641:   format.date output
b@1641:   format.note output
b@1641:   format.url output
b@1641:   fin.entry
b@1641:   empty.entry.warn
b@1641:   if.url.std.interword.spacing
b@1641: }
b@1641: 
b@1641: FUNCTION {patent}
b@1641: { std.status.using.comma
b@1641:   start.entry
b@1641:   if.url.alt.interword.spacing
b@1641:   format.authors output
b@1641:   name.or.dash
b@1641:   format.article.title output
b@1641:   format.patent.nationality.type.number output
b@1641:   format.patent.date output
b@1641:   format.note output
b@1641:   format.url output
b@1641:   fin.entry
b@1641:   empty.entry.warn
b@1641:   if.url.std.interword.spacing
b@1641: }
b@1641: 
b@1641: FUNCTION {periodical}
b@1641: { std.status.using.comma
b@1641:   start.entry
b@1641:   if.url.alt.interword.spacing
b@1641:   format.editors output
b@1641:   name.or.dash
b@1641:   format.book.title "title" output.warn
b@1641:   format.series output
b@1641:   format.volume output
b@1641:   format.number output
b@1641:   format.organization "organization" bibinfo.check output
b@1641:   format.date "year" output.warn
b@1641:   format.note output
b@1641:   format.url output
b@1641:   fin.entry
b@1641:   if.url.std.interword.spacing
b@1641: }
b@1641: 
b@1641: FUNCTION {phdthesis}
b@1641: { std.status.using.comma
b@1641:   start.entry
b@1641:   if.url.alt.interword.spacing
b@1641:   format.authors "author" output.warn
b@1641:   name.or.dash
b@1641:   format.article.title "title" output.warn
b@1641:   format.phd.thesis.type output.nonnull
b@1641:   format.school "school" bibinfo.warn output
b@1641:   format.address "address" bibinfo.check output
b@1641:   format.date "year" output.warn
b@1641:   format.note output
b@1641:   format.url output
b@1641:   fin.entry
b@1641:   if.url.std.interword.spacing
b@1641: }
b@1641: 
b@1641: FUNCTION {proceedings}
b@1641: { std.status.using.comma
b@1641:   start.entry
b@1641:   if.url.alt.interword.spacing
b@1641:   format.editors output
b@1641:   name.or.dash
b@1641:   format.book.title "title" output.warn
b@1641:   format.series output
b@1641:   format.volume output
b@1641:   format.number output
b@1641:   publisher empty$
b@1641:     { format.address.organization.date output }
b@1641:     { format.organization "organization" bibinfo.check output
b@1641:       format.address.publisher.date output
b@1641:     }
b@1641:   if$
b@1641:   format.note output
b@1641:   format.url output
b@1641:   fin.entry
b@1641:   if.url.std.interword.spacing
b@1641: }
b@1641: 
b@1641: FUNCTION {standard}
b@1641: { std.status.using.comma
b@1641:   start.entry
b@1641:   if.url.alt.interword.spacing
b@1641:   format.authors output
b@1641:   name.or.dash
b@1641:   format.book.title "title" output.warn
b@1641:   format.howpublished "howpublished" bibinfo.check output 
b@1641:   format.organization.institution.standard.type.number output
b@1641:   format.revision output
b@1641:   format.date output
b@1641:   format.note output
b@1641:   format.url output
b@1641:   fin.entry
b@1641:   if.url.std.interword.spacing
b@1641: }
b@1641: 
b@1641: FUNCTION {techreport}
b@1641: { std.status.using.comma
b@1641:   start.entry
b@1641:   if.url.alt.interword.spacing
b@1641:   format.authors "author" output.warn
b@1641:   name.or.dash
b@1641:   format.article.title "title" output.warn
b@1641:   format.howpublished "howpublished" bibinfo.check output 
b@1641:   format.institution "institution" bibinfo.warn output
b@1641:   format.address "address" bibinfo.check output
b@1641:   format.tech.report.number output.nonnull
b@1641:   format.date "year" output.warn
b@1641:   format.note output
b@1641:   format.url output
b@1641:   fin.entry
b@1641:   if.url.std.interword.spacing
b@1641: }
b@1641: 
b@1641: FUNCTION {unpublished}
b@1641: { std.status.using.comma
b@1641:   start.entry
b@1641:   if.url.alt.interword.spacing
b@1641:   format.authors "author" output.warn
b@1641:   name.or.dash
b@1641:   format.article.title "title" output.warn
b@1641:   format.date output
b@1641:   format.note "note" output.warn
b@1641:   format.url output
b@1641:   fin.entry
b@1641:   if.url.std.interword.spacing
b@1641: }
b@1641: 
b@1641: 
b@1641: % The special entry type which provides the user interface to the
b@1641: % BST controls
b@1641: FUNCTION {IEEEtranBSTCTL}
b@1641: { is.print.banners.to.terminal
b@1641:     { "** IEEEtran BST control entry " quote$ * cite$ * quote$ * " detected." *
b@1641:       top$
b@1641:     }
b@1641:     { skip$ }
b@1641:   if$
b@1641:   CTLuse_article_number
b@1641:   empty$
b@1641:     { skip$ }
b@1641:     { CTLuse_article_number
b@1641:       yes.no.to.int
b@1641:       'is.use.number.for.article :=
b@1641:     }
b@1641:   if$
b@1641:   CTLuse_paper
b@1641:   empty$
b@1641:     { skip$ }
b@1641:     { CTLuse_paper
b@1641:       yes.no.to.int
b@1641:       'is.use.paper :=
b@1641:     }
b@1641:   if$
b@1641:   CTLuse_forced_etal
b@1641:   empty$
b@1641:     { skip$ }
b@1641:     { CTLuse_forced_etal
b@1641:       yes.no.to.int
b@1641:       'is.forced.et.al :=
b@1641:     }
b@1641:   if$
b@1641:   CTLmax_names_forced_etal
b@1641:   empty$
b@1641:     { skip$ }
b@1641:     { CTLmax_names_forced_etal
b@1641:       string.to.integer
b@1641:       'max.num.names.before.forced.et.al :=
b@1641:     }
b@1641:   if$
b@1641:   CTLnames_show_etal
b@1641:   empty$
b@1641:     { skip$ }
b@1641:     { CTLnames_show_etal
b@1641:       string.to.integer
b@1641:       'num.names.shown.with.forced.et.al :=
b@1641:     }
b@1641:   if$
b@1641:   CTLuse_alt_spacing
b@1641:   empty$
b@1641:     { skip$ }
b@1641:     { CTLuse_alt_spacing
b@1641:       yes.no.to.int
b@1641:       'is.use.alt.interword.spacing :=
b@1641:     }
b@1641:   if$
b@1641:   CTLalt_stretch_factor
b@1641:   empty$
b@1641:     { skip$ }
b@1641:     { CTLalt_stretch_factor
b@1641:       'ALTinterwordstretchfactor :=
b@1641:       "\renewcommand{\BIBentryALTinterwordstretchfactor}{"
b@1641:       ALTinterwordstretchfactor * "}" *
b@1641:       write$ newline$
b@1641:     }
b@1641:   if$
b@1641:   CTLdash_repeated_names
b@1641:   empty$
b@1641:     { skip$ }
b@1641:     { CTLdash_repeated_names
b@1641:       yes.no.to.int
b@1641:       'is.dash.repeated.names :=
b@1641:     }
b@1641:   if$
b@1641:   CTLname_format_string
b@1641:   empty$
b@1641:     { skip$ }
b@1641:     { CTLname_format_string
b@1641:       'name.format.string :=
b@1641:     }
b@1641:   if$
b@1641:   CTLname_latex_cmd
b@1641:   empty$
b@1641:     { skip$ }
b@1641:     { CTLname_latex_cmd
b@1641:       'name.latex.cmd :=
b@1641:     }
b@1641:   if$
b@1641:   CTLname_url_prefix
b@1641:   missing$
b@1641:     { skip$ }
b@1641:     { CTLname_url_prefix
b@1641:       'name.url.prefix :=
b@1641:     }
b@1641:   if$
b@1641: 
b@1641: 
b@1641:   num.names.shown.with.forced.et.al max.num.names.before.forced.et.al >
b@1641:     { "CTLnames_show_etal cannot be greater than CTLmax_names_forced_etal in " cite$ * warning$ 
b@1641:       max.num.names.before.forced.et.al 'num.names.shown.with.forced.et.al :=
b@1641:     }
b@1641:     { skip$ }
b@1641:   if$
b@1641: }
b@1641: 
b@1641: 
b@1641: %%%%%%%%%%%%%%%%%%%
b@1641: %% ENTRY ALIASES %%
b@1641: %%%%%%%%%%%%%%%%%%%
b@1641: FUNCTION {conference}{inproceedings}
b@1641: FUNCTION {online}{electronic}
b@1641: FUNCTION {internet}{electronic}
b@1641: FUNCTION {webpage}{electronic}
b@1641: FUNCTION {www}{electronic}
b@1641: FUNCTION {default.type}{misc}
b@1641: 
b@1641: 
b@1641: 
b@1641: %%%%%%%%%%%%%%%%%%
b@1641: %% MAIN PROGRAM %%
b@1641: %%%%%%%%%%%%%%%%%%
b@1641: 
b@1641: READ
b@1641: 
b@1641: EXECUTE {initialize.controls}
b@1641: EXECUTE {initialize.status.constants}
b@1641: EXECUTE {banner.message}
b@1641: 
b@1641: EXECUTE {initialize.longest.label}
b@1641: ITERATE {longest.label.pass}
b@1641: 
b@1641: EXECUTE {begin.bib}
b@1641: ITERATE {call.type$}
b@1641: EXECUTE {end.bib}
b@1641: 
b@1641: EXECUTE{completed.message}
b@1641: 
b@1641: 
b@1641: %% That's all folks, mds.




