summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/bibtex/bst/achemso/achemso.bst
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-09-08 00:48:02 +0000
committerKarl Berry <karl@freefriends.org>2008-09-08 00:48:02 +0000
commita22e4cb7fe4ad156c686c172e44393ae54b7a1f3 (patch)
tree062f295f35789d9f3cb451bd9c7ae48b4ca9cad5 /Master/texmf-dist/bibtex/bst/achemso/achemso.bst
parent572d3c71718a606b766f8a2d553c3eeffc456587 (diff)
achemso 3.0a (26aug08)
git-svn-id: svn://tug.org/texlive/trunk@10476 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/bibtex/bst/achemso/achemso.bst')
-rw-r--r--Master/texmf-dist/bibtex/bst/achemso/achemso.bst574
1 files changed, 439 insertions, 135 deletions
diff --git a/Master/texmf-dist/bibtex/bst/achemso/achemso.bst b/Master/texmf-dist/bibtex/bst/achemso/achemso.bst
index 75b5aa38e09..597d13b4cbe 100644
--- a/Master/texmf-dist/bibtex/bst/achemso/achemso.bst
+++ b/Master/texmf-dist/bibtex/bst/achemso/achemso.bst
@@ -1,30 +1,17 @@
-%%
-%% This is file `achemso.bst',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% achemso.dtx (with options: `bib')
-%% ----------------------------------------------------------------
-%% The achemso package - LaTeX and BibTeX support for American
-%% Chemical Society publications
-%% Maintained by Joseph Wright
-%% E-mail: joseph.wright@morningstar2.co.uk
-%% Released under the LaTeX Project Public License v1.3c or later
-%% See http://www.latex-project.org/lppl.txt
-%% ----------------------------------------------------------------
-%%
ENTRY
{ address
author
booktitle
chapter
+ ctrl-use-title
+ ctrl-etal-number
doi
edition
editor
howpublished
institution
journal
+ key
note
number
organization
@@ -39,13 +26,15 @@ ENTRY
year
}
{}
- {
- label
+ { label
+ extra.label
+ short.list
}
INTEGERS { output.state before.all mid.sentence after.sentence }
INTEGERS { after.block after.item author.or.editor }
INTEGERS { separate.by.semicolon }
+INTEGERS { is.use.title etal.number }
FUNCTION {init.state.consts}
{ #0 'before.all :=
@@ -55,13 +44,19 @@ FUNCTION {init.state.consts}
#4 'after.item :=
}
+%% #0 turns off the display of the title for articles
+%% #1 enables
+FUNCTION {default.is.use.title} { #0 }
+
+%% The number of names that force "et al." to be used
+FUNCTION {default.etal.number} { #15 }
+
FUNCTION {add.comma}
{ ", " * }
FUNCTION {add.semicolon}
{ "; " * }
-
FUNCTION {add.comma.or.semicolon}
{ #1 separate.by.semicolon =
'add.semicolon
@@ -114,16 +109,6 @@ FUNCTION {output.check}
if$
}
-FUNCTION {output.bibitem}
-{ newline$
- "\bibitem{" write$
- cite$ write$
- "}" write$
- newline$
- ""
- before.all 'output.state :=
-}
-
FUNCTION {new.block}
{ output.state before.all =
'skip$
@@ -142,10 +127,39 @@ FUNCTION {new.sentence}
if$
}
+INTEGERS {would.add.period.textlen}
+
+FUNCTION {would.add.period}
+{ duplicate$
+ add.period$
+ text.length$
+ 'would.add.period.textlen :=
+ duplicate$
+ text.length$
+ would.add.period.textlen =
+ { #0 }
+ { #1 }
+ if$
+}
+
FUNCTION {fin.entry}
-{ add.period$
+{ would.add.period
+ { "\relax" * write$ newline$
+ "\mciteBstWouldAddEndPuncttrue" write$ newline$
+ "\mciteSetBstMidEndSepPunct{\mcitedefaultmidpunct}"
+ write$ newline$
+ "{\mcitedefaultendpunct}{\mcitedefaultseppunct}\relax"
+ }
+ { "\relax" * write$ newline$
+ "\mciteBstWouldAddEndPunctfalse" write$ newline$
+ "\mciteSetBstMidEndSepPunct{\mcitedefaultmidpunct}"
+ write$ newline$
+ "{}{\mcitedefaultseppunct}\relax"
+ }
+ if$
write$
newline$
+ "\EndOfBibitem" write$
}
FUNCTION {not}
@@ -324,6 +338,66 @@ FUNCTION {extract.num}
if$
}
+FUNCTION {chr.to.value}
+{ chr.to.int$ #48 -
+ duplicate$ duplicate$
+ #0 < swap$ #9 > or
+ { #48 + int.to.chr$
+ " is not a number..." *
+ warning$
+ pop$ #0
+ }
+ {}
+ if$
+}
+
+%% Some tricks from "Tame the BeaST" to convert a string
+%% to a number
+INTEGERS { a b }
+
+FUNCTION {mult}
+{ 'a :=
+ 'b :=
+ b #0 <
+ {#-1 #0 b - 'b :=}
+ {#1}
+ if$
+ #0
+ {b #0 >}
+ { a +
+ b #1 - 'b :=
+ }
+ while$
+ swap$
+ 'skip$
+ {#0 swap$ -}
+ if$
+}
+
+FUNCTION {str.to.int.aux}
+{ {duplicate$ empty$ not}
+ { swap$ #10 mult 'a :=
+ duplicate$ #1 #1 substring$
+ chr.to.value a +
+ swap$
+ #2 global.max$ substring$
+ }
+ while$
+ pop$
+}
+
+FUNCTION {str.to.int}
+{ duplicate$ #1 #1 substring$ "-" =
+ {#1 swap$ #2 global.max$ substring$}
+ {#0 swap$}
+ if$
+ #0 swap$ str.to.int.aux
+ swap$
+ {#0 swap$ -}
+ {}
+ if$
+}
+
FUNCTION {bibinfo.check}
{ swap$
duplicate$ missing$
@@ -389,7 +463,7 @@ FUNCTION {format.names}
#1 'nameptr :=
s num.names$ 'numnames :=
numnames 'namesleft :=
- numnames #15 >
+ numnames etal.number > etal.number #0 > and
{ s #1 "{vv~}{ll,}{~f.}{,~jj}" format.name$ 't :=
t bbl.etal space.connect
}
@@ -424,7 +498,7 @@ FUNCTION {format.authors}
{ author empty$
{ "" }
{ #1 'author.or.editor :=
- #1 'separate.by.semicolon :=
+ #1 'separate.by.semicolon :=
author format.names
}
if$
@@ -434,7 +508,7 @@ FUNCTION {format.editors}
{ editor empty$
{ "" }
{ #2 'author.or.editor :=
- #0 'separate.by.semicolon :=
+ #0 'separate.by.semicolon :=
editor format.names
add.comma
editor num.names$ #1 >
@@ -497,6 +571,16 @@ FUNCTION {format.title}
if$
}
+%% The add.title function only does anything if the appropriate
+%% flag is set.
+FUNCTION {add.title}
+{ is.use.title
+ { title format.title.noemph "title" output.check
+ new.sentence }
+ 'skip$
+ if$
+}
+
FUNCTION {format.number.series}
{ volume empty$
{ number empty$
@@ -519,6 +603,92 @@ FUNCTION {format.url}
if$
}
+FUNCTION {format.full.names}
+{'s :=
+ #1 'nameptr :=
+ s num.names$ 'numnames :=
+ numnames 'namesleft :=
+ { namesleft #0 > }
+ { s nameptr
+ "{vv~}{ll}" format.name$ 't :=
+ nameptr #1 >
+ {
+ namesleft #1 >
+ { ", " * t * }
+ {
+ numnames #2 >
+ { "," * }
+ 'skip$
+ if$
+ t "others" =
+ { bbl.etal * }
+ { bbl.and space.connect t space.connect }
+ if$
+ }
+ if$
+ }
+ 't
+ if$
+ nameptr #1 + 'nameptr :=
+ namesleft #1 - 'namesleft :=
+ }
+ while$
+}
+
+FUNCTION {author.editor.full}
+{ author empty$
+ { editor empty$
+ { "" }
+ { editor format.full.names }
+ if$
+ }
+ { author format.full.names }
+ if$
+}
+
+FUNCTION {author.full}
+{ author empty$
+ { "" }
+ { author format.full.names }
+ if$
+}
+
+FUNCTION {editor.full}
+{ editor empty$
+ { "" }
+ { editor format.full.names }
+ if$
+}
+
+FUNCTION {make.full.names}
+{ type$ "book" =
+ type$ "inbook" =
+ or
+ 'author.editor.full
+ { type$ "proceedings" =
+ 'editor.full
+ 'author.full
+ if$
+ }
+ if$
+}
+
+FUNCTION {output.bibitem}
+{ newline$
+ "\bibitem[" write$
+ label write$
+ ")" make.full.names duplicate$ short.list =
+ { pop$ }
+ { * }
+ if$
+ "]{" * write$
+ cite$ write$
+ "}" write$
+ newline$
+ ""
+ before.all 'output.state :=
+}
+
FUNCTION {n.dashify}
{ 't :=
""
@@ -551,6 +721,7 @@ FUNCTION {format.date}
if$
}
+
FUNCTION {format.bdate}
{ year empty$
{ "There's no year in " cite$ * warning$ }
@@ -754,6 +925,7 @@ FUNCTION {article}
{ output.bibitem
format.authors "author" output.check
after.item 'output.state :=
+ add.title
journal emphasize "journal" output.check
after.item 'output.state :=
format.date "year" output.check
@@ -996,19 +1168,6 @@ FUNCTION {proceedings}
fin.entry
}
-FUNCTION {remark}
-{ output.bibitem
- note "note" output.check
- fin.entry
-}
-
-FUNCTION {submitted}
-{ output.bibitem
- format.authors "author" output.check
- bbl.submitted output
- fin.entry
-}
-
FUNCTION {techreport}
{ output.bibitem
format.authors "author" output.check
@@ -1054,6 +1213,41 @@ FUNCTION {unpublished}
empty.doi.note
}
+%% Convert the strings "yes" or "no" to #1 or #0 respectively
+FUNCTION {yes.no.to.int}
+{ "l" change.case$ duplicate$
+ "yes" =
+ { pop$ #1 }
+ { duplicate$ "no" =
+ { pop$ #0 }
+ { "unknown Boolean " quote$ * swap$ * quote$ *
+ " in " * cite$ * warning$
+ #0
+ }
+ if$
+ }
+ if$
+}
+
+%% Using the same mechanism as in IEEEtrans, control of
+%% output can be achieved using a special entry type.
+FUNCTION {Control}
+{ ctrl-use-title
+ empty$
+ { skip$ }
+ { ctrl-use-title
+ yes.no.to.int
+ 'is.use.title := }
+ if$
+ ctrl-etal-number
+ empty$
+ { skip$ }
+ { ctrl-etal-number
+ str.to.int
+ 'etal.number := }
+ if$
+}
+
FUNCTION {conference} {inproceedings}
FUNCTION {other} {patent}
@@ -1073,115 +1267,228 @@ MACRO {oct} {"Oct."}
MACRO {nov} {"Nov."}
MACRO {dec} {"Dec."}
-MACRO {acchemr} {"Acc.\ Chem.\ Res."}
-MACRO {aacsa} {"Adv.\ {ACS} Abstr."}
-MACRO {anchem} {"Anal.\ Chem."}
-MACRO {bioch} {"Biochemistry"}
-MACRO {bicoc} {"Bioconj.\ Chem."} % ***
-MACRO {bitech} {"Biotechnol.\ Progr."} % ***
-MACRO {chemeng} {"Chem.\ Eng.\ News"}
-MACRO {chs} {"Chem.\ Health Safety"} % ***
-MACRO {crt} {"Chem.\ Res.\ Toxicol."} % ***
-MACRO {chemrev} {"Chem.\ Rev."} % ***
-MACRO {cmat} {"Chem.\ Mater."} % ***
-MACRO {chemtech} {"{CHEMTECH}"} % ***
-MACRO {enfu} {"Energy Fuels"} % ***
-MACRO {envst} {"Environ.\ Sci.\ Technol."}
-MACRO {iecf} {"Ind.\ Eng.\ Chem.\ Fundam."}
-MACRO {iecpdd} {"Ind.\ Eng.\ Chem.\ Proc.\ Des.\ Dev."}
-MACRO {iecprd} {"Ind.\ Eng.\ Chem.\ Prod.\ Res.\ Dev."}
-MACRO {iecr} {"Ind.\ Eng.\ Chem.\ Res."} % ***
-MACRO {inor} {"Inorg.\ Chem."}
-MACRO {jafc} {"J.~Agric.\ Food Chem."}
-MACRO {jacs} {"J.~Am.\ Chem.\ Soc."}
-MACRO {jced} {"J.~Chem.\ Eng.\ Data"}
-MACRO {jcics} {"J.~Chem.\ Inf.\ Comput.\ Sci."}
-MACRO {jmc} {"J.~Med.\ Chem."}
-MACRO {joc} {"J.~Org.\ Chem."}
-MACRO {jps} {"J.~Pharm.\ Sci."}
-MACRO {jpcrd} {"J.~Phys.\ Chem.\ Ref.\ Data"} % ***
-MACRO {jpc} {"J.~Phys.\ Chem."}
-MACRO {jpca} {"J.~Phys.\ Chem.~A"}
-MACRO {jpcb} {"J.~Phys.\ Chem.~B"}
-MACRO {lang} {"Langmuir"}
-MACRO {macro} {"Macromolecules"}
-MACRO {orgmet} {"Organometallics"}
-MACRO {orglett} {"Org.\ Lett."}
-
-MACRO {jft} {"J.~Chem.\ Soc., Faraday Trans."}
-MACRO {jft1} {"J.~Chem.\ Soc., Faraday Trans.\ 1"}
-MACRO {jft2} {"J.~Chem.\ Soc., Faraday Trans.\ 2"}
-MACRO {tfs} {"Trans.\ Faraday Soc."}
-MACRO {jcis} {"J.~Colloid Interface Sci."}
-MACRO {acis} {"Adv.~Colloid Interface Sci."}
-MACRO {cs} {"Colloids Surf."}
-MACRO {csa} {"Colloids Surf.\ A"}
-MACRO {csb} {"Colloids Surf.\ B"}
-MACRO {pcps} {"Progr.\ Colloid Polym.\ Sci."}
-MACRO {jmr} {"J.~Magn.\ Reson."}
-MACRO {jmra} {"J.~Magn.\ Reson.\ A"}
-MACRO {jmrb} {"J.~Magn.\ Reson.\ B"}
-MACRO {sci} {"Science"}
-MACRO {nat} {"Nature"}
-MACRO {jcch} {"J.~Comput.\ Chem."}
-MACRO {cca} {"Croat.\ Chem.\ Acta"}
-MACRO {angew} {"Angew.\ Chem., Int.\ Ed."}
-MACRO {chemeurj} {"Chem.---Eur.\ J."}
-
-MACRO {poly} {"Polymer"}
-MACRO {ajp} {"Am.\ J.\ Phys."}
-MACRO {rsi} {"Rev.\ Sci.\ Instrum."}
-MACRO {jcp} {"J.~Chem.\ Phys."}
-MACRO {cpl} {"Chem.\ Phys.\ Lett."}
-MACRO {molph} {"Mol.\ Phys."}
-MACRO {pac} {"Pure Appl.\ Chem."}
-MACRO {jbc} {"J.~Biol.\ Chem."}
-MACRO {tl} {"Tetrahedron Lett."}
-MACRO {psisoe} {"Proc.\ SPIE-Int.\ Soc.\ Opt.\ Eng."}
-MACRO {prb} {"Phys.\ Rev.\ B:\ Condens.\ Matter Mater. Phys."}
-MACRO {jap} {"J.~Appl.\ Phys."}
-MACRO {pnac} {"Proc.\ Natl.\ Acad.\ Sci.\ U.S.A."}
-MACRO {bba} {"Biochim.\ Biophys.\ Acta"}
-MACRO {nar} {"Nucleic.\ Acid Res."}
+%% The ACS journals by CODEN
+MACRO {achre4} {"Acc.\ Chem.\ Res."}
+MACRO {acbcct} {"ACS Chem.\ Biol."}
+MACRO {ancac3} {"ACS Nano"}
+MACRO {ancham} {"Anal.\ Chem."}
+MACRO {bichaw} {"Biochemistry"}
+MACRO {bcches} {"Bioconjugate Chem."}
+MACRO {bomaf6} {"Biomacromolecules"}
+MACRO {bipret} {"Biotechnol.\ Prog."}
+MACRO {crtoec} {"Chem.\ Res.\ Toxicol."}
+MACRO {chreay} {"Chem.\ Rev."}
+MACRO {cmatex} {"Chem.\ Mater."}
+MACRO {cgdefu} {"Cryst.\ Growth Des."}
+MACRO {enfuem} {"Energy Fuels"}
+MACRO {esthag} {"Environ.\ Sci.\ Technol."}
+MACRO {iechad} {"Ind.\ Eng.\ Chem.\ Res."}
+MACRO {inoraj} {"Inorg.\ Chem."}
+MACRO {jafcau} {"J.~Agric.\ Food Chem."}
+MACRO {jceaax} {"J.~Chem.\ Eng.\ Data"}
+MACRO {jcisd8} {"J.~Chem.\ Inf.\ Model."}
+MACRO {jctcce} {"J.~Chem.\ Theory Comput."}
+MACRO {jcchff} {"J. Comb. Chem."}
+MACRO {jmcmar} {"J. Med. Chem."}
+MACRO {jnprdf} {"J. Nat. Prod."}
+MACRO {joceah} {"J.~Org.\ Chem."}
+MACRO {jpcafh} {"J.~Phys.\ Chem.~A"}
+MACRO {jpcbfk} {"J.~Phys.\ Chem.~B"}
+MACRO {jpccck} {"J.~Phys.\ Chem.~C"}
+MACRO {jprobs} {"J.~Proteome Res."}
+MACRO {jacsat} {"J.~Am.\ Chem.\ Soc."}
+MACRO {langd5} {"Langmuir"}
+MACRO {mamobx} {"Macromolecules"}
+MACRO {mpohbp} {"Mol.\ Pharm."}
+MACRO {nalefd} {"Nano Lett."}
+MACRO {orlef7} {"Org.\ Lett."}
+MACRO {oprdfk} {"Org.\ Proc.\ Res.\ Dev."}
+MACRO {orgnd7} {"Organometallics"}
READ
-STRINGS { longest.label }
+FUNCTION {initialize.controls}
+{ default.is.use.title 'is.use.title :=
+ default.etal.number 'etal.number :=
+}
+
+EXECUTE {initialize.controls}
+
+INTEGERS { len }
+
+FUNCTION {chop.word}
+{ 's :=
+ 'len :=
+ s #1 len substring$ =
+ { s len #1 + global.max$ substring$ }
+ 's
+ if$
+}
+
+FUNCTION {format.lab.names}
+{ 's :=
+ s #1 "{vv~}{ll}" format.name$
+ s num.names$ duplicate$
+ #2 >
+ { pop$ bbl.etal space.connect }
+ { #2 <
+ 'skip$
+ { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
+ { bbl.etal space.connect }
+ { bbl.and space.connect s #2 "{vv~}{ll}" format.name$ space.connect }
+ if$
+ }
+ if$
+ }
+ if$
+}
+
+FUNCTION {author.key.label}
+{ author empty$
+ { key empty$
+ { cite$ #1 #3 substring$ }
+ 'key
+ if$
+ }
+ { author format.lab.names }
+ if$
+}
+
+FUNCTION {author.editor.key.label}
+{ author empty$
+ { editor empty$
+ { key empty$
+ { cite$ #1 #3 substring$ }
+ 'key
+ if$
+ }
+ { editor format.lab.names }
+ if$
+ }
+ { author format.lab.names }
+ if$
+}
+
+FUNCTION {author.key.organization.label}
+{ author empty$
+ { key empty$
+ { organization empty$
+ { cite$ #1 #3 substring$ }
+ { "The " #4 organization chop.word #3 text.prefix$ }
+ if$
+ }
+ 'key
+ if$
+ }
+ { author format.lab.names }
+ if$
+}
-INTEGERS { number.label longest.label.width }
+FUNCTION {editor.key.organization.label}
+{ editor empty$
+ { key empty$
+ { organization empty$
+ { cite$ #1 #3 substring$ }
+ { "The " #4 organization chop.word #3 text.prefix$ }
+ if$
+ }
+ 'key
+ if$
+ }
+ { editor format.lab.names }
+ if$
+}
+
+FUNCTION {calc.short.authors}
+{ type$ "book" =
+ type$ "inbook" =
+ or
+ 'author.editor.key.label
+ { type$ "proceedings" =
+ 'editor.key.organization.label
+ { type$ "manual" =
+ 'author.key.organization.label
+ 'author.key.label
+ if$
+ }
+ if$
+ }
+ if$
+ 'short.list :=
+}
+
+FUNCTION {calc.label}
+{ calc.short.authors
+ short.list
+ "("
+ *
+ year duplicate$ empty$
+ short.list key field.or.null = or
+ { pop$ "" }
+ 'skip$
+ if$
+ *
+ 'label :=
+}
+
+ITERATE {calc.label}
+
+STRINGS { longest.label last.label next.extra }
+
+INTEGERS { longest.label.width last.extra.num number.label }
FUNCTION {initialize.longest.label}
{ "" 'longest.label :=
- #1 'number.label :=
+ #0 int.to.chr$ 'last.label :=
+ "" 'next.extra :=
#0 'longest.label.width :=
+ #0 'last.extra.num :=
+ #0 'number.label :=
}
-FUNCTION {longest.label.pass}
-{ number.label int.to.str$ 'label :=
- number.label #1 + 'number.label :=
- label width$ longest.label.width >
- { label 'longest.label :=
- label width$ 'longest.label.width :=
+FUNCTION {forward.pass}
+{ last.label label =
+ { last.extra.num #1 + 'last.extra.num :=
+ last.extra.num int.to.chr$ 'extra.label :=
+ }
+ { "a" chr.to.int$ 'last.extra.num :=
+ "" 'extra.label :=
+ label 'last.label :=
}
- 'skip$
if$
+ number.label #1 + 'number.label :=
}
EXECUTE {initialize.longest.label}
-ITERATE {longest.label.pass}
-
+ITERATE {forward.pass}
FUNCTION {begin.bib}
{ preamble$ empty$
'skip$
{ preamble$ write$ newline$ }
if$
- "\providecommand{\url}[1]{\texttt{#1}}"
+ "\ifx\mcitethebibliography\mciteundefinedmacro"
+ write$ newline$
+ "\PackageError"
+ write$
+ "{achemso.bst}"
+ write$
+ "{mciteplus.sty has not been loaded}"
+ write$ newline$
+ "{This bibstyle requires the use of the mciteplus package.}\fi"
+ write$ newline$
+ "\begin{mcitethebibliography}{" number.label int.to.str$ * "}" *
+ write$ newline$
+ "\providecommand*{\natexlab}[1]{#1}"
+ write$ newline$
+ "\mciteSetBstSublistMode{f}"
+ write$ newline$
+ "\mciteSetBstMaxWidthForm{subitem}{(\alph{mcitesubitemcount})}"
write$ newline$
- "\providecommand{\refin}[1]{\\ \textbf{Referenced in:} #1}"
+ "\mciteSetBstSublistLabelBeginEnd{\mcitemaxwidthsubitemform\space}"
write$ newline$
- "\begin{thebibliography}{" longest.label * "}" *
+ "{\relax}{\relax}"
write$ newline$
}
@@ -1193,10 +1500,7 @@ ITERATE {call.type$}
FUNCTION {end.bib}
{ newline$
- "\end{thebibliography}" write$ newline$
+ "\end{mcitethebibliography}" write$ newline$
}
EXECUTE {end.bib}
-%%
-%%
-%% End of file `achemso.bst'.