![\author 中的 $\inst{}$ 存在未定义的控制序列错误](https://linux22.com/image/355530/%5Cauthor%20%E4%B8%AD%E7%9A%84%20%24%5Cinst%7B%7D%24%20%E5%AD%98%E5%9C%A8%E6%9C%AA%E5%AE%9A%E4%B9%89%E7%9A%84%E6%8E%A7%E5%88%B6%E5%BA%8F%E5%88%97%E9%94%99%E8%AF%AF.png)
我正在使用 Springer 模板撰写期刊论文,并尝试使用\inst
和\institute
为一位作者添加不同的隶属关系。但是,我无法解决错误“!未定义的控制序列”。
我尝试了本网站提到的不同解决方案,但都不起作用。以下示例将发生相同的错误
\RequirePackage{fix-cm}
\documentclass[smallcondensed]{svjour3}
\smartqed
\usepackage{graphicx}
\usepackage{authblk}
\usepackage{pbox}
\usepackage{commath}
\usepackage[numbers,sort&compress]{natbib}
\usepackage{rotating}
\usepackage{algorithm2e,algorithmic}
\usepackage{epstopdf}
\usepackage{longtable}
\usepackage{tabularx,ragged2e,booktabs}
\usepackage{graphicx}
\usepackage{color}
%\usepackage{apacite}
\usepackage[misc,geometry]{ifsym}
\usepackage{amsmath}
\usepackage{url}
\usepackage[margin=1in]{geometry}
\usepackage{mathptmx}
\journalname{Journal Nmae}
%
\begin{document}
\title{Insert your title here
}
\subtitle{Do you have a subtitle?\\ If so, write it here}
\author{AuthorA $^\inst{1,2}$ \and
AuthorB $^\inst{1}$ \and
AuthorC $^\inst{1}$
}
\institute{F. Author \at
first address \\
Tel.: +123-45-678910\\
Fax: +123-45-678910\\
\email{[email protected]}
\and
S. Author \at
second address
}
\date{}
\maketitle
\end{document}
答案1
该类svjour3
不使用上标数字来标识地址。
\documentclass[smallcondensed]{svjour3}
\usepackage{graphicx}
\usepackage{authblk}
\usepackage{pbox}
\usepackage{commath}
\usepackage[numbers,sort&compress]{natbib}
\usepackage{rotating}
\usepackage{algorithm2e,algorithmic}
\usepackage{epstopdf}
\usepackage{longtable}
\usepackage{tabularx,ragged2e,booktabs}
\usepackage{graphicx}
\usepackage{color}
%\usepackage{apacite}
\usepackage[misc,geometry]{ifsym}
\usepackage{amsmath}
\usepackage{url}
\usepackage[margin=1in]{geometry}
\usepackage{mathptmx}
\journalname{Journal Nmae}
\smartqed
\begin{document}
\title{Insert your title here}
\subtitle{Do you have a subtitle?\\ If so, write it here}
\author{AuthorA \and
AuthorB \and
AuthorC
}
\institute{%
AuthorA \and AuthorB \and AuthorC
\at
first address \\
Tel.: +123-45-678910\\
Fax: +123-45-678910\\
\email{[email protected]}
\and
AuthorA
\at
second address
}
\date{}
\maketitle
\end{document}
图片中的箭头代表文字,机构会在页面底部。