%======================================================================
%----------------------------------------------------------------------
%     	             EXAMPLE FILE TO TEST ieee.cls
%----------------------------------------------------------------------
%======================================================================

% DON'T WORRY ABOUT ALL THIS STUFF! IT'S HERE TO ALLOW ME TO 
% AUTOMATICALLY RE-GENERATE ALL THE EXAMPLE FORMATS EACH TIME I
% MAKE AN UPDATE TO ieee.cls, OR ONE OF THE PLUG-IN FILES.

\newif\ifman\mantrue
\newif\ifup\upfalse

\def\useem#1{\uptrue\def\up{#1}\usepackage{#1}}

%dc1[draft,narroweqnarray,inline]{ieee}

%dc2[submission,narroweqnarray,inline]{ieee}
%dc2i[submission,internal,narroweqnarray,inline]{ieee}

%dc3[compressed,narroweqnarray,inline]{ieee}
%dc3i[compressed,internal,narroweqnarray,inline]{ieee}
%dc3s[compressed,submitted,narroweqnarray,inline]{ieee}
%dc3n[compressed,inpress,narroweqnarray,inline]{ieee}

%dc4[final,narroweqnarray,inline]{ieee}
%dc4i[final,internal,narroweqnarray,inline]{ieee}
%dc4s[final,submitted,narroweqnarray,inline]{ieee}
%dc4n[final,inpress,narroweqnarray,inline]{ieee}
%dc4r[final,reprint,narroweqnarray,inline]{ieee}
%dc4t[final,technote,narroweqnarray,inline]{ieee}

%dc4tc[final,narroweqnarray,inline]{ieee} \useem{ieeetc,times}
%dc4tsp[final,narroweqnarray,inline]{ieee} \useem{ieeetsp}

%dcimtc[final,narroweqnarray,inline]{ieee} \useem{ieeeimtc,times}
\manfalse\documentclass[final,narroweqnarray,inline]{ieee} \useem{ieeecdc}

\ifman
  \documentclass[%
	%draft,
	%submission,
	%compressed,
	%final,
	%
	%internal,
	%submitted,
	%inpress,
	%reprint,
	%technote,
	%
	%titlepage,
	%notitlepage,
	%anonymous,
	%narroweqnarray,
	%inline,
	%twoside,
	]{ieee}
  %\usepackage{ieeetsp}
  %\usepackage{ieeetc}
\else % stuff needed to change header/footer to automatically
      % display the document options
  \makeatletter

  \newif\ifcomma\commafalse
  \def\comma{\ifcomma{,}\else\global\commatrue\fi}

  \def\dc{%
    \global\commafalse
    \ifdr@ft{\comma{draft}}\fi
    \ifsubm@t{\comma{submission}}\fi
    \ifc@mpress{\comma{compressed}}\fi
    \ifev@l{\comma{final}}\fi

    \ifintern@l{\comma{internal}}\fi
    \ifprepr@nt{\comma{submitted}}\fi
    \ifinpr@ss{\comma{inpress}}\fi
    \ifrepr@nt{\comma{reprint}}\fi
    \if@technote{\comma{technote}}\fi

    \iftitlep@ge{\comma{titlepage}}\fi
  }

  \def\optionsline{Options used for this example:
	$\backslash$documentclass[\protect\dc]$\{$ieee$\}$
	\ifup\quad$\backslash$usepackage$\{$\up$\}$\fi}

  \ifdr@ft
    \def\theevenhe@d{\hfil\optionsline\hfil}
    \let\theoddhe@d\theevenhe@d
    \let\theeventphe@d\theevenhe@d
    \let\theoddtphe@d\theevenhe@d
  \else
    \def\theevenf@@t{\hfil\optionsline\hfil}
    \let\theoddf@@t\theevenf@@t
    \ifrepr@nt
    \def\theeventpf@@t{\footnotesize\hfil\begin{tabular}{c}
       \@ieeecopyright \\ \optionsline \end{tabular}\hfil}
    \let\theoddtpf@@t\theeventpf@@t
    \else
      \let\theeventpf@@t\theevenf@@t
      \let\theoddtpf@@t\theoddf@@t
    \fi
  \fi
  \makeatother
\fi

% Use the `endfloat' package to move figures and tables to the end
% of the paper. Useful for `submission' mode.
%\usepackage {endfloat}

% Use the `times' package to use Helvetica and Times-Roman fonts
% instead of the standard Computer Modern fonts. Useful for the IMTC-conf
% mode, or any of the IEEE Computer Society transactions.
% (Note: If you have the commercial package `mathtime,' it is much
% better, but the `times' package works too).
%\usepackage {times}

% for any plug-in code... insert it here
%\usepackage{ieeecdc}

\begin{document}

%----------------------------------------------------------------------
% Title Information, Abstract and Keywords
%----------------------------------------------------------------------
\title[EXAMPLE]{Example \protect\texttt{ieee.cls} Paper}

% format author this way for journal articles.
% \author[PLETT]{Gregory L. Plett\member{Student Member}
%       \authorinfo{%
%       G.L. Plett is with the Department of Electrical
%       Engineering, Stanford University, Stanford, CA 94305-9510.
%       Phone: $+$1\,415\,723-4769, email: glp@simoon.stanford.edu}%
%}

% format author this way for conference proceedings
\author[PLETT]{Gregory L. Plett\member{Student Member}
        \authorinfo{%
        Department of Electrical Engineering,\\ 
        Stanford University, Stanford, CA 94305-9510.\\
        Phone: $+$1\,415\,723-4769, email: glp@simoon.stanford.edu}%
}

\journal{IEEE Transactions on Something}
%\titletext{, 1997}
\ieeecopyright{xxx--xxxx/97\$10.00 \copyright\ 1997 IEEE}
\pubitemident{S xxxx--xxxx(97)xxxxx--x}
\lognumber{xxxxxxx}
\loginfo{Manuscript received xxx\par for more info\par etc}
\firstpage{1}

\confplacedate{Ottawa, Canada, May 19--21, 1997}

\maketitle               

\begin{abstract}
This file is a short example to show the different formatting 
options available with the \texttt{ieee.cls} file.
\end{abstract}

\begin{keywords}
Style file, \LaTeX2e, IEEE Publications, Example
\end{keywords}

%----------------------------------------------------------------------
% SECTION I: Introduction
%----------------------------------------------------------------------
\section{Introduction}

\PARstart This is a short example file to show the formatting
options available with the \texttt{ieee.cls} file. It
allows a world-wide-web page to very compactly display all the 
options. The options include: the main mode, the sub-modes
and the miscellaneous options.

\subsection{Main-Mode}

There are four main-modes: draft, submission, compressed and final.

\subsubsection{The Draft Mode}

The draft mode double-spaces, gives nice wide margins, and
time stamps each page.

\subsubsection{The Submission Mode}

Like draft mode, but does not time-stamp.

\subsubsection{The Compressed Mode}

The compressed mode is single spaced, single column.

\subsubsection{The Final Mode}

\paragraph{For conferences}

The final mode produces camera-ready output.

\paragraph{For journals}

The final mode produces an ``evaluation'' output which allows
you to break equations, judge page-lengths, etc.

\subsection{Sub-Mode}

The sub-modes are: internal, submitted, inpress, reprint and 
technote. These allow internal review, submission of the
paper for initial review and for publishing, and
special comments in the header of the paper to indicate that
this paper is submitted, or in-press and not the
final version. The ``reprint'' sub-mode gives proper page numbers, etc.

\subsection{Miscellaneous Options}

The miscellaneous options are: titlepage, notitlepage, anonymous,
9pt, 10pt, 11pt, 112pt, narroweqnarray and inline. These govern
the production or omission of a separate title page, the
inclusion or omission of author information, the type
size (you should never need to use these, though) and two fixes
to the way \LaTeX\ displays math.

\section{Short Summary}

Fig.~\ref{fig:example} shows a sequence of commands useful for
formatting an IEEE paper using \texttt{ieee.cls}.

\begin{figure}[htb]
\begin{center}\small
\begin{tabular}{|l|}\hline
\begin{minipage}{0.9\hsize}
\vspace{1mm}
\begin{verbatim}
\documentclass[final]{ieee} 
\begin{document}

\title[Example]{Example ieee.cls Paper}

\author[PLETT]{%
   Gregory L. Plett\member{Student Member}
   \authorinfo{%
   G.L. Plett is ...}
 }

\journal{IEEE Transactions on ...}

\maketitle

\begin{abstract} This file ...
\end{abstract}

\begin{keywords} Style file ...
\end{keywords}

\section{Introduction}
\PARstart This is ...

\begin{biography}{Gregory L. Plett} (S'97)
...
\end{biography}

\end{document}
\end{verbatim}
\vspace{1mm}
\end{minipage} \\ \hline
\end{tabular}
\end{center}
\caption{Input used to produce this paper.}
\label{fig:example}
\end{figure}

%----------------------------------------------------------------------

\begin{biography}[face.ps]{Gregory L. Plett} (S'97)
was born in Ottawa, ON, in 1968. etc. etc.

Here's a second paragraph...
\end{biography}

\end{document}
