0

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: [email protected]}\and\authorblockN{Homer Simpson}\authorblockA{Twentieth Century Fox\\Springfield, USA\\Email: [email protected]}\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?

1
  • As noted in the comments to David Carlisle's answer, the root problem appears to be that you're using the command \authorblockN rather than the correct \IEEEauthorblockN. I think this might be because these popular instructions by Michael Shell use the wrong command on page 3: ras.papercept.net/conferences/support/files/IEEEtran_HOWTO.pdf Commented Oct 5, 2020 at 18:06

1 Answer 1

1

You have misquoted the error message which is

! Undefined control sequence.
\@author ->\authorblockN 
                         {Michael Shell}\authorblockA {School of Electrical ...
l.12     \maketitle

? 

showing that the undefined command is \authorblockN

Looking at the code it seems the commands are \IEEEauthorblockN and \IEEEauthorblockA

6
  • 1
    I posted the error I see using my editor (TexStudioi). But I am using a template and there is no definition for it.
    – randomname
    Commented Jan 11, 2020 at 23:32
  • 1
    @seq Please report that to texstudio it has been reported to them again and again and again that they are scrambling the error messages and confusing users. you could leave a note here sourceforge.net/p/texstudio/feature-requests/1068 Commented Jan 11, 2020 at 23:35
  • The error appears correctly now. It was my mistake that I was writing the command as: \and\authorblockA not \and \authorblockA
    – randomname
    Commented Jan 12, 2020 at 10:42
  • It works now. I just noticed that it should be IEEEauthorblockN not authorblockN
    – randomname
    Commented Jan 12, 2020 at 10:46
  • Plz. add to the answer that \and\authorblockN \and\authorblockA should be \and \authorblockN \and \authorblockA (space between \and and the next)
    – randomname
    Commented Jan 12, 2020 at 11:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .