18 May 2015

A template for supplementary material in IEEEtran format

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:

12 May 2015

About the title: E cross H*

As you might guess  \(\mathbf{E}\) and \(\mathbf{H}\) are electric and magnetic field densities. Therefore, \( \mathbf{E}\times\mathbf{H}^*\) refers to the Poynting vector \(\mathbf{s}\), which shows the direction of the flow of the electromagnetic energy.


01 May 2015

First post

Well, first post is always the most difficult one. 

I just decided to create this blog, because of a number of reasons. Maybe, the most important one is that not many blogs are around about my research. So, here I am. I try to write a post every few weeks (try to keep few down to one).

I'm a PhD candidate at Griffith University. I am at the final stage to write up my thesis. I focus on antennas, electromagnetic waves, ...