\documentclass[twocolumn,twoside]{article}
\usepackage{amsmath,amsfonts,amssymb,mathrsfs,bm}
\usepackage{graphicx}
\usepackage{graphicx,subfigure}
\usepackage{cite}
\usepackage[font=small]{caption}
\usepackage{mfirstuc,times}
\usepackage{stfloats}
\usepackage{array}
\usepackage{arydshln}
\usepackage{multirow}
\usepackage{enumitem}
\usepackage
[left=2cm,right=1.4cm,top=2.cm,bottom=2.cm,twoside]{geometry}
\usepackage{fancyhdr}
\usepackage{ifthen}
\usepackage{titlecaps,sectsty,abstract}
\usepackage{titlesec}
\usepackage{lastpage}
\usepackage{wrapfig}
\usepackage{flushend}

%%%%%%%%%%%%%%%%%
%         section font setting             %
%%%%%%%%%%%%%%%%%
\sectionfont{\normalfont\centering\scshape\fontsize{10}{12}\selectfont}
%\sectionfont{\fontsize{11}{13.2}\selectfont}
%\sectionfont{\fontsize{12}{14.4}\selectfont}
\subsectionfont{\normalfont\it\fontsize{9}{10.8}\selectfont}
\renewcommand{\abstractname}{}
\titlespacing{\section}{0pt}{10pt}{5pt}
\titlespacing{\subsection}{5pt}{10pt}{0pt}
\setlength{\headheight}{22pt}
\setlength{\parindent}{0cm}
\renewcommand\thesection{\Roman{section}}
\renewcommand\thesubsection{\Alph{subsection}}
\setlist{nolistsep}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
%%%%%%%%%%%%%%%%%%%%%
%%          Defined general items              %%
%%%%%%%%%%%%%%%%%%%%%
\graphicspath{{images/}}
\newcommand{\psiB}{\mbox{\boldmath $\psi$}}
\newcommand{\PsiB}{\mbox{\boldmath $\Psi$}}
\newcommand{\GammaB }{\mbox{\boldmath $ \Gamma $}}
\newcommand{\LambdaB }{\mbox{\boldmath $ \Lambda$}}
\newcommand{\sigmaB }{\mbox{\boldmath $ \hat{\sigma}$}}
\newcommand{\etal}{\textit{et al.}}
\DeclareTextCommandDefault{\textcopyright}{\textcircled{c}}
\newcommand{\dotline}{\hdashline[.5pt/1.5pt]}
%%%%%%%%%%%%%%%%%%%%
%                  Paper Defination             %
%%%%%%%%%%%%%%%%%%%%



%%%%%%%%%%%%%%%%%%%%
%                  Insert  short Title             %
%%%%%%%%%%%%%%%%%%%%
\newcommand{\sht}{\footnotesize\uppercase{{
\LaTeX ~template for JePECS % Insert here generally
}}}

%%%%%%%%%%%%%%%%%%%%
%                  Set First Author                   %
%%%%%%%%%%%%%%%%%%%%
\newcommand{\faut}{\uppercase{\footnotesize{
jalal nazarzadeh   % insert first author name
}}}

%%%%%%%%%%%%%%%%%%%%
%                Set First page number            %
%%%%%%%%%%%%%%%%%%%%
\newcommand{\fpg}{46}
\newcommand{\lpg}{\pageref{LastPage}}
\setcounter{page}{\fpg}

%%%%%%%%%%%%%%%%%%%%
%          Issue  number and session           %
%%%%%%%%%%%%%%%%%%%%
\newcommand{\nov}{1}
\newcommand{\noi}{1}
\newcommand{\nos}{\uppercase{\footnotesize{
 autumn~2013 % spring, summer, autumn or winter 
}}}

%%%%%%%%%%%%%%%%%%%%  
\begin{document}
\title{{\Huge{\textbf{
%\LaTeX~
Template for Journal of Electric Power and Energy Conversion Systems (JEPECS)
}}}}
\author{\small{Jalal Nazarzadeh
\thanks{Associate Professor in Engineering Faculty, Shahed University, P.O. Box: 15188-159, Tehran, Iran, E-mail: nazarzadeh@shahed.ac.ir, (Corresponding Author).}. 
%Author2
%\thanks{Affilation of Author2}~
% and Author3
%\thanks{Affilation of Author3.}~
}}
\date{\vspace{-1cm}
\begin{abstract}
An abstract is a brief summary of a research article and is often used to help the reader quickly ascertain the paper's purpose. An abstract always appears at the beginning of a manuscript or typescript, acting as the point-of-entry for any given academic paper. The length of an abstract is limited to 300 words.
~\\
~\\
~\\
\textbf{\scriptsize{Keywords}}:{\small{\capitalisewords{
\TeX~ template ( maximum 5 keywords).
}}}
~\\
\vspace{.15cm}
\textit{\capitalisewords
{Received xxxx 2013; Revised xxxx 2013; Accepted xxxx 2013.}
}
\end{abstract}}
\maketitle
%%%%%%%%%%%%%%%%%%%%
%                     Header                           %
%%%%%%%%%%%%%%%%%%%%
\thispagestyle{fancy}
\pagestyle{fancy}

\fancyhead[LO]{
\ifthenelse{\value{page}=\fpg}
{\begin{minipage}{2.2cm}
\includegraphics[scale=.08]{Logo_JEPECS_Low_Resolution.jpg}
\end{minipage}}
{\thepage}}

\fancyhead[RO]{\ifthenelse{\value{page}=\fpg}
{\begin{minipage}{10.5cm}
\begin{flushleft}
\footnotesize{\uppercase{Journal of Electric  Power and Energy Conversion Systems (JEPECS)}}\\
\footnotesize{\textit{\hfill JEPECS~VOL.~\nov,~NO.~\noi,~PP.~\fpg-\lpg,~\nos}}\\
\hfill ISSN:~2345-4830~print/2345-4733~online\\
\end{flushleft}
\end{minipage}}
{\faut~\etal~\sht}}

\fancyhead[LE]{\ifthenelse{\value{page}=\fpg}
{\begin{minipage}{2.2cm}
\includegraphics[scale=.08]{Logo_JEPECS_Low_Resolution.jpg}
\end{minipage}}
{{\footnotesize{JEPECS~VOL.~\nov,~NO.~\noi,~PP.~\fpg-\lpg,~\nos}}}}

\fancyhead[RE]{\ifthenelse{\value{page}=\fpg}
{\begin{minipage}{10.5cm}
\begin{flushleft}
\footnotesize{\uppercase{Journal of Electric  Power and Energy Conversion Systems (JEPECS)}}\\
\footnotesize{\textit{\hfill JEPECS~VOL.~\nov,~NO.~\noi,~PP.~\fpg-\lpg,~\nos}}\\
\hfill ISSN:~2345-4830~print/2345-4733~online\\
\end{flushleft}
\end{minipage}}
{\thepage}}
%%%%%%%%%%%%%%%%%%%%
%                         Footer                         %
%%%%%%%%%%%%%%%%%%%%  
\lfoot{\ifthenelse{\value{page}=\fpg}
{\vspace{-.5cm}\small{\textcopyright~2013
Faculty Engineering, Shahed University, P.O.Box:~18151-159, Tehran, Iran.\\ Published by Shahed University Publishing Center.}}
{}}

\fancyfoot[C]{}

\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Introduction}
The introduction should provide the reader all the background information needed to understand the paper. The author should explain key terms, give historical information on the problem studied and cite other studies that have obtained relevant results.
\section{ New Submission}
At the first submission of a new manuscript, all figures and tables have to embed into paper in two column format. The source file of the manuscript in word 2003 or \LaTeX in article class and source files of figures should be submitted to journal web site for reviewing.      
\section{Mathematics Table and Figure Templates}
Some example for subsection text insert here.
\subsection{Mathematics Relations}
Relation (\ref{eq_1}) is a simple mathematics equation.
\begin{eqnarray}
\label{eq_1}
v(t) = {V_p}\left [1 + \sum\nolimits_m {\sin (2\pi {f_m}t}  + {\varphi _m})\right] \cos (2\pi {f_b}t)
\end{eqnarray}
vector examples are shown in (\ref{eq_2}) as:
\begin{equation}
\label{eq_2}
\begin{array}{c}
\dot{\bm{x}}= {\left[ {\begin{array}{*{20}{c}}
   {x_1} & {x_2} & {\cdots} & {x_n}  \\
\end{array}} \right]^T} \\ 
 {\PsiB _0} = {\left[ {\begin{array}{*{20}{c}}
   {{\psi _{ds0}}} & {{\psi _{qs0}}} & {{\psi _{dr0}}} & {{\psi _{dr0}}}  \\
\end{array}} \right]^T} \\ 
{\Delta \bm{v}}=\left[  {\begin{array}{*{20}{c}} \Delta {v_{ds}}&\Delta {v_{qs}}&\Delta {v_{dr}}&\Delta {v_{qr}}\end{array}}\right]^T\\
 \end{array}
\end{equation}
Finally, matrix equation should be presented as (\ref{eq_3}):
\begin{equation}
\label{eq_3}
 \bm{G}\left({p} \right)\!\! =\!\! \left[\!\!\! {\begin{array}{*{20}{c}}
   {{g_r}(p)} & { - 1} & {\dfrac{{ - {R_s}{L_m}}}{D}} & 0  \\
   1 & {{g_r}(p)} & 0 & {\dfrac{{ - {R_s}{L_m}}}{D}}  \\
   {\dfrac{{ - {R_r}{L_m}}}{D}} & 0 & {{g_s}(p)} & { - {s_0}}  \\
\end{array}}\!\!\! \right]  
\end{equation}
These examples show that the vector variables are introduced as bold italic fonts and matrix variables are given by bold capital italic fonts. Other variables are considered as italic fonts. 
\subsection{Table Template}
Sample of a table is shown in Table \ref{tab1}. The width of table should not be over width of document column. A dotted line is used for operating rows in table.
\begin{table}[!ht]
\caption{Specification of Boost Converter.}
\label{tab1}
\centering 
\vspace{-.3cm}
\begin{tabular}{lcc}
\hline\hline 
{Description}&{Parameter}& {Value} \\
\hline \hline
Rated voltage &$v_n$ & $400~volts$\\
Rated power&$P_n$ & $630~kw$ \\
Rated current & $I_n$ & $1400~A$ \\
Rated speed &$\omega_n$  &$1492~rpm$  \\
\dotline
\multirow{2}{*}{Stator impedance} & {{$R_s$}} & {$0.000{\rm{647}}~\Omega$}  \\
 & $X_{ls}$ & {$0.0{\rm{3}}0{\rm{3}}~\Omega$ }  \\
\hline %inserts single line
\end{tabular}
\end{table}
\subsection{Figure Template and Format}
Sample of figures are illustrated at Fig. \ref{SimCurthree}. Also, Fig. \ref{SimCurthree} or Fig. \ref{SimCurthree}-a are referred to figures in a paragraph. The figures format could be prepared with common format, however we prefer Encapsulate Post Script (.EPS) or .JPG with minimum resolution 600 format.
\begin{figure}[!ht]
\centering
\subfigure[Simulated result]{\includegraphics[width=\columnwidth]{fig9a}}
\subfigure[Experimental result]{\includegraphics[width=\columnwidth]{fig9b.jpg}}
\caption{Current and voltage responses of induction motor for $ k_p=12 $ and $ \omega=300 rad/sec$.}
\label{SimCurthree}
\end{figure}
\section{Itemized Paragraph}
The format of an itemized paragraph is illustrated as the following example. 
\begin{itemize}
\item the first item.
\item the second item.
\item the third item.
\end{itemize}
\section{Reference and Citation}
Citations and bibliography should be inserted as IEEE format \cite{1,2,3,4,5,6,7,8,9,10,11}. Some examples are illustrated in the reference section. \cite{1}, \cite{1,3}, \cite{1,2,3,4} and \cite{1,2,3,5,6,7,9} are some examples for citing references in a paragraph of the manuscript. \\
\section{Conclusions}
Conclusions are inserted here.\\

\setcounter{equation}{0}
\setcounter{figure}{0}
\setcounter{table}{0}
\renewcommand{\theequation}{A-\arabic{equation}}
\renewcommand{\thefigure}{A-\arabic{figure}}
\renewcommand{\thetable}{A-\arabic{table}}
\section{Appendix}
If there is an appendix in the manuscript, it will be here. Also, if the author needs to prepare symbols of variables which are used in the manuscript, they should be included in a nomenclature table as shown in Table \ref{tab2} in this section.
\begin{table}[!ht]
\caption{List of Main Symbols.}
\label{tab2}
\centering 
\vspace{-.3cm}
\begin{tabular}{C{.15 \columnwidth}C{.7 \columnwidth}}
\hline\hline 
{Symbol}&{Quantity} \\
\hline \hline
$f_b$&Fundamental frequency \\
$V_b$&Line to neutral peak voltage\\
$v_d,v_q$&  $dq$ axes voltages   \\
$i_d,i_q$&  $qd$ axes currents  \\
$\psi_d,\psi_q$& $dq$ axes flux linkages    \\
$R_s$&  Stator resistance  \\
$L_{ls}$& Stator leakage inductance   \\
$R_r$&  Rotor resistance   \\
\hline %inserts single line
\end{tabular}
\label{table:nonlin} % is used to refer this table in the text
\end{table} 

\begin{thebibliography}{99}
\footnotesize
\addtolength\itemsep{-5pt}

\item[]\hspace{-\labelwidth}\hspace{-\labelsep}\textit{Basic Format for Journal Paper:}

\bibitem{1}J. K. Author,
\emph{``Name of paper,"} Abbrev. Title of Periodical, vol. xx, no. xx, pp. xxx-xxx, Abbrev. Month, year.

\item[]\hspace{-\labelwidth}\hspace{-\labelsep}\textit{Examples:}

\bibitem{2}R. E. Kalman,
\emph{``New results in linear filtering and prediction theory,"} J. Basic Eng., ser. D, vol. 83, pp. 95-108, Mar. 1961.

\bibitem{3}E. R. Laithwaite and S. A. Nasar,
\emph{``Linear-motion electrical machines,"} Proc. IEEE, vol. 58, no. 4, pp. 531-542, April 1970.

\bibitem{3n} G. F. Dawson, A. R. Eastham and J. F. Gieras
\emph{``Design of linear induction drives by
fields analysis and finite-element techniques,"}  IEEE Trans. Industry Appl., vol. IA-22, no. 5,
pp. 865-873, September 1986.

\item[]\hspace{-\labelwidth}\hspace{-\labelsep}\textit{Basic Format for Conference Paper:}

\bibitem{4}J. K. Author,
\emph{``Title of paper,"} presented at the Unabbrev. Name of Conf., year.

\item[]\hspace{-\labelwidth}\hspace{-\labelsep}\textit{Example:}

\bibitem{5} J. Arrillaga and B. Giessner,
\emph{``Limitation of short-circuit levels by means of HVDC links,"} presented at the IEEE Summer Power Meeting,  July 12-17, 1990.

\item[]\hspace{-\labelwidth}\hspace{-\labelsep}\textit{Basic Format for Book:}

\bibitem{6}J. K. Author,
\emph{``Title of the book,"} xth ed. City of Publisher, Country, Abbrev. of Publisher, year.

\item[]\hspace{-\labelwidth}\hspace{-\labelsep}\textit{Example:}

\bibitem{7} P. C. Krause, O. Wasynczuk, and S. D. Sudhoff
\emph{``Analysis of electric machinery,"} 2nd ed., New York, Wiley, 2002.

\item[]\hspace{-\labelwidth}\hspace{-\labelsep}\textit{Basic Format for Theses (M.S.) and Dissertations (Ph.D.):}

\bibitem{8}J. K. Author,
\emph{``Title of dissertation,"} M.S. or Ph.D. dissertation, Abbrev. Dept., Abbrev. Univ., City of Univ., Abbrev. State or Country, year.

\item[]\hspace{-\labelwidth}\hspace{-\labelsep}\textit{Example:}

\bibitem{9}J. O. Williams,
\emph{``Narrow-band analyzer,"} Ph.D. dissertation, Dept. Elect. Eng., Harvard Univ., Cambridge, MA, 1993.

\item[]\hspace{-\labelwidth}\hspace{-\labelsep}\textit{Basic Format for Standard:}

\bibitem{10}\emph{Title of standard,} Standard number, date.

\item[]\hspace{-\labelwidth}\hspace{-\labelsep}\textit{Example:}

\bibitem{11}
\emph{IEEE criteria for class in electric systems,} IEEE Standard 308, 1969.
\end{thebibliography}

\begin{wrapfigure}[9]{l}[0cm]{2.5cm}
\vspace{-.025cm}
\includegraphics[width=2.4cm, height=3.2cm]{Kharazmi.jpg}
\end{wrapfigure}
\textbf{Muhammad Ibn-Musa Khwarizmi} was born in the town of Khwarizm (now Khiva), in Khorasan province of Persia in c.780 and died in c.840. He was a Persian scientist, mathematician, and author. Soon afterward, his family moved to a place near Baghdad where he accomplished most of his work in the period between 813 and 833. He developed the concept of the algorithm in mathematics and the words "algorithm" and "algorism". Algorism and algorithm stem from Algoritmi, the Latin form of his name. He also made major contributions to the fields of algebra, trigonometry, astronomy, geography and cartography. He supervised the work of 70 geographers to create a map of them  then call "known world". \\ 

\begin{wrapfigure}[9]{l}[0cm]{2.5cm}
\vspace{-.025cm}
\includegraphics[width=2.4cm, height=3.2cm]
{Tesla.png}
\end{wrapfigure}
\textbf{Nikola Tesla} was born in Smiljan in the Austro-Hungarian Empire, on 10 July 1856. He graduated from the Austrian Polytechnic School, Graz and studied at the University of Prague. His employment experience included the American Telephone Company, Budapest, the Edison Machine Works, Westinghouse Electric Company and Nikola Tesla Laboratories. His special fields of interest included high frequency.\\
Tesla received honorary degrees from institutions of higher learning including Columbia University, Yale University, University of Belgrade and the University of Zagreb. He received the Elliott Cresson Medal of the Franklin Institute and the Edison Medal of the IEEE. In 1956, the term "tesla" (T) was adopted as the unit of magnetic flux density in the MKSA system. In 1975, the Power Engineering Society established the Nikola Tesla Award in his honor. Tesla died on 7 January 1943.\\

\end{document}
%\capitalisewords{text} The first letter of all word in text are capalized!
%\scshape{text} Make IEEE format for section titles! 
%\lpg show the last page of article