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