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