annotate docs/SMC15/IEEEtran.bst @ 1483:d99c580e2683

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