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