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