我第一次使用 Elsiver 期刊的 Latex 模板,但我得到的所有作者的后继隶属关系的数字都是 1。这是一个最小的工作环境。有人能告诉我是否缺少了什么吗?
\documentclass[preprint,12pt]{elsarticle}
\begin{document}
\begin{frontmatter}
\title{My title}
\author[affiliation1, affiliation2]{Author1}
\author[affiliation3, affiliation5]{Author2}
\author[affiliation2]{Author3}
\author[affiliation3, affiliation4, affiliation6]{Author4}
\address[affiliation1]
{
Institute1
}
\address[affiliation3]
{
Institute2
}
\address[affiliation5]
{
Institute3
}
\address[affiliation2]
{
Institute4
}
\address[affiliation4]
{
Institute5
}
\address[affiliation6]
{
Institute6
}
\end{frontmatter}
\end{document}
答案1
可选参数中以逗号分隔的值列表中不应有空格:
\documentclass[preprint,12pt]{elsarticle}
\begin{document}
\begin{frontmatter}
\title{My title}
\author[affiliation1,affiliation2]{Author1}
\author[affiliation3,affiliation5]{Author2}
\author[affiliation2]{Author3}
\author[affiliation3,affiliation4,affiliation6]{Author4}
\address[affiliation1]
{%
Institute1%
}
\address[affiliation3]
{%
Institute2%
}
\address[affiliation5]
{%
Institute3%
}
\address[affiliation2]
{%
Institute4%
}
\address[affiliation4]
{%
Institute5%
}
\address[affiliation6]
{%
Institute6%
}
\end{frontmatter}
\end{document}
该类在内部使用\@for
,它不会修剪逗号周围的前导或尾随空格。
注意空格!