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