! 不完整 \iffalse;第 22 行之后的所有文本均被忽略。在 \IEEEauthorblockN

! 不完整 \iffalse;第 22 行之后的所有文本均被忽略。在 \IEEEauthorblockN

我得到了错误

! Incomplete \iffalse; all text was ignored after line 22. In \IEEEauthorblockN

这是 MWE

\documentclass[conference,10pt]{IEEEtran}
\usepackage[affil-it]{authblk} 

\begin{document}
\title{ABC}

\author{\IEEEauthorblockN{Michael Shell\IEEEauthorrefmark{1},
Homer Simpson\IEEEauthorrefmark{2},
James Kirk\IEEEauthorrefmark{3}, 
Montgomery Scott\IEEEauthorrefmark{3} and
Eldon Tyrell\IEEEauthorrefmark{4}}
\IEEEauthorblockA{\IEEEauthorrefmark{1}School of Electrical and Computer Engineering\\
Georgia Institute of Technology,
Atlanta, Georgia 30332--0250\\ Email: see http://www.michaelshell.org/contact.html}
\IEEEauthorblockA{\IEEEauthorrefmark{2}Twentieth Century Fox, Springfield, USA\\
Email: [email protected]}
\IEEEauthorblockA{\IEEEauthorrefmark{3}Starfleet Academy, San Francisco, California 96678-2391\\
Telephone: (800) 555--1212, Fax: (888) 555--1212}
\IEEEauthorblockA{\IEEEauthorrefmark{4}Tyrell Inc., 123 Replicant Street, Los Angeles, California 90210--4321}}
\end{document}

答案1

作者块功能内置于 IEEETran 类中。您无需包含\usepackage{authblk}。(注释掉这一行将允许您的代码进行编译,尽管它不会将任何内容打印到输出文件,因为您尚未给出命令\maketitle。)

\documentclass[conference,10pt]{IEEEtran}

\begin{document}
\title{ABC}

\author{\IEEEauthorblockN{Michael Shell\IEEEauthorrefmark{1},
Homer Simpson\IEEEauthorrefmark{2},
James Kirk\IEEEauthorrefmark{3}, 
Montgomery Scott\IEEEauthorrefmark{3} and
Eldon Tyrell\IEEEauthorrefmark{4}}
\IEEEauthorblockA{\IEEEauthorrefmark{1}School of Electrical and Computer Engineering\\
Georgia Institute of Technology,
Atlanta, Georgia 30332--0250\\ Email: see http://www.michaelshell.org/contact.html}
\IEEEauthorblockA{\IEEEauthorrefmark{2}Twentieth Century Fox, Springfield, USA\\
Email: [email protected]}
\IEEEauthorblockA{\IEEEauthorrefmark{3}Starfleet Academy, San Francisco, California 96678-2391\\
Telephone: (800) 555--1212, Fax: (888) 555--1212}
\IEEEauthorblockA{\IEEEauthorrefmark{4}Tyrell Inc., 123 Replicant Street, Los Angeles, California 90210--4321}}

\maketitle

\end{document}

给出:

作者标记隶属关系

如果您的从属关系较少,则可以使用具有多列的更传统的块形式:

\documentclass[conference,10pt]{IEEEtran}

\begin{document}
\title{ABC}

\author{\IEEEauthorblockN{Michael Shell}
\IEEEauthorblockA{School of Electrical and Computer Engineering\\
Georgia Institute of Technology,
Atlanta, Georgia 30332--0250\\ Email: see http://www.michaelshell.org/contact.html}
\and
\IEEEauthorblockN{Homer Simpson}
\IEEEauthorblockA{Twentieth Century Fox, Springfield, USA\\
Email: [email protected]}
}

\maketitle

\end{document}

这使:

作者无标记区块从属关系

更多信息请参见如何使用 IEEETran LaTeX 类

相关内容