annotate docs/SMC15/IEEEtran.bst @ 1213:69394f0fd142

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