A template for supplementary material of the manuscripts in IEEE format (IEEEtran.cls) is not wrapped up for the IEEEtran. For my latest manuscript (which is still under review), I needed to put some graphs in the supplementary, so I could gather these hacks from the web. I gathered all these HACKS couple of months ago, from different blogs, and sites for supplementary files of other journals. I could not find those blogs, so sorry for not providing reference.
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
|
And for the equations, we need the following
1
2
3
| % Hack for making SOM Equations Conform to Science Format
% e.g. (S1), (S2), etc
\renewcommand{\theequation}{S\arabic{equation}}
|
A drawback of this method is that \eqref is not working, but \ref command still works pretty good. :)
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: