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