annotate docs/SMC15/IEEEtran.bst @ 2341:9b4d7c57a78c

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