annotate docs/SMC15/IEEEtran.bst @ 972:565ffb272d82

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