annotate docs/SMC15/IEEEtran.bst @ 1186:fd5390509d52

Added tag 1.1.0 for changeset 63c4163fc705
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Wed, 23 Dec 2015 14:48:48 +0000
parents 07c996307cbd
children
rev   line source
n@749 1 %%
n@749 2 %% IEEEtran.bst
n@749 3 %% BibTeX Bibliography Style file for IEEE Journals and Conferences (unsorted)
n@749 4 %% Version 1.12 (2007/01/11)
n@749 5 %%
n@749 6 %% Copyright (c) 2003-2007 Michael Shell
n@749 7 %%
n@749 8 %% Original starting code base and algorithms obtained from the output of
n@749 9 %% Patrick W. Daly's makebst package as well as from prior versions of
n@749 10 %% IEEE BibTeX styles:
n@749 11 %%
n@749 12 %% 1. Howard Trickey and Oren Patashnik's ieeetr.bst (1985/1988)
n@749 13 %% 2. Silvano Balemi and Richard H. Roy's IEEEbib.bst (1993)
n@749 14 %%
n@749 15 %% Support sites:
n@749 16 %% http://www.michaelshell.org/tex/ieeetran/
n@749 17 %% http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/
n@749 18 %% and/or
n@749 19 %% http://www.ieee.org/
n@749 20 %%
n@749 21 %% For use with BibTeX version 0.99a or later
n@749 22 %%
n@749 23 %% This is a numerical citation style.
n@749 24 %%
n@749 25 %%*************************************************************************
n@749 26 %% Legal Notice:
n@749 27 %% This code is offered as-is without any warranty either expressed or
n@749 28 %% implied; without even the implied warranty of MERCHANTABILITY or
n@749 29 %% FITNESS FOR A PARTICULAR PURPOSE!
n@749 30 %% User assumes all risk.
n@749 31 %% In no event shall IEEE or any contributor to this code be liable for
n@749 32 %% any damages or losses, including, but not limited to, incidental,
n@749 33 %% consequential, or any other damages, resulting from the use or misuse
n@749 34 %% of any information contained here.
n@749 35 %%
n@749 36 %% All comments are the opinions of their respective authors and are not
n@749 37 %% necessarily endorsed by the IEEE.
n@749 38 %%
n@749 39 %% This work is distributed under the LaTeX Project Public License (LPPL)
n@749 40 %% ( http://www.latex-project.org/ ) version 1.3, and may be freely used,
n@749 41 %% distributed and modified. A copy of the LPPL, version 1.3, is included
n@749 42 %% in the base LaTeX documentation of all distributions of LaTeX released
n@749 43 %% 2003/12/01 or later.
n@749 44 %% Retain all contribution notices and credits.
n@749 45 %% ** Modified files should be clearly indicated as such, including **
n@749 46 %% ** renaming them and changing author support contact information. **
n@749 47 %%
n@749 48 %% File list of work: IEEEabrv.bib, IEEEfull.bib, IEEEexample.bib,
n@749 49 %% IEEEtran.bst, IEEEtranS.bst, IEEEtranSA.bst,
n@749 50 %% IEEEtranN.bst, IEEEtranSN.bst, IEEEtran_bst_HOWTO.pdf
n@749 51 %%*************************************************************************
n@749 52 %
n@749 53 %
n@749 54 % Changelog:
n@749 55 %
n@749 56 % 1.00 (2002/08/13) Initial release
n@749 57 %
n@749 58 % 1.10 (2002/09/27)
n@749 59 % 1. Corrected minor bug for improperly formed warning message when a
n@749 60 % book was not given a title. Thanks to Ming Kin Lai for reporting this.
n@749 61 % 2. Added support for CTLname_format_string and CTLname_latex_cmd fields
n@749 62 % in the BST control entry type.
n@749 63 %
n@749 64 % 1.11 (2003/04/02)
n@749 65 % 1. Fixed bug with URLs containing underscores when using url.sty. Thanks
n@749 66 % to Ming Kin Lai for reporting this.
n@749 67 %
n@749 68 % 1.12 (2007/01/11)
n@749 69 % 1. Fixed bug with unwanted comma before "et al." when an entry contained
n@749 70 % more than two author names. Thanks to Pallav Gupta for reporting this.
n@749 71 % 2. Fixed bug with anomalous closing quote in tech reports that have a
n@749 72 % type, but without a number or address. Thanks to Mehrdad Mirreza for
n@749 73 % reporting this.
n@749 74 % 3. Use braces in \providecommand in begin.bib to better support
n@749 75 % latex2html. TeX style length assignments OK with recent versions
n@749 76 % of latex2html - 1.71 (2002/2/1) or later is strongly recommended.
n@749 77 % Use of the language field still causes trouble with latex2html.
n@749 78 % Thanks to Federico Beffa for reporting this.
n@749 79 % 4. Added IEEEtran.bst ID and version comment string to .bbl output.
n@749 80 % 5. Provide a \BIBdecl hook that allows the user to execute commands
n@749 81 % just prior to the first entry.
n@749 82 % 6. Use default urlstyle (is using url.sty) of "same" rather than rm to
n@749 83 % better work with a wider variety of bibliography styles.
n@749 84 % 7. Changed month abbreviations from Sept., July and June to Sep., Jul.,
n@749 85 % and Jun., respectively, as IEEE now does. Thanks to Moritz Borgmann
n@749 86 % for reporting this.
n@749 87 % 8. Control entry types should not be considered when calculating longest
n@749 88 % label width.
n@749 89 % 9. Added alias www for electronic/online.
n@749 90 % 10. Added CTLname_url_prefix control entry type.
n@749 91
n@749 92
n@749 93 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
n@749 94 %% DEFAULTS FOR THE CONTROLS OF THE BST STYLE %%
n@749 95 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
n@749 96
n@749 97 % These are the defaults for the user adjustable controls. The values used
n@749 98 % here can be overridden by the user via IEEEtranBSTCTL entry type.
n@749 99
n@749 100 % NOTE: The recommended LaTeX command to invoke a control entry type is:
n@749 101 %
n@749 102 %\makeatletter
n@749 103 %\def\bstctlcite{\@ifnextchar[{\@bstctlcite}{\@bstctlcite[@auxout]}}
n@749 104 %\def\@bstctlcite[#1]#2{\@bsphack
n@749 105 % \@for\@citeb:=#2\do{%
n@749 106 % \edef\@citeb{\expandafter\@firstofone\@citeb}%
n@749 107 % \if@filesw\immediate\write\csname #1\endcsname{\string\citation{\@citeb}}\fi}%
n@749 108 % \@esphack}
n@749 109 %\makeatother
n@749 110 %
n@749 111 % It is called at the start of the document, before the first \cite, like:
n@749 112 % \bstctlcite{IEEEexample:BSTcontrol}
n@749 113 %
n@749 114 % IEEEtran.cls V1.6 and later does provide this command.
n@749 115
n@749 116
n@749 117
n@749 118 % #0 turns off the display of the number for articles.
n@749 119 % #1 enables
n@749 120 FUNCTION {default.is.use.number.for.article} { #1 }
n@749 121
n@749 122
n@749 123 % #0 turns off the display of the paper and type fields in @inproceedings.
n@749 124 % #1 enables
n@749 125 FUNCTION {default.is.use.paper} { #1 }
n@749 126
n@749 127
n@749 128 % #0 turns off the forced use of "et al."
n@749 129 % #1 enables
n@749 130 FUNCTION {default.is.forced.et.al} { #0 }
n@749 131
n@749 132 % The maximum number of names that can be present beyond which an "et al."
n@749 133 % usage is forced. Be sure that num.names.shown.with.forced.et.al (below)
n@749 134 % is not greater than this value!
n@749 135 % Note: There are many instances of references in IEEE journals which have
n@749 136 % a very large number of authors as well as instances in which "et al." is
n@749 137 % used profusely.
n@749 138 FUNCTION {default.max.num.names.before.forced.et.al} { #10 }
n@749 139
n@749 140 % The number of names that will be shown with a forced "et al.".
n@749 141 % Must be less than or equal to max.num.names.before.forced.et.al
n@749 142 FUNCTION {default.num.names.shown.with.forced.et.al} { #1 }
n@749 143
n@749 144
n@749 145 % #0 turns off the alternate interword spacing for entries with URLs.
n@749 146 % #1 enables
n@749 147 FUNCTION {default.is.use.alt.interword.spacing} { #1 }
n@749 148
n@749 149 % If alternate interword spacing for entries with URLs is enabled, this is
n@749 150 % the interword spacing stretch factor that will be used. For example, the
n@749 151 % default "4" here means that the interword spacing in entries with URLs can
n@749 152 % stretch to four times normal. Does not have to be an integer. Note that
n@749 153 % the value specified here can be overridden by the user in their LaTeX
n@749 154 % code via a command such as:
n@749 155 % "\providecommand\BIBentryALTinterwordstretchfactor{1.5}" in addition to
n@749 156 % that via the IEEEtranBSTCTL entry type.
n@749 157 FUNCTION {default.ALTinterwordstretchfactor} { "4" }
n@749 158
n@749 159
n@749 160 % #0 turns off the "dashification" of repeated (i.e., identical to those
n@749 161 % of the previous entry) names. IEEE normally does this.
n@749 162 % #1 enables
n@749 163 FUNCTION {default.is.dash.repeated.names} { #1 }
n@749 164
n@749 165
n@749 166 % The default name format control string.
n@749 167 FUNCTION {default.name.format.string}{ "{f.~}{vv~}{ll}{, jj}" }
n@749 168
n@749 169
n@749 170 % The default LaTeX font command for the names.
n@749 171 FUNCTION {default.name.latex.cmd}{ "" }
n@749 172
n@749 173
n@749 174 % The default URL prefix.
n@749 175 FUNCTION {default.name.url.prefix}{ "[Online]. Available:" }
n@749 176
n@749 177
n@749 178 % Other controls that cannot be accessed via IEEEtranBSTCTL entry type.
n@749 179
n@749 180 % #0 turns off the terminal startup banner/completed message so as to
n@749 181 % operate more quietly.
n@749 182 % #1 enables
n@749 183 FUNCTION {is.print.banners.to.terminal} { #1 }
n@749 184
n@749 185
n@749 186
n@749 187
n@749 188 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
n@749 189 %% FILE VERSION AND BANNER %%
n@749 190 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
n@749 191
n@749 192 FUNCTION{bst.file.version} { "1.12" }
n@749 193 FUNCTION{bst.file.date} { "2007/01/11" }
n@749 194 FUNCTION{bst.file.website} { "http://www.michaelshell.org/tex/ieeetran/bibtex/" }
n@749 195
n@749 196 FUNCTION {banner.message}
n@749 197 { is.print.banners.to.terminal
n@749 198 { "-- IEEEtran.bst version" " " * bst.file.version *
n@749 199 " (" * bst.file.date * ") " * "by Michael Shell." *
n@749 200 top$
n@749 201 "-- " bst.file.website *
n@749 202 top$
n@749 203 "-- See the " quote$ * "IEEEtran_bst_HOWTO.pdf" * quote$ * " manual for usage information." *
n@749 204 top$
n@749 205 }
n@749 206 { skip$ }
n@749 207 if$
n@749 208 }
n@749 209
n@749 210 FUNCTION {completed.message}
n@749 211 { is.print.banners.to.terminal
n@749 212 { ""
n@749 213 top$
n@749 214 "Done."
n@749 215 top$
n@749 216 }
n@749 217 { skip$ }
n@749 218 if$
n@749 219 }
n@749 220
n@749 221
n@749 222
n@749 223
n@749 224 %%%%%%%%%%%%%%%%%%%%%%
n@749 225 %% STRING CONSTANTS %%
n@749 226 %%%%%%%%%%%%%%%%%%%%%%
n@749 227
n@749 228 FUNCTION {bbl.and}{ "and" }
n@749 229 FUNCTION {bbl.etal}{ "et~al." }
n@749 230 FUNCTION {bbl.editors}{ "eds." }
n@749 231 FUNCTION {bbl.editor}{ "ed." }
n@749 232 FUNCTION {bbl.edition}{ "ed." }
n@749 233 FUNCTION {bbl.volume}{ "vol." }
n@749 234 FUNCTION {bbl.of}{ "of" }
n@749 235 FUNCTION {bbl.number}{ "no." }
n@749 236 FUNCTION {bbl.in}{ "in" }
n@749 237 FUNCTION {bbl.pages}{ "pp." }
n@749 238 FUNCTION {bbl.page}{ "p." }
n@749 239 FUNCTION {bbl.chapter}{ "ch." }
n@749 240 FUNCTION {bbl.paper}{ "paper" }
n@749 241 FUNCTION {bbl.part}{ "pt." }
n@749 242 FUNCTION {bbl.patent}{ "Patent" }
n@749 243 FUNCTION {bbl.patentUS}{ "U.S." }
n@749 244 FUNCTION {bbl.revision}{ "Rev." }
n@749 245 FUNCTION {bbl.series}{ "ser." }
n@749 246 FUNCTION {bbl.standard}{ "Std." }
n@749 247 FUNCTION {bbl.techrep}{ "Tech. Rep." }
n@749 248 FUNCTION {bbl.mthesis}{ "Master's thesis" }
n@749 249 FUNCTION {bbl.phdthesis}{ "Ph.D. dissertation" }
n@749 250 FUNCTION {bbl.st}{ "st" }
n@749 251 FUNCTION {bbl.nd}{ "nd" }
n@749 252 FUNCTION {bbl.rd}{ "rd" }
n@749 253 FUNCTION {bbl.th}{ "th" }
n@749 254
n@749 255
n@749 256 % This is the LaTeX spacer that is used when a larger than normal space
n@749 257 % is called for (such as just before the address:publisher).
n@749 258 FUNCTION {large.space} { "\hskip 1em plus 0.5em minus 0.4em\relax " }
n@749 259
n@749 260 % The LaTeX code for dashes that are used to represent repeated names.
n@749 261 % Note: Some older IEEE journals used something like
n@749 262 % "\rule{0.275in}{0.5pt}\," which is fairly thick and runs right along
n@749 263 % the baseline. However, IEEE now uses a thinner, above baseline,
n@749 264 % six dash long sequence.
n@749 265 FUNCTION {repeated.name.dashes} { "------" }
n@749 266
n@749 267
n@749 268
n@749 269 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
n@749 270 %% PREDEFINED STRING MACROS %%
n@749 271 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
n@749 272
n@749 273 MACRO {jan} {"Jan."}
n@749 274 MACRO {feb} {"Feb."}
n@749 275 MACRO {mar} {"Mar."}
n@749 276 MACRO {apr} {"Apr."}
n@749 277 MACRO {may} {"May"}
n@749 278 MACRO {jun} {"Jun."}
n@749 279 MACRO {jul} {"Jul."}
n@749 280 MACRO {aug} {"Aug."}
n@749 281 MACRO {sep} {"Sep."}
n@749 282 MACRO {oct} {"Oct."}
n@749 283 MACRO {nov} {"Nov."}
n@749 284 MACRO {dec} {"Dec."}
n@749 285
n@749 286
n@749 287
n@749 288 %%%%%%%%%%%%%%%%%%
n@749 289 %% ENTRY FIELDS %%
n@749 290 %%%%%%%%%%%%%%%%%%
n@749 291
n@749 292 ENTRY
n@749 293 { address
n@749 294 assignee
n@749 295 author
n@749 296 booktitle
n@749 297 chapter
n@749 298 day
n@749 299 dayfiled
n@749 300 edition
n@749 301 editor
n@749 302 howpublished
n@749 303 institution
n@749 304 intype
n@749 305 journal
n@749 306 key
n@749 307 language
n@749 308 month
n@749 309 monthfiled
n@749 310 nationality
n@749 311 note
n@749 312 number
n@749 313 organization
n@749 314 pages
n@749 315 paper
n@749 316 publisher
n@749 317 school
n@749 318 series
n@749 319 revision
n@749 320 title
n@749 321 type
n@749 322 url
n@749 323 volume
n@749 324 year
n@749 325 yearfiled
n@749 326 CTLuse_article_number
n@749 327 CTLuse_paper
n@749 328 CTLuse_forced_etal
n@749 329 CTLmax_names_forced_etal
n@749 330 CTLnames_show_etal
n@749 331 CTLuse_alt_spacing
n@749 332 CTLalt_stretch_factor
n@749 333 CTLdash_repeated_names
n@749 334 CTLname_format_string
n@749 335 CTLname_latex_cmd
n@749 336 CTLname_url_prefix
n@749 337 }
n@749 338 {}
n@749 339 { label }
n@749 340
n@749 341
n@749 342
n@749 343
n@749 344 %%%%%%%%%%%%%%%%%%%%%%%
n@749 345 %% INTEGER VARIABLES %%
n@749 346 %%%%%%%%%%%%%%%%%%%%%%%
n@749 347
n@749 348 INTEGERS { prev.status.punct this.status.punct punct.std
n@749 349 punct.no punct.comma punct.period
n@749 350 prev.status.space this.status.space space.std
n@749 351 space.no space.normal space.large
n@749 352 prev.status.quote this.status.quote quote.std
n@749 353 quote.no quote.close
n@749 354 prev.status.nline this.status.nline nline.std
n@749 355 nline.no nline.newblock
n@749 356 status.cap cap.std
n@749 357 cap.no cap.yes}
n@749 358
n@749 359 INTEGERS { longest.label.width multiresult nameptr namesleft number.label numnames }
n@749 360
n@749 361 INTEGERS { is.use.number.for.article
n@749 362 is.use.paper
n@749 363 is.forced.et.al
n@749 364 max.num.names.before.forced.et.al
n@749 365 num.names.shown.with.forced.et.al
n@749 366 is.use.alt.interword.spacing
n@749 367 is.dash.repeated.names}
n@749 368
n@749 369
n@749 370 %%%%%%%%%%%%%%%%%%%%%%
n@749 371 %% STRING VARIABLES %%
n@749 372 %%%%%%%%%%%%%%%%%%%%%%
n@749 373
n@749 374 STRINGS { bibinfo
n@749 375 longest.label
n@749 376 oldname
n@749 377 s
n@749 378 t
n@749 379 ALTinterwordstretchfactor
n@749 380 name.format.string
n@749 381 name.latex.cmd
n@749 382 name.url.prefix}
n@749 383
n@749 384
n@749 385
n@749 386
n@749 387 %%%%%%%%%%%%%%%%%%%%%%%%%
n@749 388 %% LOW LEVEL FUNCTIONS %%
n@749 389 %%%%%%%%%%%%%%%%%%%%%%%%%
n@749 390
n@749 391 FUNCTION {initialize.controls}
n@749 392 { default.is.use.number.for.article 'is.use.number.for.article :=
n@749 393 default.is.use.paper 'is.use.paper :=
n@749 394 default.is.forced.et.al 'is.forced.et.al :=
n@749 395 default.max.num.names.before.forced.et.al 'max.num.names.before.forced.et.al :=
n@749 396 default.num.names.shown.with.forced.et.al 'num.names.shown.with.forced.et.al :=
n@749 397 default.is.use.alt.interword.spacing 'is.use.alt.interword.spacing :=
n@749 398 default.is.dash.repeated.names 'is.dash.repeated.names :=
n@749 399 default.ALTinterwordstretchfactor 'ALTinterwordstretchfactor :=
n@749 400 default.name.format.string 'name.format.string :=
n@749 401 default.name.latex.cmd 'name.latex.cmd :=
n@749 402 default.name.url.prefix 'name.url.prefix :=
n@749 403 }
n@749 404
n@749 405
n@749 406 % This IEEEtran.bst features a very powerful and flexible mechanism for
n@749 407 % controlling the capitalization, punctuation, spacing, quotation, and
n@749 408 % newlines of the formatted entry fields. (Note: IEEEtran.bst does not need
n@749 409 % or use the newline/newblock feature, but it has been implemented for
n@749 410 % possible future use.) The output states of IEEEtran.bst consist of
n@749 411 % multiple independent attributes and, as such, can be thought of as being
n@749 412 % vectors, rather than the simple scalar values ("before.all",
n@749 413 % "mid.sentence", etc.) used in most other .bst files.
n@749 414 %
n@749 415 % The more flexible and complex design used here was motivated in part by
n@749 416 % IEEE's rather unusual bibliography style. For example, IEEE ends the
n@749 417 % previous field item with a period and large space prior to the publisher
n@749 418 % address; the @electronic entry types use periods as inter-item punctuation
n@749 419 % rather than the commas used by the other entry types; and URLs are never
n@749 420 % followed by periods even though they are the last item in the entry.
n@749 421 % Although it is possible to accommodate these features with the conventional
n@749 422 % output state system, the seemingly endless exceptions make for convoluted,
n@749 423 % unreliable and difficult to maintain code.
n@749 424 %
n@749 425 % IEEEtran.bst's output state system can be easily understood via a simple
n@749 426 % illustration of two most recently formatted entry fields (on the stack):
n@749 427 %
n@749 428 % CURRENT_ITEM
n@749 429 % "PREVIOUS_ITEM
n@749 430 %
n@749 431 % which, in this example, is to eventually appear in the bibliography as:
n@749 432 %
n@749 433 % "PREVIOUS_ITEM," CURRENT_ITEM
n@749 434 %
n@749 435 % It is the job of the output routine to take the previous item off of the
n@749 436 % stack (while leaving the current item at the top of the stack), apply its
n@749 437 % trailing punctuation (including closing quote marks) and spacing, and then
n@749 438 % to write the result to BibTeX's output buffer:
n@749 439 %
n@749 440 % "PREVIOUS_ITEM,"
n@749 441 %
n@749 442 % Punctuation (and spacing) between items is often determined by both of the
n@749 443 % items rather than just the first one. The presence of quotation marks
n@749 444 % further complicates the situation because, in standard English, trailing
n@749 445 % punctuation marks are supposed to be contained within the quotes.
n@749 446 %
n@749 447 % IEEEtran.bst maintains two output state (aka "status") vectors which
n@749 448 % correspond to the previous and current (aka "this") items. Each vector
n@749 449 % consists of several independent attributes which track punctuation,
n@749 450 % spacing, quotation, and newlines. Capitalization status is handled by a
n@749 451 % separate scalar because the format routines, not the output routine,
n@749 452 % handle capitalization and, therefore, there is no need to maintain the
n@749 453 % capitalization attribute for both the "previous" and "this" items.
n@749 454 %
n@749 455 % When a format routine adds a new item, it copies the current output status
n@749 456 % vector to the previous output status vector and (usually) resets the
n@749 457 % current (this) output status vector to a "standard status" vector. Using a
n@749 458 % "standard status" vector in this way allows us to redefine what we mean by
n@749 459 % "standard status" at the start of each entry handler and reuse the same
n@749 460 % format routines under the various inter-item separation schemes. For
n@749 461 % example, the standard status vector for the @book entry type may use
n@749 462 % commas for item separators, while the @electronic type may use periods,
n@749 463 % yet both entry handlers exploit many of the exact same format routines.
n@749 464 %
n@749 465 % Because format routines have write access to the output status vector of
n@749 466 % the previous item, they can override the punctuation choices of the
n@749 467 % previous format routine! Therefore, it becomes trivial to implement rules
n@749 468 % such as "Always use a period and a large space before the publisher." By
n@749 469 % pushing the generation of the closing quote mark to the output routine, we
n@749 470 % avoid all the problems caused by having to close a quote before having all
n@749 471 % the information required to determine what the punctuation should be.
n@749 472 %
n@749 473 % The IEEEtran.bst output state system can easily be expanded if needed.
n@749 474 % For instance, it is easy to add a "space.tie" attribute value if the
n@749 475 % bibliography rules mandate that two items have to be joined with an
n@749 476 % unbreakable space.
n@749 477
n@749 478 FUNCTION {initialize.status.constants}
n@749 479 { #0 'punct.no :=
n@749 480 #1 'punct.comma :=
n@749 481 #2 'punct.period :=
n@749 482 #0 'space.no :=
n@749 483 #1 'space.normal :=
n@749 484 #2 'space.large :=
n@749 485 #0 'quote.no :=
n@749 486 #1 'quote.close :=
n@749 487 #0 'cap.no :=
n@749 488 #1 'cap.yes :=
n@749 489 #0 'nline.no :=
n@749 490 #1 'nline.newblock :=
n@749 491 }
n@749 492
n@749 493 FUNCTION {std.status.using.comma}
n@749 494 { punct.comma 'punct.std :=
n@749 495 space.normal 'space.std :=
n@749 496 quote.no 'quote.std :=
n@749 497 nline.no 'nline.std :=
n@749 498 cap.no 'cap.std :=
n@749 499 }
n@749 500
n@749 501 FUNCTION {std.status.using.period}
n@749 502 { punct.period 'punct.std :=
n@749 503 space.normal 'space.std :=
n@749 504 quote.no 'quote.std :=
n@749 505 nline.no 'nline.std :=
n@749 506 cap.yes 'cap.std :=
n@749 507 }
n@749 508
n@749 509 FUNCTION {initialize.prev.this.status}
n@749 510 { punct.no 'prev.status.punct :=
n@749 511 space.no 'prev.status.space :=
n@749 512 quote.no 'prev.status.quote :=
n@749 513 nline.no 'prev.status.nline :=
n@749 514 punct.no 'this.status.punct :=
n@749 515 space.no 'this.status.space :=
n@749 516 quote.no 'this.status.quote :=
n@749 517 nline.no 'this.status.nline :=
n@749 518 cap.yes 'status.cap :=
n@749 519 }
n@749 520
n@749 521 FUNCTION {this.status.std}
n@749 522 { punct.std 'this.status.punct :=
n@749 523 space.std 'this.status.space :=
n@749 524 quote.std 'this.status.quote :=
n@749 525 nline.std 'this.status.nline :=
n@749 526 }
n@749 527
n@749 528 FUNCTION {cap.status.std}{ cap.std 'status.cap := }
n@749 529
n@749 530 FUNCTION {this.to.prev.status}
n@749 531 { this.status.punct 'prev.status.punct :=
n@749 532 this.status.space 'prev.status.space :=
n@749 533 this.status.quote 'prev.status.quote :=
n@749 534 this.status.nline 'prev.status.nline :=
n@749 535 }
n@749 536
n@749 537
n@749 538 FUNCTION {not}
n@749 539 { { #0 }
n@749 540 { #1 }
n@749 541 if$
n@749 542 }
n@749 543
n@749 544 FUNCTION {and}
n@749 545 { { skip$ }
n@749 546 { pop$ #0 }
n@749 547 if$
n@749 548 }
n@749 549
n@749 550 FUNCTION {or}
n@749 551 { { pop$ #1 }
n@749 552 { skip$ }
n@749 553 if$
n@749 554 }
n@749 555
n@749 556
n@749 557 % convert the strings "yes" or "no" to #1 or #0 respectively
n@749 558 FUNCTION {yes.no.to.int}
n@749 559 { "l" change.case$ duplicate$
n@749 560 "yes" =
n@749 561 { pop$ #1 }
n@749 562 { duplicate$ "no" =
n@749 563 { pop$ #0 }
n@749 564 { "unknown boolean " quote$ * swap$ * quote$ *
n@749 565 " in " * cite$ * warning$
n@749 566 #0
n@749 567 }
n@749 568 if$
n@749 569 }
n@749 570 if$
n@749 571 }
n@749 572
n@749 573
n@749 574 % pushes true if the single char string on the stack is in the
n@749 575 % range of "0" to "9"
n@749 576 FUNCTION {is.num}
n@749 577 { chr.to.int$
n@749 578 duplicate$ "0" chr.to.int$ < not
n@749 579 swap$ "9" chr.to.int$ > not and
n@749 580 }
n@749 581
n@749 582 % multiplies the integer on the stack by a factor of 10
n@749 583 FUNCTION {bump.int.mag}
n@749 584 { #0 'multiresult :=
n@749 585 { duplicate$ #0 > }
n@749 586 { #1 -
n@749 587 multiresult #10 +
n@749 588 'multiresult :=
n@749 589 }
n@749 590 while$
n@749 591 pop$
n@749 592 multiresult
n@749 593 }
n@749 594
n@749 595 % converts a single character string on the stack to an integer
n@749 596 FUNCTION {char.to.integer}
n@749 597 { duplicate$
n@749 598 is.num
n@749 599 { chr.to.int$ "0" chr.to.int$ - }
n@749 600 {"noninteger character " quote$ * swap$ * quote$ *
n@749 601 " in integer field of " * cite$ * warning$
n@749 602 #0
n@749 603 }
n@749 604 if$
n@749 605 }
n@749 606
n@749 607 % converts a string on the stack to an integer
n@749 608 FUNCTION {string.to.integer}
n@749 609 { duplicate$ text.length$ 'namesleft :=
n@749 610 #1 'nameptr :=
n@749 611 #0 'numnames :=
n@749 612 { nameptr namesleft > not }
n@749 613 { duplicate$ nameptr #1 substring$
n@749 614 char.to.integer numnames bump.int.mag +
n@749 615 'numnames :=
n@749 616 nameptr #1 +
n@749 617 'nameptr :=
n@749 618 }
n@749 619 while$
n@749 620 pop$
n@749 621 numnames
n@749 622 }
n@749 623
n@749 624
n@749 625
n@749 626
n@749 627 % The output routines write out the *next* to the top (previous) item on the
n@749 628 % stack, adding punctuation and such as needed. Since IEEEtran.bst maintains
n@749 629 % the output status for the top two items on the stack, these output
n@749 630 % routines have to consider the previous output status (which corresponds to
n@749 631 % the item that is being output). Full independent control of punctuation,
n@749 632 % closing quote marks, spacing, and newblock is provided.
n@749 633 %
n@749 634 % "output.nonnull" does not check for the presence of a previous empty
n@749 635 % item.
n@749 636 %
n@749 637 % "output" does check for the presence of a previous empty item and will
n@749 638 % remove an empty item rather than outputing it.
n@749 639 %
n@749 640 % "output.warn" is like "output", but will issue a warning if it detects
n@749 641 % an empty item.
n@749 642
n@749 643 FUNCTION {output.nonnull}
n@749 644 { swap$
n@749 645 prev.status.punct punct.comma =
n@749 646 { "," * }
n@749 647 { skip$ }
n@749 648 if$
n@749 649 prev.status.punct punct.period =
n@749 650 { add.period$ }
n@749 651 { skip$ }
n@749 652 if$
n@749 653 prev.status.quote quote.close =
n@749 654 { "''" * }
n@749 655 { skip$ }
n@749 656 if$
n@749 657 prev.status.space space.normal =
n@749 658 { " " * }
n@749 659 { skip$ }
n@749 660 if$
n@749 661 prev.status.space space.large =
n@749 662 { large.space * }
n@749 663 { skip$ }
n@749 664 if$
n@749 665 write$
n@749 666 prev.status.nline nline.newblock =
n@749 667 { newline$ "\newblock " write$ }
n@749 668 { skip$ }
n@749 669 if$
n@749 670 }
n@749 671
n@749 672 FUNCTION {output}
n@749 673 { duplicate$ empty$
n@749 674 'pop$
n@749 675 'output.nonnull
n@749 676 if$
n@749 677 }
n@749 678
n@749 679 FUNCTION {output.warn}
n@749 680 { 't :=
n@749 681 duplicate$ empty$
n@749 682 { pop$ "empty " t * " in " * cite$ * warning$ }
n@749 683 'output.nonnull
n@749 684 if$
n@749 685 }
n@749 686
n@749 687 % "fin.entry" is the output routine that handles the last item of the entry
n@749 688 % (which will be on the top of the stack when "fin.entry" is called).
n@749 689
n@749 690 FUNCTION {fin.entry}
n@749 691 { this.status.punct punct.no =
n@749 692 { skip$ }
n@749 693 { add.period$ }
n@749 694 if$
n@749 695 this.status.quote quote.close =
n@749 696 { "''" * }
n@749 697 { skip$ }
n@749 698 if$
n@749 699 write$
n@749 700 newline$
n@749 701 }
n@749 702
n@749 703
n@749 704 FUNCTION {is.last.char.not.punct}
n@749 705 { duplicate$
n@749 706 "}" * add.period$
n@749 707 #-1 #1 substring$ "." =
n@749 708 }
n@749 709
n@749 710 FUNCTION {is.multiple.pages}
n@749 711 { 't :=
n@749 712 #0 'multiresult :=
n@749 713 { multiresult not
n@749 714 t empty$ not
n@749 715 and
n@749 716 }
n@749 717 { t #1 #1 substring$
n@749 718 duplicate$ "-" =
n@749 719 swap$ duplicate$ "," =
n@749 720 swap$ "+" =
n@749 721 or or
n@749 722 { #1 'multiresult := }
n@749 723 { t #2 global.max$ substring$ 't := }
n@749 724 if$
n@749 725 }
n@749 726 while$
n@749 727 multiresult
n@749 728 }
n@749 729
n@749 730 FUNCTION {capitalize}{ "u" change.case$ "t" change.case$ }
n@749 731
n@749 732 FUNCTION {emphasize}
n@749 733 { duplicate$ empty$
n@749 734 { pop$ "" }
n@749 735 { "\emph{" swap$ * "}" * }
n@749 736 if$
n@749 737 }
n@749 738
n@749 739 FUNCTION {do.name.latex.cmd}
n@749 740 { name.latex.cmd
n@749 741 empty$
n@749 742 { skip$ }
n@749 743 { name.latex.cmd "{" * swap$ * "}" * }
n@749 744 if$
n@749 745 }
n@749 746
n@749 747 % IEEEtran.bst uses its own \BIBforeignlanguage command which directly
n@749 748 % invokes the TeX hyphenation patterns without the need of the Babel
n@749 749 % package. Babel does a lot more than switch hyphenation patterns and
n@749 750 % its loading can cause unintended effects in many class files (such as
n@749 751 % IEEEtran.cls).
n@749 752 FUNCTION {select.language}
n@749 753 { duplicate$ empty$ 'pop$
n@749 754 { language empty$ 'skip$
n@749 755 { "\BIBforeignlanguage{" language * "}{" * swap$ * "}" * }
n@749 756 if$
n@749 757 }
n@749 758 if$
n@749 759 }
n@749 760
n@749 761 FUNCTION {tie.or.space.prefix}
n@749 762 { duplicate$ text.length$ #3 <
n@749 763 { "~" }
n@749 764 { " " }
n@749 765 if$
n@749 766 swap$
n@749 767 }
n@749 768
n@749 769 FUNCTION {get.bbl.editor}
n@749 770 { editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ }
n@749 771
n@749 772 FUNCTION {space.word}{ " " swap$ * " " * }
n@749 773
n@749 774
n@749 775 % Field Conditioners, Converters, Checkers and External Interfaces
n@749 776
n@749 777 FUNCTION {empty.field.to.null.string}
n@749 778 { duplicate$ empty$
n@749 779 { pop$ "" }
n@749 780 { skip$ }
n@749 781 if$
n@749 782 }
n@749 783
n@749 784 FUNCTION {either.or.check}
n@749 785 { empty$
n@749 786 { pop$ }
n@749 787 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
n@749 788 if$
n@749 789 }
n@749 790
n@749 791 FUNCTION {empty.entry.warn}
n@749 792 { author empty$ title empty$ howpublished empty$
n@749 793 month empty$ year empty$ note empty$ url empty$
n@749 794 and and and and and and
n@749 795 { "all relevant fields are empty in " cite$ * warning$ }
n@749 796 'skip$
n@749 797 if$
n@749 798 }
n@749 799
n@749 800
n@749 801 % The bibinfo system provides a way for the electronic parsing/acquisition
n@749 802 % of a bibliography's contents as is done by ReVTeX. For example, a field
n@749 803 % could be entered into the bibliography as:
n@749 804 % \bibinfo{volume}{2}
n@749 805 % Only the "2" would show up in the document, but the LaTeX \bibinfo command
n@749 806 % could do additional things with the information. IEEEtran.bst does provide
n@749 807 % a \bibinfo command via "\providecommand{\bibinfo}[2]{#2}". However, it is
n@749 808 % currently not used as the bogus bibinfo functions defined here output the
n@749 809 % entry values directly without the \bibinfo wrapper. The bibinfo functions
n@749 810 % themselves (and the calls to them) are retained for possible future use.
n@749 811 %
n@749 812 % bibinfo.check avoids acting on missing fields while bibinfo.warn will
n@749 813 % issue a warning message if a missing field is detected. Prior to calling
n@749 814 % the bibinfo functions, the user should push the field value and then its
n@749 815 % name string, in that order.
n@749 816
n@749 817 FUNCTION {bibinfo.check}
n@749 818 { swap$ duplicate$ missing$
n@749 819 { pop$ pop$ "" }
n@749 820 { duplicate$ empty$
n@749 821 { swap$ pop$ }
n@749 822 { swap$ pop$ }
n@749 823 if$
n@749 824 }
n@749 825 if$
n@749 826 }
n@749 827
n@749 828 FUNCTION {bibinfo.warn}
n@749 829 { swap$ duplicate$ missing$
n@749 830 { swap$ "missing " swap$ * " in " * cite$ * warning$ pop$ "" }
n@749 831 { duplicate$ empty$
n@749 832 { swap$ "empty " swap$ * " in " * cite$ * warning$ }
n@749 833 { swap$ pop$ }
n@749 834 if$
n@749 835 }
n@749 836 if$
n@749 837 }
n@749 838
n@749 839
n@749 840 % IEEE separates large numbers with more than 4 digits into groups of
n@749 841 % three. IEEE uses a small space to separate these number groups.
n@749 842 % Typical applications include patent and page numbers.
n@749 843
n@749 844 % number of consecutive digits required to trigger the group separation.
n@749 845 FUNCTION {large.number.trigger}{ #5 }
n@749 846
n@749 847 % For numbers longer than the trigger, this is the blocksize of the groups.
n@749 848 % The blocksize must be less than the trigger threshold, and 2 * blocksize
n@749 849 % must be greater than the trigger threshold (can't do more than one
n@749 850 % separation on the initial trigger).
n@749 851 FUNCTION {large.number.blocksize}{ #3 }
n@749 852
n@749 853 % What is actually inserted between the number groups.
n@749 854 FUNCTION {large.number.separator}{ "\," }
n@749 855
n@749 856 % So as to save on integer variables by reusing existing ones, numnames
n@749 857 % holds the current number of consecutive digits read and nameptr holds
n@749 858 % the number that will trigger an inserted space.
n@749 859 FUNCTION {large.number.separate}
n@749 860 { 't :=
n@749 861 ""
n@749 862 #0 'numnames :=
n@749 863 large.number.trigger 'nameptr :=
n@749 864 { t empty$ not }
n@749 865 { t #-1 #1 substring$ is.num
n@749 866 { numnames #1 + 'numnames := }
n@749 867 { #0 'numnames :=
n@749 868 large.number.trigger 'nameptr :=
n@749 869 }
n@749 870 if$
n@749 871 t #-1 #1 substring$ swap$ *
n@749 872 t #-2 global.max$ substring$ 't :=
n@749 873 numnames nameptr =
n@749 874 { duplicate$ #1 nameptr large.number.blocksize - substring$ swap$
n@749 875 nameptr large.number.blocksize - #1 + global.max$ substring$
n@749 876 large.number.separator swap$ * *
n@749 877 nameptr large.number.blocksize - 'numnames :=
n@749 878 large.number.blocksize #1 + 'nameptr :=
n@749 879 }
n@749 880 { skip$ }
n@749 881 if$
n@749 882 }
n@749 883 while$
n@749 884 }
n@749 885
n@749 886 % Converts all single dashes "-" to double dashes "--".
n@749 887 FUNCTION {n.dashify}
n@749 888 { large.number.separate
n@749 889 't :=
n@749 890 ""
n@749 891 { t empty$ not }
n@749 892 { t #1 #1 substring$ "-" =
n@749 893 { t #1 #2 substring$ "--" = not
n@749 894 { "--" *
n@749 895 t #2 global.max$ substring$ 't :=
n@749 896 }
n@749 897 { { t #1 #1 substring$ "-" = }
n@749 898 { "-" *
n@749 899 t #2 global.max$ substring$ 't :=
n@749 900 }
n@749 901 while$
n@749 902 }
n@749 903 if$
n@749 904 }
n@749 905 { t #1 #1 substring$ *
n@749 906 t #2 global.max$ substring$ 't :=
n@749 907 }
n@749 908 if$
n@749 909 }
n@749 910 while$
n@749 911 }
n@749 912
n@749 913
n@749 914 % This function detects entries with names that are identical to that of
n@749 915 % the previous entry and replaces the repeated names with dashes (if the
n@749 916 % "is.dash.repeated.names" user control is nonzero).
n@749 917 FUNCTION {name.or.dash}
n@749 918 { 's :=
n@749 919 oldname empty$
n@749 920 { s 'oldname := s }
n@749 921 { s oldname =
n@749 922 { is.dash.repeated.names
n@749 923 { repeated.name.dashes }
n@749 924 { s 'oldname := s }
n@749 925 if$
n@749 926 }
n@749 927 { s 'oldname := s }
n@749 928 if$
n@749 929 }
n@749 930 if$
n@749 931 }
n@749 932
n@749 933 % Converts the number string on the top of the stack to
n@749 934 % "numerical ordinal form" (e.g., "7" to "7th"). There is
n@749 935 % no artificial limit to the upper bound of the numbers as the
n@749 936 % least significant digit always determines the ordinal form.
n@749 937 FUNCTION {num.to.ordinal}
n@749 938 { duplicate$ #-1 #1 substring$ "1" =
n@749 939 { bbl.st * }
n@749 940 { duplicate$ #-1 #1 substring$ "2" =
n@749 941 { bbl.nd * }
n@749 942 { duplicate$ #-1 #1 substring$ "3" =
n@749 943 { bbl.rd * }
n@749 944 { bbl.th * }
n@749 945 if$
n@749 946 }
n@749 947 if$
n@749 948 }
n@749 949 if$
n@749 950 }
n@749 951
n@749 952 % If the string on the top of the stack begins with a number,
n@749 953 % (e.g., 11th) then replace the string with the leading number
n@749 954 % it contains. Otherwise retain the string as-is. s holds the
n@749 955 % extracted number, t holds the part of the string that remains
n@749 956 % to be scanned.
n@749 957 FUNCTION {extract.num}
n@749 958 { duplicate$ 't :=
n@749 959 "" 's :=
n@749 960 { t empty$ not }
n@749 961 { t #1 #1 substring$
n@749 962 t #2 global.max$ substring$ 't :=
n@749 963 duplicate$ is.num
n@749 964 { s swap$ * 's := }
n@749 965 { pop$ "" 't := }
n@749 966 if$
n@749 967 }
n@749 968 while$
n@749 969 s empty$
n@749 970 'skip$
n@749 971 { pop$ s }
n@749 972 if$
n@749 973 }
n@749 974
n@749 975 % Converts the word number string on the top of the stack to
n@749 976 % Arabic string form. Will be successful up to "tenth".
n@749 977 FUNCTION {word.to.num}
n@749 978 { duplicate$ "l" change.case$ 's :=
n@749 979 s "first" =
n@749 980 { pop$ "1" }
n@749 981 { skip$ }
n@749 982 if$
n@749 983 s "second" =
n@749 984 { pop$ "2" }
n@749 985 { skip$ }
n@749 986 if$
n@749 987 s "third" =
n@749 988 { pop$ "3" }
n@749 989 { skip$ }
n@749 990 if$
n@749 991 s "fourth" =
n@749 992 { pop$ "4" }
n@749 993 { skip$ }
n@749 994 if$
n@749 995 s "fifth" =
n@749 996 { pop$ "5" }
n@749 997 { skip$ }
n@749 998 if$
n@749 999 s "sixth" =
n@749 1000 { pop$ "6" }
n@749 1001 { skip$ }
n@749 1002 if$
n@749 1003 s "seventh" =
n@749 1004 { pop$ "7" }
n@749 1005 { skip$ }
n@749 1006 if$
n@749 1007 s "eighth" =
n@749 1008 { pop$ "8" }
n@749 1009 { skip$ }
n@749 1010 if$
n@749 1011 s "ninth" =
n@749 1012 { pop$ "9" }
n@749 1013 { skip$ }
n@749 1014 if$
n@749 1015 s "tenth" =
n@749 1016 { pop$ "10" }
n@749 1017 { skip$ }
n@749 1018 if$
n@749 1019 }
n@749 1020
n@749 1021
n@749 1022 % Converts the string on the top of the stack to numerical
n@749 1023 % ordinal (e.g., "11th") form.
n@749 1024 FUNCTION {convert.edition}
n@749 1025 { duplicate$ empty$ 'skip$
n@749 1026 { duplicate$ #1 #1 substring$ is.num
n@749 1027 { extract.num
n@749 1028 num.to.ordinal
n@749 1029 }
n@749 1030 { word.to.num
n@749 1031 duplicate$ #1 #1 substring$ is.num
n@749 1032 { num.to.ordinal }
n@749 1033 { "edition ordinal word " quote$ * edition * quote$ *
n@749 1034 " may be too high (or improper) for conversion" * " in " * cite$ * warning$
n@749 1035 }
n@749 1036 if$
n@749 1037 }
n@749 1038 if$
n@749 1039 }
n@749 1040 if$
n@749 1041 }
n@749 1042
n@749 1043
n@749 1044
n@749 1045
n@749 1046 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
n@749 1047 %% LATEX BIBLIOGRAPHY CODE %%
n@749 1048 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
n@749 1049
n@749 1050 FUNCTION {start.entry}
n@749 1051 { newline$
n@749 1052 "\bibitem{" write$
n@749 1053 cite$ write$
n@749 1054 "}" write$
n@749 1055 newline$
n@749 1056 ""
n@749 1057 initialize.prev.this.status
n@749 1058 }
n@749 1059
n@749 1060 % Here we write out all the LaTeX code that we will need. The most involved
n@749 1061 % code sequences are those that control the alternate interword spacing and
n@749 1062 % foreign language hyphenation patterns. The heavy use of \providecommand
n@749 1063 % gives users a way to override the defaults. Special thanks to Javier Bezos,
n@749 1064 % Johannes Braams, Robin Fairbairns, Heiko Oberdiek, Donald Arseneau and all
n@749 1065 % the other gurus on comp.text.tex for their help and advice on the topic of
n@749 1066 % \selectlanguage, Babel and BibTeX.
n@749 1067 FUNCTION {begin.bib}
n@749 1068 { "% Generated by IEEEtran.bst, version: " bst.file.version * " (" * bst.file.date * ")" *
n@749 1069 write$ newline$
n@749 1070 preamble$ empty$ 'skip$
n@749 1071 { preamble$ write$ newline$ }
n@749 1072 if$
n@749 1073 "\begin{thebibliography}{" longest.label * "}" *
n@749 1074 write$ newline$
n@749 1075 "\providecommand{\url}[1]{#1}"
n@749 1076 write$ newline$
n@749 1077 "\csname url@samestyle\endcsname"
n@749 1078 write$ newline$
n@749 1079 "\providecommand{\newblock}{\relax}"
n@749 1080 write$ newline$
n@749 1081 "\providecommand{\bibinfo}[2]{#2}"
n@749 1082 write$ newline$
n@749 1083 "\providecommand{\BIBentrySTDinterwordspacing}{\spaceskip=0pt\relax}"
n@749 1084 write$ newline$
n@749 1085 "\providecommand{\BIBentryALTinterwordstretchfactor}{"
n@749 1086 ALTinterwordstretchfactor * "}" *
n@749 1087 write$ newline$
n@749 1088 "\providecommand{\BIBentryALTinterwordspacing}{\spaceskip=\fontdimen2\font plus "
n@749 1089 write$ newline$
n@749 1090 "\BIBentryALTinterwordstretchfactor\fontdimen3\font minus \fontdimen4\font\relax}"
n@749 1091 write$ newline$
n@749 1092 "\providecommand{\BIBforeignlanguage}[2]{{%"
n@749 1093 write$ newline$
n@749 1094 "\expandafter\ifx\csname l@#1\endcsname\relax"
n@749 1095 write$ newline$
n@749 1096 "\typeout{** WARNING: IEEEtran.bst: No hyphenation pattern has been}%"
n@749 1097 write$ newline$
n@749 1098 "\typeout{** loaded for the language `#1'. Using the pattern for}%"
n@749 1099 write$ newline$
n@749 1100 "\typeout{** the default language instead.}%"
n@749 1101 write$ newline$
n@749 1102 "\else"
n@749 1103 write$ newline$
n@749 1104 "\language=\csname l@#1\endcsname"
n@749 1105 write$ newline$
n@749 1106 "\fi"
n@749 1107 write$ newline$
n@749 1108 "#2}}"
n@749 1109 write$ newline$
n@749 1110 "\providecommand{\BIBdecl}{\relax}"
n@749 1111 write$ newline$
n@749 1112 "\BIBdecl"
n@749 1113 write$ newline$
n@749 1114 }
n@749 1115
n@749 1116 FUNCTION {end.bib}
n@749 1117 { newline$ "\end{thebibliography}" write$ newline$ }
n@749 1118
n@749 1119 FUNCTION {if.url.alt.interword.spacing}
n@749 1120 { is.use.alt.interword.spacing
n@749 1121 {url empty$ 'skip$ {"\BIBentryALTinterwordspacing" write$ newline$} if$}
n@749 1122 { skip$ }
n@749 1123 if$
n@749 1124 }
n@749 1125
n@749 1126 FUNCTION {if.url.std.interword.spacing}
n@749 1127 { is.use.alt.interword.spacing
n@749 1128 {url empty$ 'skip$ {"\BIBentrySTDinterwordspacing" write$ newline$} if$}
n@749 1129 { skip$ }
n@749 1130 if$
n@749 1131 }
n@749 1132
n@749 1133
n@749 1134
n@749 1135
n@749 1136 %%%%%%%%%%%%%%%%%%%%%%%%
n@749 1137 %% LONGEST LABEL PASS %%
n@749 1138 %%%%%%%%%%%%%%%%%%%%%%%%
n@749 1139
n@749 1140 FUNCTION {initialize.longest.label}
n@749 1141 { "" 'longest.label :=
n@749 1142 #1 'number.label :=
n@749 1143 #0 'longest.label.width :=
n@749 1144 }
n@749 1145
n@749 1146 FUNCTION {longest.label.pass}
n@749 1147 { type$ "ieeetranbstctl" =
n@749 1148 { skip$ }
n@749 1149 { number.label int.to.str$ 'label :=
n@749 1150 number.label #1 + 'number.label :=
n@749 1151 label width$ longest.label.width >
n@749 1152 { label 'longest.label :=
n@749 1153 label width$ 'longest.label.width :=
n@749 1154 }
n@749 1155 { skip$ }
n@749 1156 if$
n@749 1157 }
n@749 1158 if$
n@749 1159 }
n@749 1160
n@749 1161
n@749 1162
n@749 1163
n@749 1164 %%%%%%%%%%%%%%%%%%%%%
n@749 1165 %% FORMAT HANDLERS %%
n@749 1166 %%%%%%%%%%%%%%%%%%%%%
n@749 1167
n@749 1168 %% Lower Level Formats (used by higher level formats)
n@749 1169
n@749 1170 FUNCTION {format.address.org.or.pub.date}
n@749 1171 { 't :=
n@749 1172 ""
n@749 1173 year empty$
n@749 1174 { "empty year in " cite$ * warning$ }
n@749 1175 { skip$ }
n@749 1176 if$
n@749 1177 address empty$ t empty$ and
n@749 1178 year empty$ and month empty$ and
n@749 1179 { skip$ }
n@749 1180 { this.to.prev.status
n@749 1181 this.status.std
n@749 1182 cap.status.std
n@749 1183 address "address" bibinfo.check *
n@749 1184 t empty$
n@749 1185 { skip$ }
n@749 1186 { punct.period 'prev.status.punct :=
n@749 1187 space.large 'prev.status.space :=
n@749 1188 address empty$
n@749 1189 { skip$ }
n@749 1190 { ": " * }
n@749 1191 if$
n@749 1192 t *
n@749 1193 }
n@749 1194 if$
n@749 1195 year empty$ month empty$ and
n@749 1196 { skip$ }
n@749 1197 { t empty$ address empty$ and
n@749 1198 { skip$ }
n@749 1199 { ", " * }
n@749 1200 if$
n@749 1201 month empty$
n@749 1202 { year empty$
n@749 1203 { skip$ }
n@749 1204 { year "year" bibinfo.check * }
n@749 1205 if$
n@749 1206 }
n@749 1207 { month "month" bibinfo.check *
n@749 1208 year empty$
n@749 1209 { skip$ }
n@749 1210 { " " * year "year" bibinfo.check * }
n@749 1211 if$
n@749 1212 }
n@749 1213 if$
n@749 1214 }
n@749 1215 if$
n@749 1216 }
n@749 1217 if$
n@749 1218 }
n@749 1219
n@749 1220
n@749 1221 FUNCTION {format.names}
n@749 1222 { 'bibinfo :=
n@749 1223 duplicate$ empty$ 'skip$ {
n@749 1224 this.to.prev.status
n@749 1225 this.status.std
n@749 1226 's :=
n@749 1227 "" 't :=
n@749 1228 #1 'nameptr :=
n@749 1229 s num.names$ 'numnames :=
n@749 1230 numnames 'namesleft :=
n@749 1231 { namesleft #0 > }
n@749 1232 { s nameptr
n@749 1233 name.format.string
n@749 1234 format.name$
n@749 1235 bibinfo bibinfo.check
n@749 1236 't :=
n@749 1237 nameptr #1 >
n@749 1238 { nameptr num.names.shown.with.forced.et.al #1 + =
n@749 1239 numnames max.num.names.before.forced.et.al >
n@749 1240 is.forced.et.al and and
n@749 1241 { "others" 't :=
n@749 1242 #1 'namesleft :=
n@749 1243 }
n@749 1244 { skip$ }
n@749 1245 if$
n@749 1246 namesleft #1 >
n@749 1247 { ", " * t do.name.latex.cmd * }
n@749 1248 { s nameptr "{ll}" format.name$ duplicate$ "others" =
n@749 1249 { 't := }
n@749 1250 { pop$ }
n@749 1251 if$
n@749 1252 t "others" =
n@749 1253 { " " * bbl.etal emphasize * }
n@749 1254 { numnames #2 >
n@749 1255 { "," * }
n@749 1256 { skip$ }
n@749 1257 if$
n@749 1258 bbl.and
n@749 1259 space.word * t do.name.latex.cmd *
n@749 1260 }
n@749 1261 if$
n@749 1262 }
n@749 1263 if$
n@749 1264 }
n@749 1265 { t do.name.latex.cmd }
n@749 1266 if$
n@749 1267 nameptr #1 + 'nameptr :=
n@749 1268 namesleft #1 - 'namesleft :=
n@749 1269 }
n@749 1270 while$
n@749 1271 cap.status.std
n@749 1272 } if$
n@749 1273 }
n@749 1274
n@749 1275
n@749 1276
n@749 1277
n@749 1278 %% Higher Level Formats
n@749 1279
n@749 1280 %% addresses/locations
n@749 1281
n@749 1282 FUNCTION {format.address}
n@749 1283 { address duplicate$ empty$ 'skip$
n@749 1284 { this.to.prev.status
n@749 1285 this.status.std
n@749 1286 cap.status.std
n@749 1287 }
n@749 1288 if$
n@749 1289 }
n@749 1290
n@749 1291
n@749 1292
n@749 1293 %% author/editor names
n@749 1294
n@749 1295 FUNCTION {format.authors}{ author "author" format.names }
n@749 1296
n@749 1297 FUNCTION {format.editors}
n@749 1298 { editor "editor" format.names duplicate$ empty$ 'skip$
n@749 1299 { ", " *
n@749 1300 get.bbl.editor
n@749 1301 capitalize
n@749 1302 *
n@749 1303 }
n@749 1304 if$
n@749 1305 }
n@749 1306
n@749 1307
n@749 1308
n@749 1309 %% date
n@749 1310
n@749 1311 FUNCTION {format.date}
n@749 1312 {
n@749 1313 month "month" bibinfo.check duplicate$ empty$
n@749 1314 year "year" bibinfo.check duplicate$ empty$
n@749 1315 { swap$ 'skip$
n@749 1316 { this.to.prev.status
n@749 1317 this.status.std
n@749 1318 cap.status.std
n@749 1319 "there's a month but no year in " cite$ * warning$ }
n@749 1320 if$
n@749 1321 *
n@749 1322 }
n@749 1323 { this.to.prev.status
n@749 1324 this.status.std
n@749 1325 cap.status.std
n@749 1326 swap$ 'skip$
n@749 1327 {
n@749 1328 swap$
n@749 1329 " " * swap$
n@749 1330 }
n@749 1331 if$
n@749 1332 *
n@749 1333 }
n@749 1334 if$
n@749 1335 }
n@749 1336
n@749 1337 FUNCTION {format.date.electronic}
n@749 1338 { month "month" bibinfo.check duplicate$ empty$
n@749 1339 year "year" bibinfo.check duplicate$ empty$
n@749 1340 { swap$
n@749 1341 { pop$ }
n@749 1342 { "there's a month but no year in " cite$ * warning$
n@749 1343 pop$ ")" * "(" swap$ *
n@749 1344 this.to.prev.status
n@749 1345 punct.no 'this.status.punct :=
n@749 1346 space.normal 'this.status.space :=
n@749 1347 quote.no 'this.status.quote :=
n@749 1348 cap.yes 'status.cap :=
n@749 1349 }
n@749 1350 if$
n@749 1351 }
n@749 1352 { swap$
n@749 1353 { swap$ pop$ ")" * "(" swap$ * }
n@749 1354 { "(" swap$ * ", " * swap$ * ")" * }
n@749 1355 if$
n@749 1356 this.to.prev.status
n@749 1357 punct.no 'this.status.punct :=
n@749 1358 space.normal 'this.status.space :=
n@749 1359 quote.no 'this.status.quote :=
n@749 1360 cap.yes 'status.cap :=
n@749 1361 }
n@749 1362 if$
n@749 1363 }
n@749 1364
n@749 1365
n@749 1366
n@749 1367 %% edition/title
n@749 1368
n@749 1369 % Note: IEEE considers the edition to be closely associated with
n@749 1370 % the title of a book. So, in IEEEtran.bst the edition is normally handled
n@749 1371 % within the formatting of the title. The format.edition function is
n@749 1372 % retained here for possible future use.
n@749 1373 FUNCTION {format.edition}
n@749 1374 { edition duplicate$ empty$ 'skip$
n@749 1375 { this.to.prev.status
n@749 1376 this.status.std
n@749 1377 convert.edition
n@749 1378 status.cap
n@749 1379 { "t" }
n@749 1380 { "l" }
n@749 1381 if$ change.case$
n@749 1382 "edition" bibinfo.check
n@749 1383 "~" * bbl.edition *
n@749 1384 cap.status.std
n@749 1385 }
n@749 1386 if$
n@749 1387 }
n@749 1388
n@749 1389 % This is used to format the booktitle of a conference proceedings.
n@749 1390 % Here we use the "intype" field to provide the user a way to
n@749 1391 % override the word "in" (e.g., with things like "presented at")
n@749 1392 % Use of intype stops the emphasis of the booktitle to indicate that
n@749 1393 % we no longer mean the written conference proceedings, but the
n@749 1394 % conference itself.
n@749 1395 FUNCTION {format.in.booktitle}
n@749 1396 { booktitle "booktitle" bibinfo.check duplicate$ empty$ 'skip$
n@749 1397 { this.to.prev.status
n@749 1398 this.status.std
n@749 1399 select.language
n@749 1400 intype missing$
n@749 1401 { emphasize
n@749 1402 bbl.in " " *
n@749 1403 }
n@749 1404 { intype " " * }
n@749 1405 if$
n@749 1406 swap$ *
n@749 1407 cap.status.std
n@749 1408 }
n@749 1409 if$
n@749 1410 }
n@749 1411
n@749 1412 % This is used to format the booktitle of collection.
n@749 1413 % Here the "intype" field is not supported, but "edition" is.
n@749 1414 FUNCTION {format.in.booktitle.edition}
n@749 1415 { booktitle "booktitle" bibinfo.check duplicate$ empty$ 'skip$
n@749 1416 { this.to.prev.status
n@749 1417 this.status.std
n@749 1418 select.language
n@749 1419 emphasize
n@749 1420 edition empty$ 'skip$
n@749 1421 { ", " *
n@749 1422 edition
n@749 1423 convert.edition
n@749 1424 "l" change.case$
n@749 1425 * "~" * bbl.edition *
n@749 1426 }
n@749 1427 if$
n@749 1428 bbl.in " " * swap$ *
n@749 1429 cap.status.std
n@749 1430 }
n@749 1431 if$
n@749 1432 }
n@749 1433
n@749 1434 FUNCTION {format.article.title}
n@749 1435 { title duplicate$ empty$ 'skip$
n@749 1436 { this.to.prev.status
n@749 1437 this.status.std
n@749 1438 "t" change.case$
n@749 1439 }
n@749 1440 if$
n@749 1441 "title" bibinfo.check
n@749 1442 duplicate$ empty$ 'skip$
n@749 1443 { quote.close 'this.status.quote :=
n@749 1444 is.last.char.not.punct
n@749 1445 { punct.std 'this.status.punct := }
n@749 1446 { punct.no 'this.status.punct := }
n@749 1447 if$
n@749 1448 select.language
n@749 1449 "``" swap$ *
n@749 1450 cap.status.std
n@749 1451 }
n@749 1452 if$
n@749 1453 }
n@749 1454
n@749 1455 FUNCTION {format.article.title.electronic}
n@749 1456 { title duplicate$ empty$ 'skip$
n@749 1457 { this.to.prev.status
n@749 1458 this.status.std
n@749 1459 cap.status.std
n@749 1460 "t" change.case$
n@749 1461 }
n@749 1462 if$
n@749 1463 "title" bibinfo.check
n@749 1464 duplicate$ empty$
n@749 1465 { skip$ }
n@749 1466 { select.language }
n@749 1467 if$
n@749 1468 }
n@749 1469
n@749 1470 FUNCTION {format.book.title.edition}
n@749 1471 { title "title" bibinfo.check
n@749 1472 duplicate$ empty$
n@749 1473 { "empty title in " cite$ * warning$ }
n@749 1474 { this.to.prev.status
n@749 1475 this.status.std
n@749 1476 select.language
n@749 1477 emphasize
n@749 1478 edition empty$ 'skip$
n@749 1479 { ", " *
n@749 1480 edition
n@749 1481 convert.edition
n@749 1482 status.cap
n@749 1483 { "t" }
n@749 1484 { "l" }
n@749 1485 if$
n@749 1486 change.case$
n@749 1487 * "~" * bbl.edition *
n@749 1488 }
n@749 1489 if$
n@749 1490 cap.status.std
n@749 1491 }
n@749 1492 if$
n@749 1493 }
n@749 1494
n@749 1495 FUNCTION {format.book.title}
n@749 1496 { title "title" bibinfo.check
n@749 1497 duplicate$ empty$ 'skip$
n@749 1498 { this.to.prev.status
n@749 1499 this.status.std
n@749 1500 cap.status.std
n@749 1501 select.language
n@749 1502 emphasize
n@749 1503 }
n@749 1504 if$
n@749 1505 }
n@749 1506
n@749 1507
n@749 1508
n@749 1509 %% journal
n@749 1510
n@749 1511 FUNCTION {format.journal}
n@749 1512 { journal duplicate$ empty$ 'skip$
n@749 1513 { this.to.prev.status
n@749 1514 this.status.std
n@749 1515 cap.status.std
n@749 1516 select.language
n@749 1517 emphasize
n@749 1518 }
n@749 1519 if$
n@749 1520 }
n@749 1521
n@749 1522
n@749 1523
n@749 1524 %% how published
n@749 1525
n@749 1526 FUNCTION {format.howpublished}
n@749 1527 { howpublished duplicate$ empty$ 'skip$
n@749 1528 { this.to.prev.status
n@749 1529 this.status.std
n@749 1530 cap.status.std
n@749 1531 }
n@749 1532 if$
n@749 1533 }
n@749 1534
n@749 1535
n@749 1536
n@749 1537 %% institutions/organization/publishers/school
n@749 1538
n@749 1539 FUNCTION {format.institution}
n@749 1540 { institution duplicate$ empty$ 'skip$
n@749 1541 { this.to.prev.status
n@749 1542 this.status.std
n@749 1543 cap.status.std
n@749 1544 }
n@749 1545 if$
n@749 1546 }
n@749 1547
n@749 1548 FUNCTION {format.organization}
n@749 1549 { organization duplicate$ empty$ 'skip$
n@749 1550 { this.to.prev.status
n@749 1551 this.status.std
n@749 1552 cap.status.std
n@749 1553 }
n@749 1554 if$
n@749 1555 }
n@749 1556
n@749 1557 FUNCTION {format.address.publisher.date}
n@749 1558 { publisher "publisher" bibinfo.warn format.address.org.or.pub.date }
n@749 1559
n@749 1560 FUNCTION {format.address.publisher.date.nowarn}
n@749 1561 { publisher "publisher" bibinfo.check format.address.org.or.pub.date }
n@749 1562
n@749 1563 FUNCTION {format.address.organization.date}
n@749 1564 { organization "organization" bibinfo.check format.address.org.or.pub.date }
n@749 1565
n@749 1566 FUNCTION {format.school}
n@749 1567 { school duplicate$ empty$ 'skip$
n@749 1568 { this.to.prev.status
n@749 1569 this.status.std
n@749 1570 cap.status.std
n@749 1571 }
n@749 1572 if$
n@749 1573 }
n@749 1574
n@749 1575
n@749 1576
n@749 1577 %% volume/number/series/chapter/pages
n@749 1578
n@749 1579 FUNCTION {format.volume}
n@749 1580 { volume empty.field.to.null.string
n@749 1581 duplicate$ empty$ 'skip$
n@749 1582 { this.to.prev.status
n@749 1583 this.status.std
n@749 1584 bbl.volume
n@749 1585 status.cap
n@749 1586 { capitalize }
n@749 1587 { skip$ }
n@749 1588 if$
n@749 1589 swap$ tie.or.space.prefix
n@749 1590 "volume" bibinfo.check
n@749 1591 * *
n@749 1592 cap.status.std
n@749 1593 }
n@749 1594 if$
n@749 1595 }
n@749 1596
n@749 1597 FUNCTION {format.number}
n@749 1598 { number empty.field.to.null.string
n@749 1599 duplicate$ empty$ 'skip$
n@749 1600 { this.to.prev.status
n@749 1601 this.status.std
n@749 1602 status.cap
n@749 1603 { bbl.number capitalize }
n@749 1604 { bbl.number }
n@749 1605 if$
n@749 1606 swap$ tie.or.space.prefix
n@749 1607 "number" bibinfo.check
n@749 1608 * *
n@749 1609 cap.status.std
n@749 1610 }
n@749 1611 if$
n@749 1612 }
n@749 1613
n@749 1614 FUNCTION {format.number.if.use.for.article}
n@749 1615 { is.use.number.for.article
n@749 1616 { format.number }
n@749 1617 { "" }
n@749 1618 if$
n@749 1619 }
n@749 1620
n@749 1621 % IEEE does not seem to tie the series so closely with the volume
n@749 1622 % and number as is done in other bibliography styles. Instead the
n@749 1623 % series is treated somewhat like an extension of the title.
n@749 1624 FUNCTION {format.series}
n@749 1625 { series empty$
n@749 1626 { "" }
n@749 1627 { this.to.prev.status
n@749 1628 this.status.std
n@749 1629 bbl.series " " *
n@749 1630 series "series" bibinfo.check *
n@749 1631 cap.status.std
n@749 1632 }
n@749 1633 if$
n@749 1634 }
n@749 1635
n@749 1636
n@749 1637 FUNCTION {format.chapter}
n@749 1638 { chapter empty$
n@749 1639 { "" }
n@749 1640 { this.to.prev.status
n@749 1641 this.status.std
n@749 1642 type empty$
n@749 1643 { bbl.chapter }
n@749 1644 { type "l" change.case$
n@749 1645 "type" bibinfo.check
n@749 1646 }
n@749 1647 if$
n@749 1648 chapter tie.or.space.prefix
n@749 1649 "chapter" bibinfo.check
n@749 1650 * *
n@749 1651 cap.status.std
n@749 1652 }
n@749 1653 if$
n@749 1654 }
n@749 1655
n@749 1656
n@749 1657 % The intended use of format.paper is for paper numbers of inproceedings.
n@749 1658 % The paper type can be overridden via the type field.
n@749 1659 % We allow the type to be displayed even if the paper number is absent
n@749 1660 % for things like "postdeadline paper"
n@749 1661 FUNCTION {format.paper}
n@749 1662 { is.use.paper
n@749 1663 { paper empty$
n@749 1664 { type empty$
n@749 1665 { "" }
n@749 1666 { this.to.prev.status
n@749 1667 this.status.std
n@749 1668 type "type" bibinfo.check
n@749 1669 cap.status.std
n@749 1670 }
n@749 1671 if$
n@749 1672 }
n@749 1673 { this.to.prev.status
n@749 1674 this.status.std
n@749 1675 type empty$
n@749 1676 { bbl.paper }
n@749 1677 { type "type" bibinfo.check }
n@749 1678 if$
n@749 1679 " " * paper
n@749 1680 "paper" bibinfo.check
n@749 1681 *
n@749 1682 cap.status.std
n@749 1683 }
n@749 1684 if$
n@749 1685 }
n@749 1686 { "" }
n@749 1687 if$
n@749 1688 }
n@749 1689
n@749 1690
n@749 1691 FUNCTION {format.pages}
n@749 1692 { pages duplicate$ empty$ 'skip$
n@749 1693 { this.to.prev.status
n@749 1694 this.status.std
n@749 1695 duplicate$ is.multiple.pages
n@749 1696 {
n@749 1697 bbl.pages swap$
n@749 1698 n.dashify
n@749 1699 }
n@749 1700 {
n@749 1701 bbl.page swap$
n@749 1702 }
n@749 1703 if$
n@749 1704 tie.or.space.prefix
n@749 1705 "pages" bibinfo.check
n@749 1706 * *
n@749 1707 cap.status.std
n@749 1708 }
n@749 1709 if$
n@749 1710 }
n@749 1711
n@749 1712
n@749 1713
n@749 1714 %% technical report number
n@749 1715
n@749 1716 FUNCTION {format.tech.report.number}
n@749 1717 { number "number" bibinfo.check
n@749 1718 this.to.prev.status
n@749 1719 this.status.std
n@749 1720 cap.status.std
n@749 1721 type duplicate$ empty$
n@749 1722 { pop$
n@749 1723 bbl.techrep
n@749 1724 }
n@749 1725 { skip$ }
n@749 1726 if$
n@749 1727 "type" bibinfo.check
n@749 1728 swap$ duplicate$ empty$
n@749 1729 { pop$ }
n@749 1730 { tie.or.space.prefix * * }
n@749 1731 if$
n@749 1732 }
n@749 1733
n@749 1734
n@749 1735
n@749 1736 %% note
n@749 1737
n@749 1738 FUNCTION {format.note}
n@749 1739 { note empty$
n@749 1740 { "" }
n@749 1741 { this.to.prev.status
n@749 1742 this.status.std
n@749 1743 punct.period 'this.status.punct :=
n@749 1744 note #1 #1 substring$
n@749 1745 duplicate$ "{" =
n@749 1746 { skip$ }
n@749 1747 { status.cap
n@749 1748 { "u" }
n@749 1749 { "l" }
n@749 1750 if$
n@749 1751 change.case$
n@749 1752 }
n@749 1753 if$
n@749 1754 note #2 global.max$ substring$ * "note" bibinfo.check
n@749 1755 cap.yes 'status.cap :=
n@749 1756 }
n@749 1757 if$
n@749 1758 }
n@749 1759
n@749 1760
n@749 1761
n@749 1762 %% patent
n@749 1763
n@749 1764 FUNCTION {format.patent.date}
n@749 1765 { this.to.prev.status
n@749 1766 this.status.std
n@749 1767 year empty$
n@749 1768 { monthfiled duplicate$ empty$
n@749 1769 { "monthfiled" bibinfo.check pop$ "" }
n@749 1770 { "monthfiled" bibinfo.check }
n@749 1771 if$
n@749 1772 dayfiled duplicate$ empty$
n@749 1773 { "dayfiled" bibinfo.check pop$ "" * }
n@749 1774 { "dayfiled" bibinfo.check
n@749 1775 monthfiled empty$
n@749 1776 { "dayfiled without a monthfiled in " cite$ * warning$
n@749 1777 *
n@749 1778 }
n@749 1779 { " " swap$ * * }
n@749 1780 if$
n@749 1781 }
n@749 1782 if$
n@749 1783 yearfiled empty$
n@749 1784 { "no year or yearfiled in " cite$ * warning$ }
n@749 1785 { yearfiled "yearfiled" bibinfo.check
n@749 1786 swap$
n@749 1787 duplicate$ empty$
n@749 1788 { pop$ }
n@749 1789 { ", " * swap$ * }
n@749 1790 if$
n@749 1791 }
n@749 1792 if$
n@749 1793 }
n@749 1794 { month duplicate$ empty$
n@749 1795 { "month" bibinfo.check pop$ "" }
n@749 1796 { "month" bibinfo.check }
n@749 1797 if$
n@749 1798 day duplicate$ empty$
n@749 1799 { "day" bibinfo.check pop$ "" * }
n@749 1800 { "day" bibinfo.check
n@749 1801 month empty$
n@749 1802 { "day without a month in " cite$ * warning$
n@749 1803 *
n@749 1804 }
n@749 1805 { " " swap$ * * }
n@749 1806 if$
n@749 1807 }
n@749 1808 if$
n@749 1809 year "year" bibinfo.check
n@749 1810 swap$
n@749 1811 duplicate$ empty$
n@749 1812 { pop$ }
n@749 1813 { ", " * swap$ * }
n@749 1814 if$
n@749 1815 }
n@749 1816 if$
n@749 1817 cap.status.std
n@749 1818 }
n@749 1819
n@749 1820 FUNCTION {format.patent.nationality.type.number}
n@749 1821 { this.to.prev.status
n@749 1822 this.status.std
n@749 1823 nationality duplicate$ empty$
n@749 1824 { "nationality" bibinfo.warn pop$ "" }
n@749 1825 { "nationality" bibinfo.check
n@749 1826 duplicate$ "l" change.case$ "united states" =
n@749 1827 { pop$ bbl.patentUS }
n@749 1828 { skip$ }
n@749 1829 if$
n@749 1830 " " *
n@749 1831 }
n@749 1832 if$
n@749 1833 type empty$
n@749 1834 { bbl.patent "type" bibinfo.check }
n@749 1835 { type "type" bibinfo.check }
n@749 1836 if$
n@749 1837 *
n@749 1838 number duplicate$ empty$
n@749 1839 { "number" bibinfo.warn pop$ }
n@749 1840 { "number" bibinfo.check
n@749 1841 large.number.separate
n@749 1842 swap$ " " * swap$ *
n@749 1843 }
n@749 1844 if$
n@749 1845 cap.status.std
n@749 1846 }
n@749 1847
n@749 1848
n@749 1849
n@749 1850 %% standard
n@749 1851
n@749 1852 FUNCTION {format.organization.institution.standard.type.number}
n@749 1853 { this.to.prev.status
n@749 1854 this.status.std
n@749 1855 organization duplicate$ empty$
n@749 1856 { pop$
n@749 1857 institution duplicate$ empty$
n@749 1858 { "institution" bibinfo.warn }
n@749 1859 { "institution" bibinfo.warn " " * }
n@749 1860 if$
n@749 1861 }
n@749 1862 { "organization" bibinfo.warn " " * }
n@749 1863 if$
n@749 1864 type empty$
n@749 1865 { bbl.standard "type" bibinfo.check }
n@749 1866 { type "type" bibinfo.check }
n@749 1867 if$
n@749 1868 *
n@749 1869 number duplicate$ empty$
n@749 1870 { "number" bibinfo.check pop$ }
n@749 1871 { "number" bibinfo.check
n@749 1872 large.number.separate
n@749 1873 swap$ " " * swap$ *
n@749 1874 }
n@749 1875 if$
n@749 1876 cap.status.std
n@749 1877 }
n@749 1878
n@749 1879 FUNCTION {format.revision}
n@749 1880 { revision empty$
n@749 1881 { "" }
n@749 1882 { this.to.prev.status
n@749 1883 this.status.std
n@749 1884 bbl.revision
n@749 1885 revision tie.or.space.prefix
n@749 1886 "revision" bibinfo.check
n@749 1887 * *
n@749 1888 cap.status.std
n@749 1889 }
n@749 1890 if$
n@749 1891 }
n@749 1892
n@749 1893
n@749 1894 %% thesis
n@749 1895
n@749 1896 FUNCTION {format.master.thesis.type}
n@749 1897 { this.to.prev.status
n@749 1898 this.status.std
n@749 1899 type empty$
n@749 1900 {
n@749 1901 bbl.mthesis
n@749 1902 }
n@749 1903 {
n@749 1904 type "type" bibinfo.check
n@749 1905 }
n@749 1906 if$
n@749 1907 cap.status.std
n@749 1908 }
n@749 1909
n@749 1910 FUNCTION {format.phd.thesis.type}
n@749 1911 { this.to.prev.status
n@749 1912 this.status.std
n@749 1913 type empty$
n@749 1914 {
n@749 1915 bbl.phdthesis
n@749 1916 }
n@749 1917 {
n@749 1918 type "type" bibinfo.check
n@749 1919 }
n@749 1920 if$
n@749 1921 cap.status.std
n@749 1922 }
n@749 1923
n@749 1924
n@749 1925
n@749 1926 %% URL
n@749 1927
n@749 1928 FUNCTION {format.url}
n@749 1929 { url empty$
n@749 1930 { "" }
n@749 1931 { this.to.prev.status
n@749 1932 this.status.std
n@749 1933 cap.yes 'status.cap :=
n@749 1934 name.url.prefix " " *
n@749 1935 "\url{" * url * "}" *
n@749 1936 punct.no 'this.status.punct :=
n@749 1937 punct.period 'prev.status.punct :=
n@749 1938 space.normal 'this.status.space :=
n@749 1939 space.normal 'prev.status.space :=
n@749 1940 quote.no 'this.status.quote :=
n@749 1941 }
n@749 1942 if$
n@749 1943 }
n@749 1944
n@749 1945
n@749 1946
n@749 1947
n@749 1948 %%%%%%%%%%%%%%%%%%%%
n@749 1949 %% ENTRY HANDLERS %%
n@749 1950 %%%%%%%%%%%%%%%%%%%%
n@749 1951
n@749 1952
n@749 1953 % Note: In many journals, IEEE (or the authors) tend not to show the number
n@749 1954 % for articles, so the display of the number is controlled here by the
n@749 1955 % switch "is.use.number.for.article"
n@749 1956 FUNCTION {article}
n@749 1957 { std.status.using.comma
n@749 1958 start.entry
n@749 1959 if.url.alt.interword.spacing
n@749 1960 format.authors "author" output.warn
n@749 1961 name.or.dash
n@749 1962 format.article.title "title" output.warn
n@749 1963 format.journal "journal" bibinfo.check "journal" output.warn
n@749 1964 format.volume output
n@749 1965 format.number.if.use.for.article output
n@749 1966 format.pages output
n@749 1967 format.date "year" output.warn
n@749 1968 format.note output
n@749 1969 format.url output
n@749 1970 fin.entry
n@749 1971 if.url.std.interword.spacing
n@749 1972 }
n@749 1973
n@749 1974 FUNCTION {book}
n@749 1975 { std.status.using.comma
n@749 1976 start.entry
n@749 1977 if.url.alt.interword.spacing
n@749 1978 author empty$
n@749 1979 { format.editors "author and editor" output.warn }
n@749 1980 { format.authors output.nonnull }
n@749 1981 if$
n@749 1982 name.or.dash
n@749 1983 format.book.title.edition output
n@749 1984 format.series output
n@749 1985 author empty$
n@749 1986 { skip$ }
n@749 1987 { format.editors output }
n@749 1988 if$
n@749 1989 format.address.publisher.date output
n@749 1990 format.volume output
n@749 1991 format.number output
n@749 1992 format.note output
n@749 1993 format.url output
n@749 1994 fin.entry
n@749 1995 if.url.std.interword.spacing
n@749 1996 }
n@749 1997
n@749 1998 FUNCTION {booklet}
n@749 1999 { std.status.using.comma
n@749 2000 start.entry
n@749 2001 if.url.alt.interword.spacing
n@749 2002 format.authors output
n@749 2003 name.or.dash
n@749 2004 format.article.title "title" output.warn
n@749 2005 format.howpublished "howpublished" bibinfo.check output
n@749 2006 format.organization "organization" bibinfo.check output
n@749 2007 format.address "address" bibinfo.check output
n@749 2008 format.date output
n@749 2009 format.note output
n@749 2010 format.url output
n@749 2011 fin.entry
n@749 2012 if.url.std.interword.spacing
n@749 2013 }
n@749 2014
n@749 2015 FUNCTION {electronic}
n@749 2016 { std.status.using.period
n@749 2017 start.entry
n@749 2018 if.url.alt.interword.spacing
n@749 2019 format.authors output
n@749 2020 name.or.dash
n@749 2021 format.date.electronic output
n@749 2022 format.article.title.electronic output
n@749 2023 format.howpublished "howpublished" bibinfo.check output
n@749 2024 format.organization "organization" bibinfo.check output
n@749 2025 format.address "address" bibinfo.check output
n@749 2026 format.note output
n@749 2027 format.url output
n@749 2028 fin.entry
n@749 2029 empty.entry.warn
n@749 2030 if.url.std.interword.spacing
n@749 2031 }
n@749 2032
n@749 2033 FUNCTION {inbook}
n@749 2034 { std.status.using.comma
n@749 2035 start.entry
n@749 2036 if.url.alt.interword.spacing
n@749 2037 author empty$
n@749 2038 { format.editors "author and editor" output.warn }
n@749 2039 { format.authors output.nonnull }
n@749 2040 if$
n@749 2041 name.or.dash
n@749 2042 format.book.title.edition output
n@749 2043 format.series output
n@749 2044 format.address.publisher.date output
n@749 2045 format.volume output
n@749 2046 format.number output
n@749 2047 format.chapter output
n@749 2048 format.pages output
n@749 2049 format.note output
n@749 2050 format.url output
n@749 2051 fin.entry
n@749 2052 if.url.std.interword.spacing
n@749 2053 }
n@749 2054
n@749 2055 FUNCTION {incollection}
n@749 2056 { std.status.using.comma
n@749 2057 start.entry
n@749 2058 if.url.alt.interword.spacing
n@749 2059 format.authors "author" output.warn
n@749 2060 name.or.dash
n@749 2061 format.article.title "title" output.warn
n@749 2062 format.in.booktitle.edition "booktitle" output.warn
n@749 2063 format.series output
n@749 2064 format.editors output
n@749 2065 format.address.publisher.date.nowarn output
n@749 2066 format.volume output
n@749 2067 format.number output
n@749 2068 format.chapter output
n@749 2069 format.pages output
n@749 2070 format.note output
n@749 2071 format.url output
n@749 2072 fin.entry
n@749 2073 if.url.std.interword.spacing
n@749 2074 }
n@749 2075
n@749 2076 FUNCTION {inproceedings}
n@749 2077 { std.status.using.comma
n@749 2078 start.entry
n@749 2079 if.url.alt.interword.spacing
n@749 2080 format.authors "author" output.warn
n@749 2081 name.or.dash
n@749 2082 format.article.title "title" output.warn
n@749 2083 format.in.booktitle "booktitle" output.warn
n@749 2084 format.series output
n@749 2085 format.editors output
n@749 2086 format.volume output
n@749 2087 format.number output
n@749 2088 publisher empty$
n@749 2089 { format.address.organization.date output }
n@749 2090 { format.organization "organization" bibinfo.check output
n@749 2091 format.address.publisher.date output
n@749 2092 }
n@749 2093 if$
n@749 2094 format.paper output
n@749 2095 format.pages output
n@749 2096 format.note output
n@749 2097 format.url output
n@749 2098 fin.entry
n@749 2099 if.url.std.interword.spacing
n@749 2100 }
n@749 2101
n@749 2102 FUNCTION {manual}
n@749 2103 { std.status.using.comma
n@749 2104 start.entry
n@749 2105 if.url.alt.interword.spacing
n@749 2106 format.authors output
n@749 2107 name.or.dash
n@749 2108 format.book.title.edition "title" output.warn
n@749 2109 format.howpublished "howpublished" bibinfo.check output
n@749 2110 format.organization "organization" bibinfo.check output
n@749 2111 format.address "address" bibinfo.check output
n@749 2112 format.date output
n@749 2113 format.note output
n@749 2114 format.url output
n@749 2115 fin.entry
n@749 2116 if.url.std.interword.spacing
n@749 2117 }
n@749 2118
n@749 2119 FUNCTION {mastersthesis}
n@749 2120 { std.status.using.comma
n@749 2121 start.entry
n@749 2122 if.url.alt.interword.spacing
n@749 2123 format.authors "author" output.warn
n@749 2124 name.or.dash
n@749 2125 format.article.title "title" output.warn
n@749 2126 format.master.thesis.type output.nonnull
n@749 2127 format.school "school" bibinfo.warn output
n@749 2128 format.address "address" bibinfo.check output
n@749 2129 format.date "year" output.warn
n@749 2130 format.note output
n@749 2131 format.url output
n@749 2132 fin.entry
n@749 2133 if.url.std.interword.spacing
n@749 2134 }
n@749 2135
n@749 2136 FUNCTION {misc}
n@749 2137 { std.status.using.comma
n@749 2138 start.entry
n@749 2139 if.url.alt.interword.spacing
n@749 2140 format.authors output
n@749 2141 name.or.dash
n@749 2142 format.article.title output
n@749 2143 format.howpublished "howpublished" bibinfo.check output
n@749 2144 format.organization "organization" bibinfo.check output
n@749 2145 format.address "address" bibinfo.check output
n@749 2146 format.pages output
n@749 2147 format.date output
n@749 2148 format.note output
n@749 2149 format.url output
n@749 2150 fin.entry
n@749 2151 empty.entry.warn
n@749 2152 if.url.std.interword.spacing
n@749 2153 }
n@749 2154
n@749 2155 FUNCTION {patent}
n@749 2156 { std.status.using.comma
n@749 2157 start.entry
n@749 2158 if.url.alt.interword.spacing
n@749 2159 format.authors output
n@749 2160 name.or.dash
n@749 2161 format.article.title output
n@749 2162 format.patent.nationality.type.number output
n@749 2163 format.patent.date output
n@749 2164 format.note output
n@749 2165 format.url output
n@749 2166 fin.entry
n@749 2167 empty.entry.warn
n@749 2168 if.url.std.interword.spacing
n@749 2169 }
n@749 2170
n@749 2171 FUNCTION {periodical}
n@749 2172 { std.status.using.comma
n@749 2173 start.entry
n@749 2174 if.url.alt.interword.spacing
n@749 2175 format.editors output
n@749 2176 name.or.dash
n@749 2177 format.book.title "title" output.warn
n@749 2178 format.series output
n@749 2179 format.volume output
n@749 2180 format.number output
n@749 2181 format.organization "organization" bibinfo.check output
n@749 2182 format.date "year" output.warn
n@749 2183 format.note output
n@749 2184 format.url output
n@749 2185 fin.entry
n@749 2186 if.url.std.interword.spacing
n@749 2187 }
n@749 2188
n@749 2189 FUNCTION {phdthesis}
n@749 2190 { std.status.using.comma
n@749 2191 start.entry
n@749 2192 if.url.alt.interword.spacing
n@749 2193 format.authors "author" output.warn
n@749 2194 name.or.dash
n@749 2195 format.article.title "title" output.warn
n@749 2196 format.phd.thesis.type output.nonnull
n@749 2197 format.school "school" bibinfo.warn output
n@749 2198 format.address "address" bibinfo.check output
n@749 2199 format.date "year" output.warn
n@749 2200 format.note output
n@749 2201 format.url output
n@749 2202 fin.entry
n@749 2203 if.url.std.interword.spacing
n@749 2204 }
n@749 2205
n@749 2206 FUNCTION {proceedings}
n@749 2207 { std.status.using.comma
n@749 2208 start.entry
n@749 2209 if.url.alt.interword.spacing
n@749 2210 format.editors output
n@749 2211 name.or.dash
n@749 2212 format.book.title "title" output.warn
n@749 2213 format.series output
n@749 2214 format.volume output
n@749 2215 format.number output
n@749 2216 publisher empty$
n@749 2217 { format.address.organization.date output }
n@749 2218 { format.organization "organization" bibinfo.check output
n@749 2219 format.address.publisher.date output
n@749 2220 }
n@749 2221 if$
n@749 2222 format.note output
n@749 2223 format.url output
n@749 2224 fin.entry
n@749 2225 if.url.std.interword.spacing
n@749 2226 }
n@749 2227
n@749 2228 FUNCTION {standard}
n@749 2229 { std.status.using.comma
n@749 2230 start.entry
n@749 2231 if.url.alt.interword.spacing
n@749 2232 format.authors output
n@749 2233 name.or.dash
n@749 2234 format.book.title "title" output.warn
n@749 2235 format.howpublished "howpublished" bibinfo.check output
n@749 2236 format.organization.institution.standard.type.number output
n@749 2237 format.revision output
n@749 2238 format.date output
n@749 2239 format.note output
n@749 2240 format.url output
n@749 2241 fin.entry
n@749 2242 if.url.std.interword.spacing
n@749 2243 }
n@749 2244
n@749 2245 FUNCTION {techreport}
n@749 2246 { std.status.using.comma
n@749 2247 start.entry
n@749 2248 if.url.alt.interword.spacing
n@749 2249 format.authors "author" output.warn
n@749 2250 name.or.dash
n@749 2251 format.article.title "title" output.warn
n@749 2252 format.howpublished "howpublished" bibinfo.check output
n@749 2253 format.institution "institution" bibinfo.warn output
n@749 2254 format.address "address" bibinfo.check output
n@749 2255 format.tech.report.number output.nonnull
n@749 2256 format.date "year" output.warn
n@749 2257 format.note output
n@749 2258 format.url output
n@749 2259 fin.entry
n@749 2260 if.url.std.interword.spacing
n@749 2261 }
n@749 2262
n@749 2263 FUNCTION {unpublished}
n@749 2264 { std.status.using.comma
n@749 2265 start.entry
n@749 2266 if.url.alt.interword.spacing
n@749 2267 format.authors "author" output.warn
n@749 2268 name.or.dash
n@749 2269 format.article.title "title" output.warn
n@749 2270 format.date output
n@749 2271 format.note "note" output.warn
n@749 2272 format.url output
n@749 2273 fin.entry
n@749 2274 if.url.std.interword.spacing
n@749 2275 }
n@749 2276
n@749 2277
n@749 2278 % The special entry type which provides the user interface to the
n@749 2279 % BST controls
n@749 2280 FUNCTION {IEEEtranBSTCTL}
n@749 2281 { is.print.banners.to.terminal
n@749 2282 { "** IEEEtran BST control entry " quote$ * cite$ * quote$ * " detected." *
n@749 2283 top$
n@749 2284 }
n@749 2285 { skip$ }
n@749 2286 if$
n@749 2287 CTLuse_article_number
n@749 2288 empty$
n@749 2289 { skip$ }
n@749 2290 { CTLuse_article_number
n@749 2291 yes.no.to.int
n@749 2292 'is.use.number.for.article :=
n@749 2293 }
n@749 2294 if$
n@749 2295 CTLuse_paper
n@749 2296 empty$
n@749 2297 { skip$ }
n@749 2298 { CTLuse_paper
n@749 2299 yes.no.to.int
n@749 2300 'is.use.paper :=
n@749 2301 }
n@749 2302 if$
n@749 2303 CTLuse_forced_etal
n@749 2304 empty$
n@749 2305 { skip$ }
n@749 2306 { CTLuse_forced_etal
n@749 2307 yes.no.to.int
n@749 2308 'is.forced.et.al :=
n@749 2309 }
n@749 2310 if$
n@749 2311 CTLmax_names_forced_etal
n@749 2312 empty$
n@749 2313 { skip$ }
n@749 2314 { CTLmax_names_forced_etal
n@749 2315 string.to.integer
n@749 2316 'max.num.names.before.forced.et.al :=
n@749 2317 }
n@749 2318 if$
n@749 2319 CTLnames_show_etal
n@749 2320 empty$
n@749 2321 { skip$ }
n@749 2322 { CTLnames_show_etal
n@749 2323 string.to.integer
n@749 2324 'num.names.shown.with.forced.et.al :=
n@749 2325 }
n@749 2326 if$
n@749 2327 CTLuse_alt_spacing
n@749 2328 empty$
n@749 2329 { skip$ }
n@749 2330 { CTLuse_alt_spacing
n@749 2331 yes.no.to.int
n@749 2332 'is.use.alt.interword.spacing :=
n@749 2333 }
n@749 2334 if$
n@749 2335 CTLalt_stretch_factor
n@749 2336 empty$
n@749 2337 { skip$ }
n@749 2338 { CTLalt_stretch_factor
n@749 2339 'ALTinterwordstretchfactor :=
n@749 2340 "\renewcommand{\BIBentryALTinterwordstretchfactor}{"
n@749 2341 ALTinterwordstretchfactor * "}" *
n@749 2342 write$ newline$
n@749 2343 }
n@749 2344 if$
n@749 2345 CTLdash_repeated_names
n@749 2346 empty$
n@749 2347 { skip$ }
n@749 2348 { CTLdash_repeated_names
n@749 2349 yes.no.to.int
n@749 2350 'is.dash.repeated.names :=
n@749 2351 }
n@749 2352 if$
n@749 2353 CTLname_format_string
n@749 2354 empty$
n@749 2355 { skip$ }
n@749 2356 { CTLname_format_string
n@749 2357 'name.format.string :=
n@749 2358 }
n@749 2359 if$
n@749 2360 CTLname_latex_cmd
n@749 2361 empty$
n@749 2362 { skip$ }
n@749 2363 { CTLname_latex_cmd
n@749 2364 'name.latex.cmd :=
n@749 2365 }
n@749 2366 if$
n@749 2367 CTLname_url_prefix
n@749 2368 missing$
n@749 2369 { skip$ }
n@749 2370 { CTLname_url_prefix
n@749 2371 'name.url.prefix :=
n@749 2372 }
n@749 2373 if$
n@749 2374
n@749 2375
n@749 2376 num.names.shown.with.forced.et.al max.num.names.before.forced.et.al >
n@749 2377 { "CTLnames_show_etal cannot be greater than CTLmax_names_forced_etal in " cite$ * warning$
n@749 2378 max.num.names.before.forced.et.al 'num.names.shown.with.forced.et.al :=
n@749 2379 }
n@749 2380 { skip$ }
n@749 2381 if$
n@749 2382 }
n@749 2383
n@749 2384
n@749 2385 %%%%%%%%%%%%%%%%%%%
n@749 2386 %% ENTRY ALIASES %%
n@749 2387 %%%%%%%%%%%%%%%%%%%
n@749 2388 FUNCTION {conference}{inproceedings}
n@749 2389 FUNCTION {online}{electronic}
n@749 2390 FUNCTION {internet}{electronic}
n@749 2391 FUNCTION {webpage}{electronic}
n@749 2392 FUNCTION {www}{electronic}
n@749 2393 FUNCTION {default.type}{misc}
n@749 2394
n@749 2395
n@749 2396
n@749 2397 %%%%%%%%%%%%%%%%%%
n@749 2398 %% MAIN PROGRAM %%
n@749 2399 %%%%%%%%%%%%%%%%%%
n@749 2400
n@749 2401 READ
n@749 2402
n@749 2403 EXECUTE {initialize.controls}
n@749 2404 EXECUTE {initialize.status.constants}
n@749 2405 EXECUTE {banner.message}
n@749 2406
n@749 2407 EXECUTE {initialize.longest.label}
n@749 2408 ITERATE {longest.label.pass}
n@749 2409
n@749 2410 EXECUTE {begin.bib}
n@749 2411 ITERATE {call.type$}
n@749 2412 EXECUTE {end.bib}
n@749 2413
n@749 2414 EXECUTE{completed.message}
n@749 2415
n@749 2416
n@749 2417 %% That's all folks, mds.