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