如何在 elsarticle 的摘要中添加关键词?

如何在 elsarticle 的摘要中添加关键词?

我对 LaTeX 还很陌生。我正在用 Tex Studio 准备一篇期刊文章。我也下载了 TexLive 并正在使用它。问题是\begin{keywords)返回unrecognized command

\end{abstract}
\begin{keywords}
\end{keywords}
\end{frontmatter}
\maketitle
\date{today}
\newpage

我该如何解决这个问题?谢谢。

答案1

您可以继续使用keyword(不是keywords)环境:

\documentclass[5p,number,preprint,times]{elsarticle}
% include here any package you may need
\begin{document}

\begin{abstract}
My wonderful abstract
\end{abstract}

\begin{keyword}Something \sep%
    Something else
\end{keyword}

\begin{frontmatter}
\title{The title of my beautiful article}

\author[unilu]{My name\corref{cor1}}
\ead{[email protected]}

\cortext[cor1]{Corresponding author. Tel.: (+111) 11 11 11.}
\address[myuni]{University of Somewhere}

\date{Received: date / Accepted: date}
% The correct dates will be entered by the editor
\end{frontmatter}


% == == == == == == == == == == == == == == ==
% Introduction
% == == == == == == == == == == == == == == ==
\section{Introduction}
\label{sec:intro}

\end{document}

结果:

在此处输入图片描述

答案2

问题解决了!非常感谢。我通过进入宏菜单来做到这一点,我在其中创建并保存了keyword环境宏(在我的情况下保存为“elskeyword”)。其余部分由下面的命令处理

\let\elskeyword\keyword
\let\endelskeyword\endkeyword
\usepackage{program}
...
\begin{frontmatter}
\title{Title of my report}
\begin{elskeyword}
  keyword1 \sep keyword2 \sep keyword3 \sep keyword4
\end{elskeyword}
\end{frontmatter}

感谢 Stefan Kottwitz 对这里类似问题的回答......程序包!额外},或忘记了\endgroup

相关内容