# How to change the Figure style in achemso

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?

• Can you please add to your question a simple document showing us the document class used and the relevant packages loaded? What do you mean by "in the supporting information"? Is that some special kind of section in your document? – Gonzalo Medina May 14 '13 at 13:21
• \documentclass[journal=jacsat,manuscript=article]{achemso} <br/> \usepackage[version=3]{mhchem} % Formula subscripts using \ce{} <br/> \usepackage{color} <br/> \usepackage{graphicx} <br/> \usepackage{caption} <br/> \usepackage{subcaption} <br/> \usepackage{multirow} <br/> \usepackage{pdfpages} <br/> --- This is what I used. Thank you for your comment. :) – Rong Shang May 14 '13 at 13:31
• @GonzaloMedina. Sorry this is the first time I post here. The formatting is a mess. :( – Rong Shang May 14 '13 at 13:40
• Yes, code in comments can't be properly formatted. It's better to edit your question and to add there the code. Please see my answer below for a solution, and let me know if this is what you need. Welcome to TeX.SX, by the way! – Gonzalo Medina May 14 '13 at 13:42

Since achemso uses the caption package, you can use \DeclareCaptionLabelFormat to achieve the necessary formatting:

\documentclass[journal=jacsat,manuscript=article]{achemso}

\DeclareCaptionLabelFormat{myformat}{#1~S#2}
\captionsetup{labelformat=myformat}

\title{The Title}

\begin{document}

\section{Test Section}

\begin{figure}
\centering
A
\caption{test figure}
\end{figure}

\end{document}


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:

\renewcommand\thefigure{S\arabic{figure}}


A similar redefinition might be also necessary for other float types.

• Thank you sooo much, @GonzaloMedina! It works like a magic. :) – Rong Shang May 14 '13 at 14:35
• @RongShang You're welcome! Don't forget to accept the answer (by clicking in the checkmark to its left), if you consider it solved your problem. In case of doubt, please see How do you accept an answer?. – Gonzalo Medina May 14 '13 at 15:49
• @RongShang I added a final remark to my answer which might be useful for you. – Gonzalo Medina May 14 '13 at 22:56