6

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?

Anthon
  • 314
  • 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}

    \usepackage[version=3]{mhchem} % Formula subscripts using \ce{}
    \usepackage{color}
    \usepackage{graphicx}
    \usepackage{caption}
    \usepackage{subcaption}
    \usepackage{multirow}
    \usepackage{pdfpages}


    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
  • 1
    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

1 Answers1

9

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}

enter image description here

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.

Gonzalo Medina
  • 505,128