I use IEEEtran style. I am following the guidelines. But I get an error when I add the authors names:
\documentclass[journal,comsoc]{IEEEtran}
\usepackage[T1]{fontenc} %optional
\usepackage{amsmath}
\usepackage[cmintegrals]{newtxmath}
\usepackage{bm} % optional
\begin{document}
\title{test}
\author{\authorblockN{Michael Shell}\authorblockA{School of Electrical and\\Computer Engineering\\Georgia Institute of Technology\\Atlanta, Georgia 30332--0250\\Email: mshell@ece.gatech.edu}\and\authorblockN{Homer Simpson}\authorblockA{Twentieth Century Fox\\Springfield, USA\\Email: homer@thesimpsons.com}\and\authorblockN{James Kirk\\and Montgomery Scott}\authorblockA{Starfleet Academy\\San Francisco, California 96678-2391\\Telephone: (800) 555--1212\\Fax: (888) 555--1212}}
\maketitle
\end{document}
The error says:
Undefined control sequence. \maketitle
If I just use \author{Name}
it works. But I need to use their structure to be able to add affiliations and multiple authors. What is the problem in the script?
Best Answer
You have misquoted the error message which is
showing that the undefined command is
\authorblockN
Looking at the code it seems the commands are
\IEEEauthorblockN
and\IEEEauthorblockA