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