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