annotate docs/SMC15/IEEEtran.bst @ 684:57020131563a

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