![多位作者的隶属关系](https://linux22.com/image/375840/%E5%A4%9A%E4%BD%8D%E4%BD%9C%E8%80%85%E7%9A%84%E9%9A%B6%E5%B1%9E%E5%85%B3%E7%B3%BB.png)
我正在使用 Texmaker 5.0.2 撰写论文。我有多个作者的隶属关系,我尝试按以下方式解决它:
\documentclass{cai}
\usepackage{graphicx}
\usepackage{blindtext}
\usepackage{enumitem}
\usepackage{arabtex}
\usepackage{utf8}
\usepackage{float}
\usepackage[export]{adjustbox}
\usepackage{wrapfig}
\page{1}
\begin{document}
\label{firstpage}
\title{title}
\author
{$^1$ first\surname {Author}, $^2$ Second\surname {Author}, $^3$ Third \surname {Author}, $^4$ Fourth\surname {Author}}
\affiliation{$^1^$, $^3$ First University\\
$^2$ Second University\\
$^4$ Third University\\
}
\email{$^1$ [email protected], $^2$ [email protected],\\\hspace{13mm} $^3$ [email protected],
$^4$ [email protected]}
\noreceived{} \nocommunicated{}
\maketitle
但是当我构建它时出现以下错误
"! Missing $ inserted.<inserted text>$ \maketitle"
可能是由于特殊字符 ($,^)。有什么帮助吗?我非常感谢你提供的任何帮助。
答案1
您正在使用的这个cai
文档类定义了\author
、\affiliation
和\email
宏,以便您可以为每个作者调用一次,如下所示:
\documentclass{cai}
\usepackage{graphicx}
\usepackage{blindtext}
\usepackage{enumitem}
\usepackage{arabtex}
\usepackage{utf8}
\usepackage{float}
\usepackage[export]{adjustbox}
\usepackage{wrapfig}
\page{1}
\begin{document}
\label{firstpage}
\title{title}
\author{First \surname{Author}}
\affiliation{First University}
\email{[email protected]}
\author{Second \surname{Author}}
\affiliation{Second University}
\email{[email protected]}
\author{Third \surname{Author}}
\affiliation{First University}
\email{[email protected]}
\author{Fourth \surname{Author}}
\affiliation{Third University}
\email{[email protected]}
\noreceived{} \nocommunicated{}
\maketitle
\end{document}