使用 els-cas Elsevier 模板时包含电子邮件时出错

使用 els-cas Elsevier 模板时包含电子邮件时出错

当我尝试在使用该类时包含我的电子邮件或 URL 时,cas-sc我收到错误\maketitle。这是我的文档:

\documentclass[a4paper,fleqn]{cas-sc}

\usepackage{booktabs,siunitx}

\sisetup{detect-all}
%\usepackage{cite}
\usepackage{amssymb,amsthm}

\begin{document}
\shorttitle{An intelligent modular approach based on deep learning for forecasting}
\shortauthors{Ghulam Hafeez et al.}
%\begin{frontmatter}

\title [mode = title]{An intelligent modular approach based on deep learning for electric load forecasting in smart grid}
\author[1,2]{Ghulam Hafeez}%[orcid=0000-0002-9398-9414]
\author[1]{Nadeem Javaid*}
%\author[3]{Noor Islam}
%\author[1]{Khurram Saleem Alimgeer}
%\author[1]{Ammar Ali}
%\author[4]{Muhammad Riaz}
%\author[2]{Muhammad Usman}

\cortext[cor1]{Corresponding author}
\cormark[1]
\ead{[email protected]}
\ead[URL]{www.njavaid.com}
\address[1]{COMSATS University Islamabad, Islamabad 44000, Pakistan}
\address[2]{University of Engineering and Technology, Mardan 23200, Pakistan}
%\address[3]{CECOS University of IT \& Emerging Sciences, Peshawar 25124, Pakistan}
%\address[4]{Wah Engineering College, University of Wah, Wah Cantt 47070, Pakistan}
%and Khurram Saleem Alimgeer$^1$


\begin{abstract}[S U M M A R Y]
Short term load forecasting strategy is useful in the decision making of industrial, commercial and residential {smart grid (SG)} applications. Thus, several forecasting strategies have been proposed in the literature starting from legacy time series to contemporary data analytic models. CNN(210 seconds)\\
\end{abstract}

\begin{keywords}
Short term load forecasting;competition-2012.
\end{keywords}
\maketitle
\section{introduction}
\end{document}

答案1

这些els-cas类使用一组电子邮件、URL、Facebook 等的缩略图(因为在科学文章中提供指向 Facebook 的链接显然很常见),但它不会将这些缩略图放在 TeX 搜索的路径中。您有两个选择:

  1. 禁用缩略图。将此代码添加到你的前言中(使用之前\maketitle)以禁用缩略图:

    \ExplSyntaxOn
    \keys_set:nn { stm / mktitle } { nologo }
    \ExplSyntaxOff
    
  2. 将缩略图放在工作目录中。转到$TEXMFROOT/texmf-dist/doc/latex/els-cas-templates并将文件夹复制thumbnails到主.tex文件所在的文件夹。
    • 对于 Windows/MiKTeX 用户,通常C:\Program Files\MiKTeX 2.9\doc\latex\els-cas-templates
    • 对于 Linux/TeXLive 用户,通常是/usr/local/texlive/<year>/texmf-dist/doc/latex/els-cas-templates(Vanilla) 或/usr/share/texlive/texmf-dist/doc/latex/els-cas-templates(Package)。

此外,您必须\usepackage{natbib}在代码中这样做,否则该类将引发另一个错误。

相关内容