我使用 IEEEtran 风格。我遵循指导方针。但是当我添加作者姓名时出现错误:
\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}
错误说:
未定义控制序列。\maketitle
如果我只是使用\author{Name}
它,它就可以工作。但我需要使用它们的结构才能添加隶属关系和多个作者。脚本中的问题是什么?
答案1
您错误地引用了错误消息,该消息是
! Undefined control sequence.
\@author ->\authorblockN
{Michael Shell}\authorblockA {School of Electrical ...
l.12 \maketitle
?
显示未定义的命令是\authorblockN
从代码来看,命令似乎\IEEEauthorblockN
是\IEEEauthorblockA