annotate docs/SMC15/IEEEtran.bst @ 1103:2051868b21f0

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