3 %% BibTeX Bibliography Style file for IEEE Journals and Conferences (unsorted)
\r
4 %% Version 1.13 (2008/09/30)
\r
6 %% Copyright (c) 2003-2008 Michael Shell
\r
8 %% Original starting code base and algorithms obtained from the output of
\r
9 %% Patrick W. Daly's makebst package as well as from prior versions of
\r
10 %% IEEE BibTeX styles:
\r
12 %% 1. Howard Trickey and Oren Patashnik's ieeetr.bst (1985/1988)
\r
13 %% 2. Silvano Balemi and Richard H. Roy's IEEEbib.bst (1993)
\r
16 %% http://www.michaelshell.org/tex/ieeetran/
\r
17 %% http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/
\r
19 %% http://www.ieee.org/
\r
21 %% For use with BibTeX version 0.99a or later
\r
23 %% This is a numerical citation style.
\r
25 %%*************************************************************************
\r
27 %% This code is offered as-is without any warranty either expressed or
\r
28 %% implied; without even the implied warranty of MERCHANTABILITY or
\r
29 %% FITNESS FOR A PARTICULAR PURPOSE!
\r
30 %% User assumes all risk.
\r
31 %% In no event shall IEEE or any contributor to this code be liable for
\r
32 %% any damages or losses, including, but not limited to, incidental,
\r
33 %% consequential, or any other damages, resulting from the use or misuse
\r
34 %% of any information contained here.
\r
36 %% All comments are the opinions of their respective authors and are not
\r
37 %% necessarily endorsed by the IEEE.
\r
39 %% This work is distributed under the LaTeX Project Public License (LPPL)
\r
40 %% ( http://www.latex-project.org/ ) version 1.3, and may be freely used,
\r
41 %% distributed and modified. A copy of the LPPL, version 1.3, is included
\r
42 %% in the base LaTeX documentation of all distributions of LaTeX released
\r
43 %% 2003/12/01 or later.
\r
44 %% Retain all contribution notices and credits.
\r
45 %% ** Modified files should be clearly indicated as such, including **
\r
46 %% ** renaming them and changing author support contact information. **
\r
48 %% File list of work: IEEEabrv.bib, IEEEfull.bib, IEEEexample.bib,
\r
49 %% IEEEtran.bst, IEEEtranS.bst, IEEEtranSA.bst,
\r
50 %% IEEEtranN.bst, IEEEtranSN.bst, IEEEtran_bst_HOWTO.pdf
\r
51 %%*************************************************************************
\r
56 % 1.00 (2002/08/13) Initial release
\r
59 % 1. Corrected minor bug for improperly formed warning message when a
\r
60 % book was not given a title. Thanks to Ming Kin Lai for reporting this.
\r
61 % 2. Added support for CTLname_format_string and CTLname_latex_cmd fields
\r
62 % in the BST control entry type.
\r
65 % 1. Fixed bug with URLs containing underscores when using url.sty. Thanks
\r
66 % to Ming Kin Lai for reporting this.
\r
69 % 1. Fixed bug with unwanted comma before "et al." when an entry contained
\r
70 % more than two author names. Thanks to Pallav Gupta for reporting this.
\r
71 % 2. Fixed bug with anomalous closing quote in tech reports that have a
\r
72 % type, but without a number or address. Thanks to Mehrdad Mirreza for
\r
74 % 3. Use braces in \providecommand in begin.bib to better support
\r
75 % latex2html. TeX style length assignments OK with recent versions
\r
76 % of latex2html - 1.71 (2002/2/1) or later is strongly recommended.
\r
77 % Use of the language field still causes trouble with latex2html.
\r
78 % Thanks to Federico Beffa for reporting this.
\r
79 % 4. Added IEEEtran.bst ID and version comment string to .bbl output.
\r
80 % 5. Provide a \BIBdecl hook that allows the user to execute commands
\r
81 % just prior to the first entry.
\r
82 % 6. Use default urlstyle (is using url.sty) of "same" rather than rm to
\r
83 % better work with a wider variety of bibliography styles.
\r
84 % 7. Changed month abbreviations from Sept., July and June to Sep., Jul.,
\r
85 % and Jun., respectively, as IEEE now does. Thanks to Moritz Borgmann
\r
86 % for reporting this.
\r
87 % 8. Control entry types should not be considered when calculating longest
\r
89 % 9. Added alias www for electronic/online.
\r
90 % 10. Added CTLname_url_prefix control entry type.
\r
93 % 1. Fixed bug with edition number to ordinal conversion. Thanks to
\r
94 % Michael Roland for reporting this and correcting the algorithm.
\r
97 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\r
98 %% DEFAULTS FOR THE CONTROLS OF THE BST STYLE %%
\r
99 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\r
101 % These are the defaults for the user adjustable controls. The values used
\r
102 % here can be overridden by the user via IEEEtranBSTCTL entry type.
\r
104 % NOTE: The recommended LaTeX command to invoke a control entry type is:
\r
107 %\def\bstctlcite{\@ifnextchar[{\@bstctlcite}{\@bstctlcite[@auxout]}}
\r
108 %\def\@bstctlcite[#1]#2{\@bsphack
\r
109 % \@for\@citeb:=#2\do{%
\r
110 % \edef\@citeb{\expandafter\@firstofone\@citeb}%
\r
111 % \if@filesw\immediate\write\csname #1\endcsname{\string\citation{\@citeb}}\fi}%
\r
115 % It is called at the start of the document, before the first \cite, like:
\r
116 % \bstctlcite{IEEEexample:BSTcontrol}
\r
118 % IEEEtran.cls V1.6 and later does provide this command.
\r
122 % #0 turns off the display of the number for articles.
\r
124 FUNCTION {default.is.use.number.for.article} { #1 }
\r
127 % #0 turns off the display of the paper and type fields in @inproceedings.
\r
129 FUNCTION {default.is.use.paper} { #1 }
\r
132 % #0 turns off the forced use of "et al."
\r
134 FUNCTION {default.is.forced.et.al} { #0 }
\r
136 % The maximum number of names that can be present beyond which an "et al."
\r
137 % usage is forced. Be sure that num.names.shown.with.forced.et.al (below)
\r
138 % is not greater than this value!
\r
139 % Note: There are many instances of references in IEEE journals which have
\r
140 % a very large number of authors as well as instances in which "et al." is
\r
142 FUNCTION {default.max.num.names.before.forced.et.al} { #10 }
\r
144 % The number of names that will be shown with a forced "et al.".
\r
145 % Must be less than or equal to max.num.names.before.forced.et.al
\r
146 FUNCTION {default.num.names.shown.with.forced.et.al} { #1 }
\r
149 % #0 turns off the alternate interword spacing for entries with URLs.
\r
151 FUNCTION {default.is.use.alt.interword.spacing} { #1 }
\r
153 % If alternate interword spacing for entries with URLs is enabled, this is
\r
154 % the interword spacing stretch factor that will be used. For example, the
\r
155 % default "4" here means that the interword spacing in entries with URLs can
\r
156 % stretch to four times normal. Does not have to be an integer. Note that
\r
157 % the value specified here can be overridden by the user in their LaTeX
\r
158 % code via a command such as:
\r
159 % "\providecommand\BIBentryALTinterwordstretchfactor{1.5}" in addition to
\r
160 % that via the IEEEtranBSTCTL entry type.
\r
161 FUNCTION {default.ALTinterwordstretchfactor} { "4" }
\r
164 % #0 turns off the "dashification" of repeated (i.e., identical to those
\r
165 % of the previous entry) names. IEEE normally does this.
\r
167 FUNCTION {default.is.dash.repeated.names} { #1 }
\r
170 % The default name format control string.
\r
171 FUNCTION {default.name.format.string}{ "{f.~}{vv~}{ll}{, jj}" }
\r
174 % The default LaTeX font command for the names.
\r
175 FUNCTION {default.name.latex.cmd}{ "" }
\r
178 % The default URL prefix.
\r
179 FUNCTION {default.name.url.prefix}{ "[Online]. Available:" }
\r
182 % Other controls that cannot be accessed via IEEEtranBSTCTL entry type.
\r
184 % #0 turns off the terminal startup banner/completed message so as to
\r
185 % operate more quietly.
\r
187 FUNCTION {is.print.banners.to.terminal} { #1 }
\r
192 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\r
193 %% FILE VERSION AND BANNER %%
\r
194 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\r
196 FUNCTION{bst.file.version} { "1.13" }
\r
197 FUNCTION{bst.file.date} { "2008/09/30" }
\r
198 FUNCTION{bst.file.website} { "http://www.michaelshell.org/tex/ieeetran/bibtex/" }
\r
200 FUNCTION {banner.message}
\r
201 { is.print.banners.to.terminal
\r
202 { "-- IEEEtran.bst version" " " * bst.file.version *
\r
203 " (" * bst.file.date * ") " * "by Michael Shell." *
\r
205 "-- " bst.file.website *
\r
207 "-- See the " quote$ * "IEEEtran_bst_HOWTO.pdf" * quote$ * " manual for usage information." *
\r
214 FUNCTION {completed.message}
\r
215 { is.print.banners.to.terminal
\r
228 %%%%%%%%%%%%%%%%%%%%%%
\r
229 %% STRING CONSTANTS %%
\r
230 %%%%%%%%%%%%%%%%%%%%%%
\r
232 FUNCTION {bbl.and}{ "and" }
\r
233 FUNCTION {bbl.etal}{ "et~al." }
\r
234 FUNCTION {bbl.editors}{ "eds." }
\r
235 FUNCTION {bbl.editor}{ "ed." }
\r
236 FUNCTION {bbl.edition}{ "ed." }
\r
237 FUNCTION {bbl.volume}{ "vol." }
\r
238 FUNCTION {bbl.of}{ "of" }
\r
239 FUNCTION {bbl.number}{ "no." }
\r
240 FUNCTION {bbl.in}{ "in" }
\r
241 FUNCTION {bbl.pages}{ "pp." }
\r
242 FUNCTION {bbl.page}{ "p." }
\r
243 FUNCTION {bbl.chapter}{ "ch." }
\r
244 FUNCTION {bbl.paper}{ "paper" }
\r
245 FUNCTION {bbl.part}{ "pt." }
\r
246 FUNCTION {bbl.patent}{ "Patent" }
\r
247 FUNCTION {bbl.patentUS}{ "U.S." }
\r
248 FUNCTION {bbl.revision}{ "Rev." }
\r
249 FUNCTION {bbl.series}{ "ser." }
\r
250 FUNCTION {bbl.standard}{ "Std." }
\r
251 FUNCTION {bbl.techrep}{ "Tech. Rep." }
\r
252 FUNCTION {bbl.mthesis}{ "Master's thesis" }
\r
253 FUNCTION {bbl.phdthesis}{ "Ph.D. dissertation" }
\r
254 FUNCTION {bbl.st}{ "st" }
\r
255 FUNCTION {bbl.nd}{ "nd" }
\r
256 FUNCTION {bbl.rd}{ "rd" }
\r
257 FUNCTION {bbl.th}{ "th" }
\r
260 % This is the LaTeX spacer that is used when a larger than normal space
\r
261 % is called for (such as just before the address:publisher).
\r
262 FUNCTION {large.space} { "\hskip 1em plus 0.5em minus 0.4em\relax " }
\r
264 % The LaTeX code for dashes that are used to represent repeated names.
\r
265 % Note: Some older IEEE journals used something like
\r
266 % "\rule{0.275in}{0.5pt}\," which is fairly thick and runs right along
\r
267 % the baseline. However, IEEE now uses a thinner, above baseline,
\r
268 % six dash long sequence.
\r
269 FUNCTION {repeated.name.dashes} { "------" }
\r
273 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\r
274 %% PREDEFINED STRING MACROS %%
\r
275 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\r
277 MACRO {jan} {"Jan."}
\r
278 MACRO {feb} {"Feb."}
\r
279 MACRO {mar} {"Mar."}
\r
280 MACRO {apr} {"Apr."}
\r
281 MACRO {may} {"May"}
\r
282 MACRO {jun} {"Jun."}
\r
283 MACRO {jul} {"Jul."}
\r
284 MACRO {aug} {"Aug."}
\r
285 MACRO {sep} {"Sep."}
\r
286 MACRO {oct} {"Oct."}
\r
287 MACRO {nov} {"Nov."}
\r
288 MACRO {dec} {"Dec."}
\r
330 CTLuse_article_number
\r
333 CTLmax_names_forced_etal
\r
336 CTLalt_stretch_factor
\r
337 CTLdash_repeated_names
\r
338 CTLname_format_string
\r
348 %%%%%%%%%%%%%%%%%%%%%%%
\r
349 %% INTEGER VARIABLES %%
\r
350 %%%%%%%%%%%%%%%%%%%%%%%
\r
352 INTEGERS { prev.status.punct this.status.punct punct.std
\r
353 punct.no punct.comma punct.period
\r
354 prev.status.space this.status.space space.std
\r
355 space.no space.normal space.large
\r
356 prev.status.quote this.status.quote quote.std
\r
357 quote.no quote.close
\r
358 prev.status.nline this.status.nline nline.std
\r
359 nline.no nline.newblock
\r
363 INTEGERS { longest.label.width multiresult nameptr namesleft number.label numnames }
\r
365 INTEGERS { is.use.number.for.article
\r
368 max.num.names.before.forced.et.al
\r
369 num.names.shown.with.forced.et.al
\r
370 is.use.alt.interword.spacing
\r
371 is.dash.repeated.names}
\r
374 %%%%%%%%%%%%%%%%%%%%%%
\r
375 %% STRING VARIABLES %%
\r
376 %%%%%%%%%%%%%%%%%%%%%%
\r
383 ALTinterwordstretchfactor
\r
391 %%%%%%%%%%%%%%%%%%%%%%%%%
\r
392 %% LOW LEVEL FUNCTIONS %%
\r
393 %%%%%%%%%%%%%%%%%%%%%%%%%
\r
395 FUNCTION {initialize.controls}
\r
396 { default.is.use.number.for.article 'is.use.number.for.article :=
\r
397 default.is.use.paper 'is.use.paper :=
\r
398 default.is.forced.et.al 'is.forced.et.al :=
\r
399 default.max.num.names.before.forced.et.al 'max.num.names.before.forced.et.al :=
\r
400 default.num.names.shown.with.forced.et.al 'num.names.shown.with.forced.et.al :=
\r
401 default.is.use.alt.interword.spacing 'is.use.alt.interword.spacing :=
\r
402 default.is.dash.repeated.names 'is.dash.repeated.names :=
\r
403 default.ALTinterwordstretchfactor 'ALTinterwordstretchfactor :=
\r
404 default.name.format.string 'name.format.string :=
\r
405 default.name.latex.cmd 'name.latex.cmd :=
\r
406 default.name.url.prefix 'name.url.prefix :=
\r
410 % This IEEEtran.bst features a very powerful and flexible mechanism for
\r
411 % controlling the capitalization, punctuation, spacing, quotation, and
\r
412 % newlines of the formatted entry fields. (Note: IEEEtran.bst does not need
\r
413 % or use the newline/newblock feature, but it has been implemented for
\r
414 % possible future use.) The output states of IEEEtran.bst consist of
\r
415 % multiple independent attributes and, as such, can be thought of as being
\r
416 % vectors, rather than the simple scalar values ("before.all",
\r
417 % "mid.sentence", etc.) used in most other .bst files.
\r
419 % The more flexible and complex design used here was motivated in part by
\r
420 % IEEE's rather unusual bibliography style. For example, IEEE ends the
\r
421 % previous field item with a period and large space prior to the publisher
\r
422 % address; the @electronic entry types use periods as inter-item punctuation
\r
423 % rather than the commas used by the other entry types; and URLs are never
\r
424 % followed by periods even though they are the last item in the entry.
\r
425 % Although it is possible to accommodate these features with the conventional
\r
426 % output state system, the seemingly endless exceptions make for convoluted,
\r
427 % unreliable and difficult to maintain code.
\r
429 % IEEEtran.bst's output state system can be easily understood via a simple
\r
430 % illustration of two most recently formatted entry fields (on the stack):
\r
435 % which, in this example, is to eventually appear in the bibliography as:
\r
437 % "PREVIOUS_ITEM," CURRENT_ITEM
\r
439 % It is the job of the output routine to take the previous item off of the
\r
440 % stack (while leaving the current item at the top of the stack), apply its
\r
441 % trailing punctuation (including closing quote marks) and spacing, and then
\r
442 % to write the result to BibTeX's output buffer:
\r
444 % "PREVIOUS_ITEM,"
\r
446 % Punctuation (and spacing) between items is often determined by both of the
\r
447 % items rather than just the first one. The presence of quotation marks
\r
448 % further complicates the situation because, in standard English, trailing
\r
449 % punctuation marks are supposed to be contained within the quotes.
\r
451 % IEEEtran.bst maintains two output state (aka "status") vectors which
\r
452 % correspond to the previous and current (aka "this") items. Each vector
\r
453 % consists of several independent attributes which track punctuation,
\r
454 % spacing, quotation, and newlines. Capitalization status is handled by a
\r
455 % separate scalar because the format routines, not the output routine,
\r
456 % handle capitalization and, therefore, there is no need to maintain the
\r
457 % capitalization attribute for both the "previous" and "this" items.
\r
459 % When a format routine adds a new item, it copies the current output status
\r
460 % vector to the previous output status vector and (usually) resets the
\r
461 % current (this) output status vector to a "standard status" vector. Using a
\r
462 % "standard status" vector in this way allows us to redefine what we mean by
\r
463 % "standard status" at the start of each entry handler and reuse the same
\r
464 % format routines under the various inter-item separation schemes. For
\r
465 % example, the standard status vector for the @book entry type may use
\r
466 % commas for item separators, while the @electronic type may use periods,
\r
467 % yet both entry handlers exploit many of the exact same format routines.
\r
469 % Because format routines have write access to the output status vector of
\r
470 % the previous item, they can override the punctuation choices of the
\r
471 % previous format routine! Therefore, it becomes trivial to implement rules
\r
472 % such as "Always use a period and a large space before the publisher." By
\r
473 % pushing the generation of the closing quote mark to the output routine, we
\r
474 % avoid all the problems caused by having to close a quote before having all
\r
475 % the information required to determine what the punctuation should be.
\r
477 % The IEEEtran.bst output state system can easily be expanded if needed.
\r
478 % For instance, it is easy to add a "space.tie" attribute value if the
\r
479 % bibliography rules mandate that two items have to be joined with an
\r
480 % unbreakable space.
\r
482 FUNCTION {initialize.status.constants}
\r
485 #2 'punct.period :=
\r
487 #1 'space.normal :=
\r
494 #1 'nline.newblock :=
\r
497 FUNCTION {std.status.using.comma}
\r
498 { punct.comma 'punct.std :=
\r
499 space.normal 'space.std :=
\r
500 quote.no 'quote.std :=
\r
501 nline.no 'nline.std :=
\r
505 FUNCTION {std.status.using.period}
\r
506 { punct.period 'punct.std :=
\r
507 space.normal 'space.std :=
\r
508 quote.no 'quote.std :=
\r
509 nline.no 'nline.std :=
\r
510 cap.yes 'cap.std :=
\r
513 FUNCTION {initialize.prev.this.status}
\r
514 { punct.no 'prev.status.punct :=
\r
515 space.no 'prev.status.space :=
\r
516 quote.no 'prev.status.quote :=
\r
517 nline.no 'prev.status.nline :=
\r
518 punct.no 'this.status.punct :=
\r
519 space.no 'this.status.space :=
\r
520 quote.no 'this.status.quote :=
\r
521 nline.no 'this.status.nline :=
\r
522 cap.yes 'status.cap :=
\r
525 FUNCTION {this.status.std}
\r
526 { punct.std 'this.status.punct :=
\r
527 space.std 'this.status.space :=
\r
528 quote.std 'this.status.quote :=
\r
529 nline.std 'this.status.nline :=
\r
532 FUNCTION {cap.status.std}{ cap.std 'status.cap := }
\r
534 FUNCTION {this.to.prev.status}
\r
535 { this.status.punct 'prev.status.punct :=
\r
536 this.status.space 'prev.status.space :=
\r
537 this.status.quote 'prev.status.quote :=
\r
538 this.status.nline 'prev.status.nline :=
\r
561 % convert the strings "yes" or "no" to #1 or #0 respectively
\r
562 FUNCTION {yes.no.to.int}
\r
563 { "l" change.case$ duplicate$
\r
566 { duplicate$ "no" =
\r
568 { "unknown boolean " quote$ * swap$ * quote$ *
\r
569 " in " * cite$ * warning$
\r
578 % pushes true if the single char string on the stack is in the
\r
579 % range of "0" to "9"
\r
582 duplicate$ "0" chr.to.int$ < not
\r
583 swap$ "9" chr.to.int$ > not and
\r
586 % multiplies the integer on the stack by a factor of 10
\r
587 FUNCTION {bump.int.mag}
\r
588 { #0 'multiresult :=
\r
589 { duplicate$ #0 > }
\r
599 % converts a single character string on the stack to an integer
\r
600 FUNCTION {char.to.integer}
\r
603 { chr.to.int$ "0" chr.to.int$ - }
\r
604 {"noninteger character " quote$ * swap$ * quote$ *
\r
605 " in integer field of " * cite$ * warning$
\r
611 % converts a string on the stack to an integer
\r
612 FUNCTION {string.to.integer}
\r
613 { duplicate$ text.length$ 'namesleft :=
\r
616 { nameptr namesleft > not }
\r
617 { duplicate$ nameptr #1 substring$
\r
618 char.to.integer numnames bump.int.mag +
\r
631 % The output routines write out the *next* to the top (previous) item on the
\r
632 % stack, adding punctuation and such as needed. Since IEEEtran.bst maintains
\r
633 % the output status for the top two items on the stack, these output
\r
634 % routines have to consider the previous output status (which corresponds to
\r
635 % the item that is being output). Full independent control of punctuation,
\r
636 % closing quote marks, spacing, and newblock is provided.
\r
638 % "output.nonnull" does not check for the presence of a previous empty
\r
641 % "output" does check for the presence of a previous empty item and will
\r
642 % remove an empty item rather than outputing it.
\r
644 % "output.warn" is like "output", but will issue a warning if it detects
\r
647 FUNCTION {output.nonnull}
\r
649 prev.status.punct punct.comma =
\r
653 prev.status.punct punct.period =
\r
657 prev.status.quote quote.close =
\r
661 prev.status.space space.normal =
\r
665 prev.status.space space.large =
\r
670 prev.status.nline nline.newblock =
\r
671 { newline$ "\newblock " write$ }
\r
677 { duplicate$ empty$
\r
683 FUNCTION {output.warn}
\r
686 { pop$ "empty " t * " in " * cite$ * warning$ }
\r
691 % "fin.entry" is the output routine that handles the last item of the entry
\r
692 % (which will be on the top of the stack when "fin.entry" is called).
\r
694 FUNCTION {fin.entry}
\r
695 { this.status.punct punct.no =
\r
699 this.status.quote quote.close =
\r
708 FUNCTION {is.last.char.not.punct}
\r
711 #-1 #1 substring$ "." =
\r
714 FUNCTION {is.multiple.pages}
\r
721 { t #1 #1 substring$
\r
723 swap$ duplicate$ "," =
\r
726 { #1 'multiresult := }
\r
727 { t #2 global.max$ substring$ 't := }
\r
734 FUNCTION {capitalize}{ "u" change.case$ "t" change.case$ }
\r
736 FUNCTION {emphasize}
\r
737 { duplicate$ empty$
\r
739 %% Turned off for MESH2013
\r
740 % { "\emph{" swap$ * "}" * }
\r
746 FUNCTION {do.name.latex.cmd}
\r
750 { name.latex.cmd "{" * swap$ * "}" * }
\r
754 % IEEEtran.bst uses its own \BIBforeignlanguage command which directly
\r
755 % invokes the TeX hyphenation patterns without the need of the Babel
\r
756 % package. Babel does a lot more than switch hyphenation patterns and
\r
757 % its loading can cause unintended effects in many class files (such as
\r
759 FUNCTION {select.language}
\r
760 { duplicate$ empty$ 'pop$
\r
761 { language empty$ 'skip$
\r
762 { "\BIBforeignlanguage{" language * "}{" * swap$ * "}" * }
\r
768 FUNCTION {tie.or.space.prefix}
\r
769 { duplicate$ text.length$ #3 <
\r
776 FUNCTION {get.bbl.editor}
\r
777 { editor num.names$ #1 > 'bbl.editors 'bbl.editor if$ }
\r
779 FUNCTION {space.word}{ " " swap$ * " " * }
\r
782 % Field Conditioners, Converters, Checkers and External Interfaces
\r
784 FUNCTION {empty.field.to.null.string}
\r
785 { duplicate$ empty$
\r
791 FUNCTION {either.or.check}
\r
794 { "can't use both " swap$ * " fields in " * cite$ * warning$ }
\r
798 FUNCTION {empty.entry.warn}
\r
799 { author empty$ title empty$ howpublished empty$
\r
800 month empty$ year empty$ note empty$ url empty$
\r
801 and and and and and and
\r
802 { "all relevant fields are empty in " cite$ * warning$ }
\r
808 % The bibinfo system provides a way for the electronic parsing/acquisition
\r
809 % of a bibliography's contents as is done by ReVTeX. For example, a field
\r
810 % could be entered into the bibliography as:
\r
811 % \bibinfo{volume}{2}
\r
812 % Only the "2" would show up in the document, but the LaTeX \bibinfo command
\r
813 % could do additional things with the information. IEEEtran.bst does provide
\r
814 % a \bibinfo command via "\providecommand{\bibinfo}[2]{#2}". However, it is
\r
815 % currently not used as the bogus bibinfo functions defined here output the
\r
816 % entry values directly without the \bibinfo wrapper. The bibinfo functions
\r
817 % themselves (and the calls to them) are retained for possible future use.
\r
819 % bibinfo.check avoids acting on missing fields while bibinfo.warn will
\r
820 % issue a warning message if a missing field is detected. Prior to calling
\r
821 % the bibinfo functions, the user should push the field value and then its
\r
822 % name string, in that order.
\r
824 FUNCTION {bibinfo.check}
\r
825 { swap$ duplicate$ missing$
\r
827 { duplicate$ empty$
\r
835 FUNCTION {bibinfo.warn}
\r
836 { swap$ duplicate$ missing$
\r
837 { swap$ "missing " swap$ * " in " * cite$ * warning$ pop$ "" }
\r
838 { duplicate$ empty$
\r
839 { swap$ "empty " swap$ * " in " * cite$ * warning$ }
\r
847 % IEEE separates large numbers with more than 4 digits into groups of
\r
848 % three. IEEE uses a small space to separate these number groups.
\r
849 % Typical applications include patent and page numbers.
\r
851 % number of consecutive digits required to trigger the group separation.
\r
852 FUNCTION {large.number.trigger}{ #5 }
\r
854 % For numbers longer than the trigger, this is the blocksize of the groups.
\r
855 % The blocksize must be less than the trigger threshold, and 2 * blocksize
\r
856 % must be greater than the trigger threshold (can't do more than one
\r
857 % separation on the initial trigger).
\r
858 FUNCTION {large.number.blocksize}{ #3 }
\r
860 % What is actually inserted between the number groups.
\r
861 FUNCTION {large.number.separator}{ "\," }
\r
863 % So as to save on integer variables by reusing existing ones, numnames
\r
864 % holds the current number of consecutive digits read and nameptr holds
\r
865 % the number that will trigger an inserted space.
\r
866 FUNCTION {large.number.separate}
\r
870 large.number.trigger 'nameptr :=
\r
872 { t #-1 #1 substring$ is.num
\r
873 { numnames #1 + 'numnames := }
\r
875 large.number.trigger 'nameptr :=
\r
878 t #-1 #1 substring$ swap$ *
\r
879 t #-2 global.max$ substring$ 't :=
\r
881 { duplicate$ #1 nameptr large.number.blocksize - substring$ swap$
\r
882 nameptr large.number.blocksize - #1 + global.max$ substring$
\r
883 large.number.separator swap$ * *
\r
884 nameptr large.number.blocksize - 'numnames :=
\r
885 large.number.blocksize #1 + 'nameptr :=
\r
893 % Converts all single dashes "-" to double dashes "--".
\r
894 FUNCTION {n.dashify}
\r
895 { large.number.separate
\r
899 { t #1 #1 substring$ "-" =
\r
900 { t #1 #2 substring$ "--" = not
\r
902 t #2 global.max$ substring$ 't :=
\r
904 { { t #1 #1 substring$ "-" = }
\r
906 t #2 global.max$ substring$ 't :=
\r
912 { t #1 #1 substring$ *
\r
913 t #2 global.max$ substring$ 't :=
\r
921 % This function detects entries with names that are identical to that of
\r
922 % the previous entry and replaces the repeated names with dashes (if the
\r
923 % "is.dash.repeated.names" user control is nonzero).
\r
924 FUNCTION {name.or.dash}
\r
927 { s 'oldname := s }
\r
929 { is.dash.repeated.names
\r
930 { repeated.name.dashes }
\r
931 { s 'oldname := s }
\r
934 { s 'oldname := s }
\r
940 % Converts the number string on the top of the stack to
\r
941 % "numerical ordinal form" (e.g., "7" to "7th"). There is
\r
942 % no artificial limit to the upper bound of the numbers as the
\r
943 % two least significant digits determine the ordinal form.
\r
944 FUNCTION {num.to.ordinal}
\r
945 { duplicate$ #-2 #1 substring$ "1" =
\r
947 { duplicate$ #-1 #1 substring$ "1" =
\r
949 { duplicate$ #-1 #1 substring$ "2" =
\r
951 { duplicate$ #-1 #1 substring$ "3" =
\r
963 % If the string on the top of the stack begins with a number,
\r
964 % (e.g., 11th) then replace the string with the leading number
\r
965 % it contains. Otherwise retain the string as-is. s holds the
\r
966 % extracted number, t holds the part of the string that remains
\r
968 FUNCTION {extract.num}
\r
972 { t #1 #1 substring$
\r
973 t #2 global.max$ substring$ 't :=
\r
975 { s swap$ * 's := }
\r
986 % Converts the word number string on the top of the stack to
\r
987 % Arabic string form. Will be successful up to "tenth".
\r
988 FUNCTION {word.to.num}
\r
989 { duplicate$ "l" change.case$ 's :=
\r
1033 % Converts the string on the top of the stack to numerical
\r
1034 % ordinal (e.g., "11th") form.
\r
1035 FUNCTION {convert.edition}
\r
1036 { duplicate$ empty$ 'skip$
\r
1037 { duplicate$ #1 #1 substring$ is.num
\r
1042 duplicate$ #1 #1 substring$ is.num
\r
1043 { num.to.ordinal }
\r
1044 { "edition ordinal word " quote$ * edition * quote$ *
\r
1045 " may be too high (or improper) for conversion" * " in " * cite$ * warning$
\r
1057 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\r
1058 %% LATEX BIBLIOGRAPHY CODE %%
\r
1059 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\r
1061 FUNCTION {start.entry}
\r
1063 "\bibitem{" write$
\r
1068 initialize.prev.this.status
\r
1071 % Here we write out all the LaTeX code that we will need. The most involved
\r
1072 % code sequences are those that control the alternate interword spacing and
\r
1073 % foreign language hyphenation patterns. The heavy use of \providecommand
\r
1074 % gives users a way to override the defaults. Special thanks to Javier Bezos,
\r
1075 % Johannes Braams, Robin Fairbairns, Heiko Oberdiek, Donald Arseneau and all
\r
1076 % the other gurus on comp.text.tex for their help and advice on the topic of
\r
1077 % \selectlanguage, Babel and BibTeX.
\r
1078 FUNCTION {begin.bib}
\r
1079 { "% Generated by IEEEtran.bst, version: " bst.file.version * " (" * bst.file.date * ")" *
\r
1081 preamble$ empty$ 'skip$
\r
1082 { preamble$ write$ newline$ }
\r
1084 "\begin{thebibliography}{" longest.label * "}" *
\r
1086 "\providecommand{\url}[1]{#1}"
\r
1088 "\csname url@samestyle\endcsname"
\r
1090 "\providecommand{\newblock}{\relax}"
\r
1092 "\providecommand{\bibinfo}[2]{#2}"
\r
1094 "\providecommand{\BIBentrySTDinterwordspacing}{\spaceskip=0pt\relax}"
\r
1096 "\providecommand{\BIBentryALTinterwordstretchfactor}{"
\r
1097 ALTinterwordstretchfactor * "}" *
\r
1099 "\providecommand{\BIBentryALTinterwordspacing}{\spaceskip=\fontdimen2\font plus "
\r
1101 "\BIBentryALTinterwordstretchfactor\fontdimen3\font minus \fontdimen4\font\relax}"
\r
1103 "\providecommand{\BIBforeignlanguage}[2]{{%"
\r
1105 "\expandafter\ifx\csname l@#1\endcsname\relax"
\r
1107 "\typeout{** WARNING: IEEEtran.bst: No hyphenation pattern has been}%"
\r
1109 "\typeout{** loaded for the language `#1'. Using the pattern for}%"
\r
1111 "\typeout{** the default language instead.}%"
\r
1115 "\language=\csname l@#1\endcsname"
\r
1121 "\providecommand{\BIBdecl}{\relax}"
\r
1127 FUNCTION {end.bib}
\r
1128 { newline$ "\end{thebibliography}" write$ newline$ }
\r
1130 FUNCTION {if.url.alt.interword.spacing}
\r
1131 { is.use.alt.interword.spacing
\r
1132 {url empty$ 'skip$ {"\BIBentryALTinterwordspacing" write$ newline$} if$}
\r
1137 FUNCTION {if.url.std.interword.spacing}
\r
1138 { is.use.alt.interword.spacing
\r
1139 {url empty$ 'skip$ {"\BIBentrySTDinterwordspacing" write$ newline$} if$}
\r
1147 %%%%%%%%%%%%%%%%%%%%%%%%
\r
1148 %% LONGEST LABEL PASS %%
\r
1149 %%%%%%%%%%%%%%%%%%%%%%%%
\r
1151 FUNCTION {initialize.longest.label}
\r
1152 { "" 'longest.label :=
\r
1153 #1 'number.label :=
\r
1154 #0 'longest.label.width :=
\r
1157 FUNCTION {longest.label.pass}
\r
1158 { type$ "ieeetranbstctl" =
\r
1160 { number.label int.to.str$ 'label :=
\r
1161 number.label #1 + 'number.label :=
\r
1162 label width$ longest.label.width >
\r
1163 { label 'longest.label :=
\r
1164 label width$ 'longest.label.width :=
\r
1175 %%%%%%%%%%%%%%%%%%%%%
\r
1176 %% FORMAT HANDLERS %%
\r
1177 %%%%%%%%%%%%%%%%%%%%%
\r
1179 %% Lower Level Formats (used by higher level formats)
\r
1181 FUNCTION {format.address.org.or.pub.date}
\r
1185 { "empty year in " cite$ * warning$ }
\r
1188 address empty$ t empty$ and
\r
1189 year empty$ and month empty$ and
\r
1191 { this.to.prev.status
\r
1194 address "address" bibinfo.check *
\r
1197 { punct.period 'prev.status.punct :=
\r
1198 space.large 'prev.status.space :=
\r
1206 year empty$ month empty$ and
\r
1208 { t empty$ address empty$ and
\r
1215 { year "year" bibinfo.check * }
\r
1218 { month "month" bibinfo.check *
\r
1221 { " " * year "year" bibinfo.check * }
\r
1232 FUNCTION {format.names}
\r
1234 duplicate$ empty$ 'skip$ {
\r
1235 this.to.prev.status
\r
1240 s num.names$ 'numnames :=
\r
1241 numnames 'namesleft :=
\r
1242 { namesleft #0 > }
\r
1244 name.format.string
\r
1246 bibinfo bibinfo.check
\r
1249 { nameptr num.names.shown.with.forced.et.al #1 + =
\r
1250 numnames max.num.names.before.forced.et.al >
\r
1251 is.forced.et.al and and
\r
1258 { ", " * t do.name.latex.cmd * }
\r
1259 { s nameptr "{ll}" format.name$ duplicate$ "others" =
\r
1264 { " " * bbl.etal emphasize * }
\r
1270 space.word * t do.name.latex.cmd *
\r
1276 { t do.name.latex.cmd }
\r
1278 nameptr #1 + 'nameptr :=
\r
1279 namesleft #1 - 'namesleft :=
\r
1289 %% Higher Level Formats
\r
1291 %% addresses/locations
\r
1293 FUNCTION {format.address}
\r
1294 { address duplicate$ empty$ 'skip$
\r
1295 { this.to.prev.status
\r
1304 %% author/editor names
\r
1306 FUNCTION {format.authors}{ author "author" format.names }
\r
1308 FUNCTION {format.editors}
\r
1309 { editor "editor" format.names duplicate$ empty$ 'skip$
\r
1322 FUNCTION {format.date}
\r
1324 month "month" bibinfo.check duplicate$ empty$
\r
1325 year "year" bibinfo.check duplicate$ empty$
\r
1327 { this.to.prev.status
\r
1330 "there's a month but no year in " cite$ * warning$ }
\r
1334 { this.to.prev.status
\r
1348 % WARNING: This function was modified to adhere to the formatting rules
\r
1349 % of MESH2013 conference for entries with both month and year specified.
\r
1350 % It will not work properly otherwise.
\r
1351 FUNCTION {format.date.electronic}
\r
1352 { year "year" bibinfo.check duplicate$ empty$
\r
1353 month "month" bibinfo.check duplicate$ empty$
\r
1356 { "there's a month but no year in " cite$ * warning$
\r
1357 pop$ ")" * "(" swap$ *
\r
1358 this.to.prev.status
\r
1359 punct.no 'this.status.punct :=
\r
1360 space.normal 'this.status.space :=
\r
1361 quote.no 'this.status.quote :=
\r
1362 cap.yes 'status.cap :=
\r
1367 { swap$ pop$ ")" * "(" swap$ * }
\r
1368 { "[retrieved: " swap$ * ", " * swap$ * "]" * }
\r
1370 this.to.prev.status
\r
1371 punct.no 'this.status.punct :=
\r
1372 space.normal 'this.status.space :=
\r
1373 quote.no 'this.status.quote :=
\r
1374 cap.yes 'status.cap :=
\r
1383 % Note: IEEE considers the edition to be closely associated with
\r
1384 % the title of a book. So, in IEEEtran.bst the edition is normally handled
\r
1385 % within the formatting of the title. The format.edition function is
\r
1386 % retained here for possible future use.
\r
1387 FUNCTION {format.edition}
\r
1388 { edition duplicate$ empty$ 'skip$
\r
1389 { this.to.prev.status
\r
1396 "edition" bibinfo.check
\r
1397 "~" * bbl.edition *
\r
1403 % This is used to format the booktitle of a conference proceedings.
\r
1404 % Here we use the "intype" field to provide the user a way to
\r
1405 % override the word "in" (e.g., with things like "presented at")
\r
1406 % Use of intype stops the emphasis of the booktitle to indicate that
\r
1407 % we no longer mean the written conference proceedings, but the
\r
1408 % conference itself.
\r
1409 FUNCTION {format.in.booktitle}
\r
1410 { booktitle "booktitle" bibinfo.check duplicate$ empty$ 'skip$
\r
1411 { this.to.prev.status
\r
1426 % This is used to format the booktitle of collection.
\r
1427 % Here the "intype" field is not supported, but "edition" is.
\r
1428 FUNCTION {format.in.booktitle.edition}
\r
1429 { booktitle "booktitle" bibinfo.check duplicate$ empty$ 'skip$
\r
1430 { this.to.prev.status
\r
1434 edition empty$ 'skip$
\r
1439 * "~" * bbl.edition *
\r
1442 bbl.in " " * swap$ *
\r
1448 FUNCTION {format.article.title}
\r
1449 { title duplicate$ empty$ 'skip$
\r
1450 { this.to.prev.status
\r
1455 "title" bibinfo.check
\r
1456 duplicate$ empty$ 'skip$
\r
1457 { quote.close 'this.status.quote :=
\r
1458 is.last.char.not.punct
\r
1459 { punct.std 'this.status.punct := }
\r
1460 { punct.no 'this.status.punct := }
\r
1469 FUNCTION {format.article.title.electronic}
\r
1470 { title duplicate$ empty$ 'skip$
\r
1471 { this.to.prev.status
\r
1477 "title" bibinfo.check
\r
1478 duplicate$ empty$
\r
1480 { select.language }
\r
1484 FUNCTION {format.book.title.edition}
\r
1485 { title "title" bibinfo.check
\r
1487 { "empty title in " cite$ * warning$ }
\r
1488 { this.to.prev.status
\r
1492 edition empty$ 'skip$
\r
1501 * "~" * bbl.edition *
\r
1509 FUNCTION {format.book.title}
\r
1510 { title "title" bibinfo.check
\r
1511 duplicate$ empty$ 'skip$
\r
1512 { this.to.prev.status
\r
1525 FUNCTION {format.journal}
\r
1526 { journal duplicate$ empty$ 'skip$
\r
1527 { this.to.prev.status
\r
1540 FUNCTION {format.howpublished}
\r
1541 { howpublished duplicate$ empty$ 'skip$
\r
1542 { this.to.prev.status
\r
1551 %% institutions/organization/publishers/school
\r
1553 FUNCTION {format.institution}
\r
1554 { institution duplicate$ empty$ 'skip$
\r
1555 { this.to.prev.status
\r
1562 FUNCTION {format.organization}
\r
1563 { organization duplicate$ empty$ 'skip$
\r
1564 { this.to.prev.status
\r
1571 FUNCTION {format.address.publisher.date}
\r
1572 { publisher "publisher" bibinfo.warn format.address.org.or.pub.date }
\r
1574 FUNCTION {format.address.publisher.date.nowarn}
\r
1575 { publisher "publisher" bibinfo.check format.address.org.or.pub.date }
\r
1577 FUNCTION {format.address.organization.date}
\r
1578 { organization "organization" bibinfo.check format.address.org.or.pub.date }
\r
1580 FUNCTION {format.school}
\r
1581 { school duplicate$ empty$ 'skip$
\r
1582 { this.to.prev.status
\r
1591 %% volume/number/series/chapter/pages
\r
1593 FUNCTION {format.volume}
\r
1594 { volume empty.field.to.null.string
\r
1595 duplicate$ empty$ 'skip$
\r
1596 { this.to.prev.status
\r
1603 swap$ tie.or.space.prefix
\r
1604 "volume" bibinfo.check
\r
1611 FUNCTION {format.number}
\r
1612 { number empty.field.to.null.string
\r
1613 duplicate$ empty$ 'skip$
\r
1614 { this.to.prev.status
\r
1617 { bbl.number capitalize }
\r
1620 swap$ tie.or.space.prefix
\r
1621 "number" bibinfo.check
\r
1628 FUNCTION {format.number.if.use.for.article}
\r
1629 { is.use.number.for.article
\r
1635 % IEEE does not seem to tie the series so closely with the volume
\r
1636 % and number as is done in other bibliography styles. Instead the
\r
1637 % series is treated somewhat like an extension of the title.
\r
1638 FUNCTION {format.series}
\r
1641 { this.to.prev.status
\r
1644 series "series" bibinfo.check *
\r
1651 FUNCTION {format.chapter}
\r
1654 { this.to.prev.status
\r
1658 { type "l" change.case$
\r
1659 "type" bibinfo.check
\r
1662 chapter tie.or.space.prefix
\r
1663 "chapter" bibinfo.check
\r
1671 % The intended use of format.paper is for paper numbers of inproceedings.
\r
1672 % The paper type can be overridden via the type field.
\r
1673 % We allow the type to be displayed even if the paper number is absent
\r
1674 % for things like "postdeadline paper"
\r
1675 FUNCTION {format.paper}
\r
1680 { this.to.prev.status
\r
1682 type "type" bibinfo.check
\r
1687 { this.to.prev.status
\r
1691 { type "type" bibinfo.check }
\r
1694 "paper" bibinfo.check
\r
1705 FUNCTION {format.pages}
\r
1706 { pages duplicate$ empty$ 'skip$
\r
1707 { this.to.prev.status
\r
1709 duplicate$ is.multiple.pages
\r
1718 tie.or.space.prefix
\r
1719 "pages" bibinfo.check
\r
1728 %% technical report number
\r
1730 FUNCTION {format.tech.report.number}
\r
1731 { number "number" bibinfo.check
\r
1732 this.to.prev.status
\r
1735 type duplicate$ empty$
\r
1741 "type" bibinfo.check
\r
1742 swap$ duplicate$ empty$
\r
1744 { tie.or.space.prefix * * }
\r
1752 FUNCTION {format.note}
\r
1755 { this.to.prev.status
\r
1757 punct.period 'this.status.punct :=
\r
1758 note #1 #1 substring$
\r
1768 note #2 global.max$ substring$ * "note" bibinfo.check
\r
1769 cap.yes 'status.cap :=
\r
1778 FUNCTION {format.patent.date}
\r
1779 { this.to.prev.status
\r
1782 { monthfiled duplicate$ empty$
\r
1783 { "monthfiled" bibinfo.check pop$ "" }
\r
1784 { "monthfiled" bibinfo.check }
\r
1786 dayfiled duplicate$ empty$
\r
1787 { "dayfiled" bibinfo.check pop$ "" * }
\r
1788 { "dayfiled" bibinfo.check
\r
1789 monthfiled empty$
\r
1790 { "dayfiled without a monthfiled in " cite$ * warning$
\r
1798 { "no year or yearfiled in " cite$ * warning$ }
\r
1799 { yearfiled "yearfiled" bibinfo.check
\r
1803 { ", " * swap$ * }
\r
1808 { month duplicate$ empty$
\r
1809 { "month" bibinfo.check pop$ "" }
\r
1810 { "month" bibinfo.check }
\r
1812 day duplicate$ empty$
\r
1813 { "day" bibinfo.check pop$ "" * }
\r
1814 { "day" bibinfo.check
\r
1816 { "day without a month in " cite$ * warning$
\r
1823 year "year" bibinfo.check
\r
1827 { ", " * swap$ * }
\r
1834 FUNCTION {format.patent.nationality.type.number}
\r
1835 { this.to.prev.status
\r
1837 nationality duplicate$ empty$
\r
1838 { "nationality" bibinfo.warn pop$ "" }
\r
1839 { "nationality" bibinfo.check
\r
1840 duplicate$ "l" change.case$ "united states" =
\r
1841 { pop$ bbl.patentUS }
\r
1848 { bbl.patent "type" bibinfo.check }
\r
1849 { type "type" bibinfo.check }
\r
1852 number duplicate$ empty$
\r
1853 { "number" bibinfo.warn pop$ }
\r
1854 { "number" bibinfo.check
\r
1855 large.number.separate
\r
1856 swap$ " " * swap$ *
\r
1866 FUNCTION {format.organization.institution.standard.type.number}
\r
1867 { this.to.prev.status
\r
1869 organization duplicate$ empty$
\r
1871 institution duplicate$ empty$
\r
1872 { "institution" bibinfo.warn }
\r
1873 { "institution" bibinfo.warn " " * }
\r
1876 { "organization" bibinfo.warn " " * }
\r
1879 { bbl.standard "type" bibinfo.check }
\r
1880 { type "type" bibinfo.check }
\r
1883 number duplicate$ empty$
\r
1884 { "number" bibinfo.check pop$ }
\r
1885 { "number" bibinfo.check
\r
1886 large.number.separate
\r
1887 swap$ " " * swap$ *
\r
1893 FUNCTION {format.revision}
\r
1896 { this.to.prev.status
\r
1899 revision tie.or.space.prefix
\r
1900 "revision" bibinfo.check
\r
1910 FUNCTION {format.master.thesis.type}
\r
1911 { this.to.prev.status
\r
1918 type "type" bibinfo.check
\r
1924 FUNCTION {format.phd.thesis.type}
\r
1925 { this.to.prev.status
\r
1932 type "type" bibinfo.check
\r
1942 FUNCTION {format.url}
\r
1945 { this.to.prev.status
\r
1947 cap.yes 'status.cap :=
\r
1948 name.url.prefix " " *
\r
1949 "\url{" * url * "}" *
\r
1950 punct.no 'this.status.punct :=
\r
1951 punct.period 'prev.status.punct :=
\r
1952 space.normal 'this.status.space :=
\r
1953 space.normal 'prev.status.space :=
\r
1954 quote.no 'this.status.quote :=
\r
1962 %%%%%%%%%%%%%%%%%%%%
\r
1963 %% ENTRY HANDLERS %%
\r
1964 %%%%%%%%%%%%%%%%%%%%
\r
1967 % Note: In many journals, IEEE (or the authors) tend not to show the number
\r
1968 % for articles, so the display of the number is controlled here by the
\r
1969 % switch "is.use.number.for.article"
\r
1970 FUNCTION {article}
\r
1971 { std.status.using.comma
\r
1973 if.url.alt.interword.spacing
\r
1974 format.authors "author" output.warn
\r
1976 format.article.title "title" output.warn
\r
1977 format.journal "journal" bibinfo.check "journal" output.warn
\r
1978 format.volume output
\r
1979 format.number.if.use.for.article output
\r
1980 format.date "year" output.warn
\r
1981 format.pages output
\r
1982 format.note output
\r
1985 if.url.std.interword.spacing
\r
1989 { std.status.using.comma
\r
1991 if.url.alt.interword.spacing
\r
1993 { format.editors "author and editor" output.warn }
\r
1994 { format.authors output.nonnull }
\r
1997 format.book.title.edition output
\r
1998 format.series output
\r
2001 { format.editors output }
\r
2003 format.address.publisher.date output
\r
2004 format.volume output
\r
2005 format.number output
\r
2006 format.note output
\r
2009 if.url.std.interword.spacing
\r
2012 FUNCTION {booklet}
\r
2013 { std.status.using.comma
\r
2015 if.url.alt.interword.spacing
\r
2016 format.authors output
\r
2018 format.article.title "title" output.warn
\r
2019 format.howpublished "howpublished" bibinfo.check output
\r
2020 format.organization "organization" bibinfo.check output
\r
2021 format.address "address" bibinfo.check output
\r
2022 format.date output
\r
2023 format.note output
\r
2026 if.url.std.interword.spacing
\r
2029 FUNCTION {electronic}
\r
2030 { std.status.using.period
\r
2032 if.url.alt.interword.spacing
\r
2033 format.authors output
\r
2035 format.article.title.electronic output
\r
2036 format.howpublished "howpublished" bibinfo.check output
\r
2037 format.organization "organization" bibinfo.check output
\r
2038 format.address "address" bibinfo.check output
\r
2039 format.note output
\r
2041 format.date.electronic output
\r
2044 if.url.std.interword.spacing
\r
2048 { std.status.using.comma
\r
2050 if.url.alt.interword.spacing
\r
2052 { format.editors "author and editor" output.warn }
\r
2053 { format.authors output.nonnull }
\r
2056 format.book.title.edition output
\r
2057 format.series output
\r
2058 format.address.publisher.date output
\r
2059 format.volume output
\r
2060 format.number output
\r
2061 format.chapter output
\r
2062 format.pages output
\r
2063 format.note output
\r
2066 if.url.std.interword.spacing
\r
2069 FUNCTION {incollection}
\r
2070 { std.status.using.comma
\r
2072 if.url.alt.interword.spacing
\r
2073 format.authors "author" output.warn
\r
2075 format.article.title "title" output.warn
\r
2076 format.in.booktitle.edition "booktitle" output.warn
\r
2077 format.series output
\r
2078 format.editors output
\r
2079 format.address.publisher.date.nowarn output
\r
2080 format.volume output
\r
2081 format.number output
\r
2082 format.chapter output
\r
2083 format.pages output
\r
2084 format.note output
\r
2087 if.url.std.interword.spacing
\r
2090 FUNCTION {inproceedings}
\r
2091 { std.status.using.comma
\r
2093 if.url.alt.interword.spacing
\r
2094 format.authors "author" output.warn
\r
2096 format.article.title "title" output.warn
\r
2097 format.in.booktitle "booktitle" output.warn
\r
2098 format.series output
\r
2099 format.editors output
\r
2100 format.volume output
\r
2101 format.number output
\r
2103 { format.address.organization.date output }
\r
2104 { format.organization "organization" bibinfo.check output
\r
2105 format.address.publisher.date output
\r
2108 format.paper output
\r
2109 format.pages output
\r
2110 format.note output
\r
2113 if.url.std.interword.spacing
\r
2117 { std.status.using.comma
\r
2119 if.url.alt.interword.spacing
\r
2120 format.authors output
\r
2122 format.book.title.edition "title" output.warn
\r
2123 format.howpublished "howpublished" bibinfo.check output
\r
2124 format.organization "organization" bibinfo.check output
\r
2125 format.address "address" bibinfo.check output
\r
2126 format.date output
\r
2127 format.note output
\r
2130 if.url.std.interword.spacing
\r
2133 FUNCTION {mastersthesis}
\r
2134 { std.status.using.comma
\r
2136 if.url.alt.interword.spacing
\r
2137 format.authors "author" output.warn
\r
2139 format.article.title "title" output.warn
\r
2140 format.master.thesis.type output.nonnull
\r
2141 format.school "school" bibinfo.warn output
\r
2142 format.address "address" bibinfo.check output
\r
2143 format.date "year" output.warn
\r
2144 format.note output
\r
2147 if.url.std.interword.spacing
\r
2151 { std.status.using.comma
\r
2153 if.url.alt.interword.spacing
\r
2154 format.authors output
\r
2156 format.article.title output
\r
2157 format.howpublished "howpublished" bibinfo.check output
\r
2158 format.organization "organization" bibinfo.check output
\r
2159 format.address "address" bibinfo.check output
\r
2160 format.pages output
\r
2161 format.date output
\r
2162 format.note output
\r
2166 if.url.std.interword.spacing
\r
2170 { std.status.using.comma
\r
2172 if.url.alt.interword.spacing
\r
2173 format.authors output
\r
2175 format.article.title output
\r
2176 format.patent.nationality.type.number output
\r
2177 format.patent.date output
\r
2178 format.note output
\r
2182 if.url.std.interword.spacing
\r
2185 FUNCTION {periodical}
\r
2186 { std.status.using.comma
\r
2188 if.url.alt.interword.spacing
\r
2189 format.editors output
\r
2191 format.book.title "title" output.warn
\r
2192 format.series output
\r
2193 format.volume output
\r
2194 format.number output
\r
2195 format.organization "organization" bibinfo.check output
\r
2196 format.date "year" output.warn
\r
2197 format.note output
\r
2200 if.url.std.interword.spacing
\r
2203 FUNCTION {phdthesis}
\r
2204 { std.status.using.comma
\r
2206 if.url.alt.interword.spacing
\r
2207 format.authors "author" output.warn
\r
2209 format.article.title "title" output.warn
\r
2210 format.phd.thesis.type output.nonnull
\r
2211 format.school "school" bibinfo.warn output
\r
2212 format.address "address" bibinfo.check output
\r
2213 format.date "year" output.warn
\r
2214 format.note output
\r
2217 if.url.std.interword.spacing
\r
2220 FUNCTION {proceedings}
\r
2221 { std.status.using.comma
\r
2223 if.url.alt.interword.spacing
\r
2224 format.editors output
\r
2226 format.book.title "title" output.warn
\r
2227 format.series output
\r
2228 format.volume output
\r
2229 format.number output
\r
2231 { format.address.organization.date output }
\r
2232 { format.organization "organization" bibinfo.check output
\r
2233 format.address.publisher.date output
\r
2236 format.note output
\r
2239 if.url.std.interword.spacing
\r
2242 FUNCTION {standard}
\r
2243 { std.status.using.comma
\r
2245 if.url.alt.interword.spacing
\r
2246 format.authors output
\r
2248 format.book.title "title" output.warn
\r
2249 format.howpublished "howpublished" bibinfo.check output
\r
2250 format.organization.institution.standard.type.number output
\r
2251 format.revision output
\r
2252 format.date output
\r
2253 format.note output
\r
2256 if.url.std.interword.spacing
\r
2259 FUNCTION {techreport}
\r
2260 { std.status.using.comma
\r
2262 if.url.alt.interword.spacing
\r
2263 format.authors "author" output.warn
\r
2265 format.article.title "title" output.warn
\r
2266 format.howpublished "howpublished" bibinfo.check output
\r
2267 format.institution "institution" bibinfo.warn output
\r
2268 format.address "address" bibinfo.check output
\r
2269 format.tech.report.number output.nonnull
\r
2270 format.date "year" output.warn
\r
2271 format.note output
\r
2274 if.url.std.interword.spacing
\r
2277 FUNCTION {unpublished}
\r
2278 { std.status.using.comma
\r
2280 if.url.alt.interword.spacing
\r
2281 format.authors "author" output.warn
\r
2283 format.article.title "title" output.warn
\r
2284 format.date output
\r
2285 format.note "note" output.warn
\r
2288 if.url.std.interword.spacing
\r
2292 % The special entry type which provides the user interface to the
\r
2294 FUNCTION {IEEEtranBSTCTL}
\r
2295 { is.print.banners.to.terminal
\r
2296 { "** IEEEtran BST control entry " quote$ * cite$ * quote$ * " detected." *
\r
2301 CTLuse_article_number
\r
2304 { CTLuse_article_number
\r
2306 'is.use.number.for.article :=
\r
2317 CTLuse_forced_etal
\r
2320 { CTLuse_forced_etal
\r
2322 'is.forced.et.al :=
\r
2325 CTLmax_names_forced_etal
\r
2328 { CTLmax_names_forced_etal
\r
2330 'max.num.names.before.forced.et.al :=
\r
2333 CTLnames_show_etal
\r
2336 { CTLnames_show_etal
\r
2338 'num.names.shown.with.forced.et.al :=
\r
2341 CTLuse_alt_spacing
\r
2344 { CTLuse_alt_spacing
\r
2346 'is.use.alt.interword.spacing :=
\r
2349 CTLalt_stretch_factor
\r
2352 { CTLalt_stretch_factor
\r
2353 'ALTinterwordstretchfactor :=
\r
2354 "\renewcommand{\BIBentryALTinterwordstretchfactor}{"
\r
2355 ALTinterwordstretchfactor * "}" *
\r
2359 CTLdash_repeated_names
\r
2362 { CTLdash_repeated_names
\r
2364 'is.dash.repeated.names :=
\r
2367 CTLname_format_string
\r
2370 { CTLname_format_string
\r
2371 'name.format.string :=
\r
2377 { CTLname_latex_cmd
\r
2378 'name.latex.cmd :=
\r
2381 CTLname_url_prefix
\r
2384 { CTLname_url_prefix
\r
2385 'name.url.prefix :=
\r
2390 num.names.shown.with.forced.et.al max.num.names.before.forced.et.al >
\r
2391 { "CTLnames_show_etal cannot be greater than CTLmax_names_forced_etal in " cite$ * warning$
\r
2392 max.num.names.before.forced.et.al 'num.names.shown.with.forced.et.al :=
\r
2399 %%%%%%%%%%%%%%%%%%%
\r
2400 %% ENTRY ALIASES %%
\r
2401 %%%%%%%%%%%%%%%%%%%
\r
2402 FUNCTION {conference}{inproceedings}
\r
2403 FUNCTION {online}{electronic}
\r
2404 FUNCTION {internet}{electronic}
\r
2405 FUNCTION {webpage}{electronic}
\r
2406 FUNCTION {www}{electronic}
\r
2407 FUNCTION {default.type}{misc}
\r
2411 %%%%%%%%%%%%%%%%%%
\r
2412 %% MAIN PROGRAM %%
\r
2413 %%%%%%%%%%%%%%%%%%
\r
2417 EXECUTE {initialize.controls}
\r
2418 EXECUTE {initialize.status.constants}
\r
2419 EXECUTE {banner.message}
\r
2421 EXECUTE {initialize.longest.label}
\r
2422 ITERATE {longest.label.pass}
\r
2424 EXECUTE {begin.bib}
\r
2425 ITERATE {call.type$}
\r
2428 EXECUTE{completed.message}
\r
2431 %% That's all folks, mds.
\r