I liked to change the section, figure, table, equation, citation numbering to include an additional S. The following should be inserted into preamble.
1 2 3 | % Hack For section headers starting with S \renewcommand{\thesection}{S.\Roman{section}} \renewcommand{\thesubsection}{\thesection.\Alph{subsection}} |
To change the format of citations in the bibliography and the main text, a combination of natbib and IEEEtranN is needed
1 2 3 4 5 6 | % Hack for citation command % use bibnumfmt to change style at the end of the document \usepackage[numbers]{natbib} \renewcommand{\bibnumfmt}[1]{[S#1]} % citenumfont command adds S to all numbers \renewcommand{\citenumfont}[1]{\textit{S#1}} |
Numbering of the figures and table are done with
1 2 3 4 5 6 7 8 9 10 11 | % Hack for making figures Say \figurename S\thefigure, e.g. Figure S1: \makeatletter \makeatletter \renewcommand{\fnum@figure} {\figurename~S\thefigure} \makeatother % Hack for making figures Say \figurename S\thefigure, e.g. Figure S1: \makeatletter \makeatletter \renewcommand{\fnum@table} {\tablename~S\thetable} \makeatother |
1 2 3 | % Hack for making SOM Equations Conform to Science Format % e.g. (S1), (S2), etc \renewcommand{\theequation}{S\arabic{equation}} |
I also find it handy to cross-reference labels between main and supplementary document. In the supplementary, we need to reference to the aux file of the main file, like:
1 2 | \usepackage{xr} \externaldocument{Main}% Main.tex is the main file of the manuscript. |
A sample output is shown below: