I'm writing a full paper for JACS using the achemso package. I am asked to an "S" in front of the number (eg. Figure S1 or Scheme S2 etc.) in all graphics (figures, schemes etc.) in the supporting information. How could I do it?
[Tex/LaTex] How to change the Figure style in achemso
achemso
Related Solutions
You want
\AtBeginDocument
{%
\renewcommand*{\citenumfont}[1]{#1}%
\renewcommand*{\bibnumfmt}[1]{(#1)}%
}
(achemso
sets up the 'S' using the same method, but provided you do this after loading the class all will be well.)
The achemso
bundle comes with a package of the same name which is designed to pass on the control information automatically to the bibliography style. This would usually be used in a form such as
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@manual{Fox2009,
address = {Wallingford, CT},
author = {M. J. Frisch and G. W. Trucks and H. B. Schlegel and
G. E. Scuseria and M. A. Robb and J. R. Cheeseman and G. Scalmani and
V. Barone and B. Mennucci and G. A. Petersson and H. Nakatsuji and
M. Caricato and X. Li and H. P. Hratchian and A. F. Izmaylov and
J. Bloino and G. Zheng and J. L. Sonnenberg and M. Hada and M. Ehara and
K. Toyota and R. Fukuda and J. Hasegawa and M. Ishida and T. Nakajima and
Y. Honda and O. Kitao and H. Nakai and T. Vreven and Montgomery, {Jr.},
J. A. and J. E. Peralta and F. Ogliaro and M. Bearpark and J. J. Heyd and
E. Brothers and K. N. Kudin and V. N. Staroverov and R. Kobayashi and
J. Normand and K. Raghavachari and A. Rendell and J. C. Burant and
S. S. Iyengar and J. Tomasi and M. Cossi and N. Rega and J. M. Millam and
M. Klene and J. E. Knox and J. B. Cross and V. Bakken and C. Adamo and
J. Jaramillo and R. Gomperts and R. E. Stratmann and O. Yazyev and
A. J. Austin and R. Cammi and C. Pomelli and J. W. Ochterski and
R. L. Martin and K. Morokuma and V. G. Zakrzewski and G. A. Voth and
P. Salvador and J. J. Dannenberg and S. Dapprich and A. D. Daniels and
Ö. Farkas and J. B. Foresman and J. V. Ortiz and J. Cioslowski and
D. J. Fox},
organization = {Gaussian, Inc.},
title = {Gaussian~09 {R}evision {C}.01},
year = {2009}
}
\end{filecontents*}
\documentclass{article}
\usepackage{achemso}
\setkeys{acs}{maxauthors = 0}
\begin{document}
Some text.\cite{Fox2009}
\bibliography{\jobname}
\end{document}
where the special value 0
is used for the maxauthors
key to indicate that no truncation should take place at all. (Note that the filecontents
package is used here just so that I can bundle up a demo into a single code snippet.)
If you wish to control the output entirely by hand then you need to create a dedicated control bibliography entry and 'cite' it correctly. A suitable construct in this case would be
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@manual{Fox2009,
address = {Wallingford, CT},
author = {M. J. Frisch and G. W. Trucks and H. B. Schlegel and
G. E. Scuseria and M. A. Robb and J. R. Cheeseman and G. Scalmani and
V. Barone and B. Mennucci and G. A. Petersson and H. Nakatsuji and
M. Caricato and X. Li and H. P. Hratchian and A. F. Izmaylov and
J. Bloino and G. Zheng and J. L. Sonnenberg and M. Hada and M. Ehara and
K. Toyota and R. Fukuda and J. Hasegawa and M. Ishida and T. Nakajima and
Y. Honda and O. Kitao and H. Nakai and T. Vreven and Montgomery, {Jr.},
J. A. and J. E. Peralta and F. Ogliaro and M. Bearpark and J. J. Heyd and
E. Brothers and K. N. Kudin and V. N. Staroverov and R. Kobayashi and
J. Normand and K. Raghavachari and A. Rendell and J. C. Burant and
S. S. Iyengar and J. Tomasi and M. Cossi and N. Rega and J. M. Millam and
M. Klene and J. E. Knox and J. B. Cross and V. Bakken and C. Adamo and
J. Jaramillo and R. Gomperts and R. E. Stratmann and O. Yazyev and
A. J. Austin and R. Cammi and C. Pomelli and J. W. Ochterski and
R. L. Martin and K. Morokuma and V. G. Zakrzewski and G. A. Voth and
P. Salvador and J. J. Dannenberg and S. Dapprich and A. D. Daniels and
Ö. Farkas and J. B. Foresman and J. V. Ortiz and J. Cioslowski and
D. J. Fox},
organization = {Gaussian, Inc.},
title = {Gaussian~09 {R}evision {C}.01},
year = {2009}
}
\end{filecontents*}
\documentclass{article}
\usepackage[super,sort&compress,comma]{natbib}
\AtBeginDocument{%
\nocite{achemso-control}%
}
% Special control 'bibliography' file
\begin{filecontents*}{\jobname-auto.bib}
@Control{achemso-control,
ctrl-etal-number = 0
}
\end{filecontents*}
\begin{document}
Some text.\cite{Fox2009}
\bibliography{\jobname-auto,\jobname}
\bibliographystyle{achemso}
\end{document}
where again I've bundled everything up into one file.
Note that you should not edit files in your TeX tree directly: this is a recipe for incompatibility. If you do want to edit, copy to another location, rename the file and then edit.
Best Answer
Since
achemso
uses thecaption
package, you can use\DeclareCaptionLabelFormat
to achieve the necessary formatting:The solution above only changes the string used in the caption label, but cross-references will be still only numeric (without the "S"). If the string used in cross-references must also have the "S" character, then, instead of defining a new caption label format, it's better to redefine
\thefigure
:A similar redefinition might be also necessary for other float types.