diff options
Diffstat (limited to 'Master/texmf-dist/bibtex/bst/IEEEtran/IEEEtranSN.bst')
-rw-r--r-- | Master/texmf-dist/bibtex/bst/IEEEtran/IEEEtranSN.bst | 147 |
1 files changed, 84 insertions, 63 deletions
diff --git a/Master/texmf-dist/bibtex/bst/IEEEtran/IEEEtranSN.bst b/Master/texmf-dist/bibtex/bst/IEEEtran/IEEEtranSN.bst index e13222105a1..da43e61aa18 100644 --- a/Master/texmf-dist/bibtex/bst/IEEEtran/IEEEtranSN.bst +++ b/Master/texmf-dist/bibtex/bst/IEEEtran/IEEEtranSN.bst @@ -3,9 +3,9 @@ %% BibTeX Bibliography Style file %% Sorting Natbib version of IEEEtran.bst %% *** Not for normal IEEE work *** -%% Version 1.13 (2008/09/30) +%% Version 1.14 (2015/08/26) %% -%% Copyright (c) 2003-2008 Michael Shell +%% Copyright (c) 2003-2015 Michael Shell %% %% Original starting code base and algorithms obtained from the output of %% Patrick W. Daly's makebst package as well as from prior versions of @@ -20,7 +20,7 @@ %% %% Support sites: %% http://www.michaelshell.org/tex/ieeetran/ -%% http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/ +%% http://www.ctan.org/pkg/ieeetran %% and/or %% http://www.ieee.org/ %% @@ -34,7 +34,7 @@ %% implied; without even the implied warranty of MERCHANTABILITY or %% FITNESS FOR A PARTICULAR PURPOSE! %% User assumes all risk. -%% In no event shall IEEE or any contributor to this code be liable for +%% In no event shall the IEEE or any contributor to this code be liable for %% any damages or losses, including, but not limited to, incidental, %% consequential, or any other damages, resulting from the use or misuse %% of any information contained here. @@ -50,20 +50,7 @@ %% Retain all contribution notices and credits. %% ** Modified files should be clearly indicated as such, including ** %% ** renaming them and changing author support contact information. ** -%% -%% File list of work: IEEEabrv.bib, IEEEfull.bib, IEEEexample.bib, -%% IEEEtran.bst, IEEEtranS.bst, IEEEtranSA.bst, -%% IEEEtranN.bst, IEEEtranSN.bst, IEEEtran_bst_HOWTO.pdf %%************************************************************************* -% -% -% Changelog: -% -% 1.12 (2007/01/11) Initial release -% -% 1.13 (2008/09/30) -% 1. Fixed bug with edition number to ordinal conversion. Thanks to -% Michael Roland for reporting this and correcting the algorithm. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -101,10 +88,16 @@ FUNCTION {default.is.use.number.for.article} { #1 } FUNCTION {default.is.use.paper} { #1 } +% #0 turns off the display of urls +% #1 enables +FUNCTION {default.is.use.url} { #1 } + + % #0 turns off the forced use of "et al." % #1 enables FUNCTION {default.is.forced.et.al} { #0 } + % The maximum number of names that can be present beyond which an "et al." % usage is forced. Be sure that num.names.shown.with.forced.et.al (below) % is not greater than this value! @@ -113,6 +106,7 @@ FUNCTION {default.is.forced.et.al} { #0 } % used profusely. FUNCTION {default.max.num.names.before.forced.et.al} { #10 } + % The number of names that will be shown with a forced "et al.". % Must be less than or equal to max.num.names.before.forced.et.al FUNCTION {default.num.names.shown.with.forced.et.al} { #1 } @@ -122,6 +116,7 @@ FUNCTION {default.num.names.shown.with.forced.et.al} { #1 } % #1 enables FUNCTION {default.is.use.alt.interword.spacing} { #1 } + % If alternate interword spacing for entries with URLs is enabled, this is % the interword spacing stretch factor that will be used. For example, the % default "4" here means that the interword spacing in entries with URLs can @@ -134,7 +129,7 @@ FUNCTION {default.ALTinterwordstretchfactor} { "4" } % #0 turns off the "dashification" of repeated (i.e., identical to those -% of the previous entry) names. IEEE normally does this. +% of the previous entry) names. The IEEE normally does this. % #1 enables FUNCTION {default.is.dash.repeated.names} { #1 } @@ -165,8 +160,8 @@ FUNCTION {is.print.banners.to.terminal} { #1 } %% FILE VERSION AND BANNER %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%% -FUNCTION{bst.file.version} { "1.13" } -FUNCTION{bst.file.date} { "2008/09/30" } +FUNCTION{bst.file.version} { "1.14" } +FUNCTION{bst.file.date} { "2015/08/26" } FUNCTION{bst.file.website} { "http://www.michaelshell.org/tex/ieeetran/bibtex/" } FUNCTION {banner.message} @@ -203,6 +198,8 @@ FUNCTION {completed.message} %% STRING CONSTANTS %% %%%%%%%%%%%%%%%%%%%%%% +FUNCTION {bbl.a}{ "A" } +FUNCTION {bbl.an}{ "An" } FUNCTION {bbl.and}{ "and" } FUNCTION {bbl.etal}{ "et~al." } FUNCTION {bbl.editors}{ "eds." } @@ -223,6 +220,7 @@ FUNCTION {bbl.revision}{ "Rev." } FUNCTION {bbl.series}{ "ser." } FUNCTION {bbl.standard}{ "Std." } FUNCTION {bbl.techrep}{ "Tech. Rep." } +FUNCTION {bbl.the}{ "The" } FUNCTION {bbl.mthesis}{ "Master's thesis" } FUNCTION {bbl.phdthesis}{ "Ph.D. dissertation" } FUNCTION {bbl.st}{ "st" } @@ -238,7 +236,7 @@ FUNCTION {large.space} { "\hskip 1em plus 0.5em minus 0.4em\relax " } % The LaTeX code for dashes that are used to represent repeated names. % Note: Some older IEEE journals used something like % "\rule{0.275in}{0.5pt}\," which is fairly thick and runs right along -% the baseline. However, IEEE now uses a thinner, above baseline, +% the baseline. However, the IEEE now uses a thinner, above baseline, % six dash long sequence. FUNCTION {repeated.name.dashes} { "------" } @@ -303,6 +301,7 @@ ENTRY yearfiled CTLuse_article_number CTLuse_paper + CTLuse_url CTLuse_forced_etal CTLmax_names_forced_etal CTLnames_show_etal @@ -338,6 +337,7 @@ INTEGERS { longest.label.width multiresult nameptr namesleft number.label numnam INTEGERS { is.use.number.for.article is.use.paper + is.use.url is.forced.et.al max.num.names.before.forced.et.al num.names.shown.with.forced.et.al @@ -369,6 +369,7 @@ STRINGS { bibinfo FUNCTION {initialize.controls} { default.is.use.number.for.article 'is.use.number.for.article := default.is.use.paper 'is.use.paper := + default.is.use.url 'is.use.url := default.is.forced.et.al 'is.forced.et.al := default.max.num.names.before.forced.et.al 'max.num.names.before.forced.et.al := default.num.names.shown.with.forced.et.al 'num.names.shown.with.forced.et.al := @@ -391,7 +392,7 @@ FUNCTION {initialize.controls} % "mid.sentence", etc.) used in most other .bst files. % % The more flexible and complex design used here was motivated in part by -% IEEE's rather unusual bibliography style. For example, IEEE ends the +% the IEEE's rather unusual bibliography style. For example, the IEEE ends the % previous field item with a period and large space prior to the publisher % address; the @electronic entry types use periods as inter-item punctuation % rather than the commas used by the other entry types; and URLs are never @@ -815,8 +816,8 @@ FUNCTION {bibinfo.warn} } -% IEEE separates large numbers with more than 4 digits into groups of -% three. IEEE uses a small space to separate these number groups. +% The IEEE separates large numbers with more than 4 digits into groups of +% three. The IEEE uses a small space to separate these number groups. % Typical applications include patent and page numbers. % number of consecutive digits required to trigger the group separation. @@ -1048,8 +1049,8 @@ FUNCTION {format.full.names} 'skip$ if$ t "others" = - { " et~al." * } - { " and " * t * } + { " " bbl.etal * * } + { " " bbl.and * " " * * t * } if$ } if$ @@ -1181,17 +1182,25 @@ FUNCTION {end.bib} { newline$ "\end{thebibliography}" write$ newline$ } FUNCTION {if.url.alt.interword.spacing} -{ is.use.alt.interword.spacing - {url empty$ 'skip$ {"\BIBentryALTinterwordspacing" write$ newline$} if$} - { skip$ } - if$ +{ is.use.alt.interword.spacing + { is.use.url + { url empty$ 'skip$ {"\BIBentryALTinterwordspacing" write$ newline$} if$ } + { skip$ } + if$ + } + { skip$ } + if$ } FUNCTION {if.url.std.interword.spacing} -{ is.use.alt.interword.spacing - {url empty$ 'skip$ {"\BIBentrySTDinterwordspacing" write$ newline$} if$} - { skip$ } - if$ +{ is.use.alt.interword.spacing + { is.use.url + { url empty$ 'skip$ {"\BIBentrySTDinterwordspacing" write$ newline$} if$ } + { skip$ } + if$ + } + { skip$ } + if$ } @@ -1402,7 +1411,7 @@ FUNCTION {format.date.electronic} %% edition/title -% Note: IEEE considers the edition to be closely associated with +% Note: The IEEE considers the edition to be closely associated with % the title of a book. So, in IEEEtran.bst the edition is normally handled % within the formatting of the title. The format.edition function is % retained here for possible future use. @@ -1654,7 +1663,7 @@ FUNCTION {format.number.if.use.for.article} if$ } -% IEEE does not seem to tie the series so closely with the volume +% The IEEE does not seem to tie the series so closely with the volume % and number as is done in other bibliography styles. Instead the % series is treated somewhat like an extension of the title. FUNCTION {format.series} @@ -1962,19 +1971,23 @@ cap.status.std %% URL FUNCTION {format.url} -{ url empty$ - { "" } - { this.to.prev.status - this.status.std - cap.yes 'status.cap := - name.url.prefix " " * - "\url{" * url * "}" * - punct.no 'this.status.punct := - punct.period 'prev.status.punct := - space.normal 'this.status.space := - space.normal 'prev.status.space := - quote.no 'this.status.quote := +{ is.use.url + { url empty$ + { "" } + { this.to.prev.status + this.status.std + cap.yes 'status.cap := + name.url.prefix " " * + "\url{" * url * "}" * + punct.no 'this.status.punct := + punct.period 'prev.status.punct := + space.normal 'this.status.space := + space.normal 'prev.status.space := + quote.no 'this.status.quote := + } + if$ } + { "" } if$ } @@ -1986,7 +1999,7 @@ FUNCTION {format.url} %%%%%%%%%%%%%%%%%%%% -% Note: In many journals, IEEE (or the authors) tend not to show the number +% Note: In many journals, the IEEE (or the authors) tend not to show the number % for articles, so the display of the number is controlled here by the % switch "is.use.number.for.article" FUNCTION {article} @@ -2336,6 +2349,14 @@ FUNCTION {IEEEtranBSTCTL} 'is.use.paper := } if$ + CTLuse_url + empty$ + { skip$ } + { CTLuse_url + yes.no.to.int + 'is.use.url := + } + if$ CTLuse_forced_etal empty$ { skip$ } @@ -2501,9 +2522,9 @@ FUNCTION {sort.format.names} FUNCTION {sort.format.title} { 't := - "A " #2 - "An " #3 - "The " #4 t chop.word + bbl.a " " * #2 + bbl.an " " * #3 + bbl.the " " * #4 t chop.word chop.word chop.word sortify @@ -2544,7 +2565,7 @@ FUNCTION {author.organization.sort} { key sortify } if$ } - { "The " #4 organization chop.word sortify } + { bbl.the " " * #4 organization chop.word sortify } if$ } { author sort.format.names } @@ -2559,7 +2580,7 @@ FUNCTION {editor.organization.sort} { key sortify } if$ } - { "The " #4 organization chop.word sortify } + { bbl.the " " * #4 organization chop.word sortify } if$ } { editor sort.format.names } @@ -2575,10 +2596,10 @@ FUNCTION {author.organization.institution.sort} { key sortify } if$ } - { "The " #4 institution chop.word sortify } + { bbl.the " " * #4 institution chop.word sortify } if$ } - { "The " #4 organization chop.word sortify } + { bbl.the " " * #4 organization chop.word sortify } if$ } { author sort.format.names } @@ -2597,12 +2618,12 @@ FUNCTION {format.lab.names} s #1 "{vv~}{ll}" format.name$ s num.names$ duplicate$ #2 > - { pop$ " et~al." * } + { pop$ " " bbl.etal * * } { #2 < 'skip$ { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" = - { " et~al." * } - { " and " * s #2 "{vv~}{ll}" format.name$ * } + { " " bbl.etal * * } + { " " bbl.and * " " * * s #2 "{vv~}{ll}" format.name$ * } if$ } if$ @@ -2641,7 +2662,7 @@ FUNCTION {author.key.organization.label} { key empty$ { organization empty$ { cite$ #1 #3 substring$ } - { "The " #4 organization chop.word #3 text.prefix$ } + { bbl.the " " * #4 organization chop.word #3 text.prefix$ } if$ } { key } @@ -2657,10 +2678,10 @@ FUNCTION {author.key.organization.institution.label} { organization empty$ { institution empty$ { cite$ #1 #3 substring$ } - { "The " #4 institution chop.word #3 text.prefix$ } + { bbl.the " " * #4 institution chop.word #3 text.prefix$ } if$ } - { "The " #4 organization chop.word #3 text.prefix$ } + { bbl.the " " * #4 organization chop.word #3 text.prefix$ } if$ } { key } @@ -2675,7 +2696,7 @@ FUNCTION {editor.key.organization.label} { key empty$ { organization empty$ { cite$ #1 #3 substring$ } - { "The " #4 organization chop.word #3 text.prefix$ } + { bbl.the " " * #4 organization chop.word #3 text.prefix$ } if$ } { key } |