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




