cas-sc 类不打印作者列表、所属机构、摘要和关键字

cas-sc 类不打印作者列表、所属机构、摘要和关键字

我正在使用该类cas-sc,但无法让它打印作者的姓名、所属机构、摘要和关键字。

这是我的代码:

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

\begin{document}
\title{A coordination mechnanism}
\author{Ghulam Hafeez$^{1,2*}$, Ammar Ali$^1$, Salman Ahmad$^4$, Nadeem Javaid$^{1}$, \\Muhammad Usman$^2$, and Khurram Saleem Alimgeer$^1$\\
$^{1}$COMSATS University Islamabad, Islamabad 44000, Pakistan\\
$^{2}$University of Engineering and Technology, Mardan 23200, Pakistan\\
%$^{3}$PMAS Agriculture University, Rawalpindi 46000, Pakistan\\
$^{3}$Wah Engineering College, University of Wah, Wah Cantt 47070, Pakistan\\
%$^{2}$CAMS, Dept of Biomedical Technology, KSU, Riyadh 11633, Saudi Arabia\\
%$^{3}$FE, Dalhousie University, Halifax, NS B3J 4R2, Canada\\
$^{*}$Corresponding author: [email protected]
}

\begin{abstract}[S U M M A R Y]
    Instead of planting new electricity generation units, there is a need to design an efficient energy management system to achieve a normalized trend of power consumption. Smart grid has been evolved as a solution, where demand response strategy is used to modify the nature of demand of consumer. In return, utility paid incentives to the consumer. This concept is equally applicable on residential and commercial areas; however, the increasing load demand in residential area and irregular electricity load profile have encouraged us to propose an efficient Home Energy Management System (HEMS) for optimal scheduling of home appliances. We propose a multi-objective optimization based solution {that shifts the electricity load} from On-peak to Off-peak hours. It aims to manage the trade-off between conflicting objectives: electricity bill, waiting time of appliances and electricity load sifting according to the defined electricity load pattern. The defined electricity load pattern helps in balancing the load during On-peak and Off-peak hours. {Moreover, for} real-time rescheduling, concept of coordination among home appliances is presented. This helps {the scheduler} to optimally decide the ON/OFF status of appliances {to reduce the waiting time of the appliance.} Whereas, electricity consumers have stochastic nature, for which nature-inspired optimization techniques provide optimal solutions. For optimal scheduling, we proposed two optimization techniques: binary multi-objective bird swarm optimization and a hybrid of bird swarm and cuckoo search algorithms to obtain the Pareto front. {Moreover, dynamic programming is used to enable coordination among the appliances so that real-time scheduling can be performed by the scheduler on user\textquotesingle s demand.} To validate the performance of the proposed nature-based optimization techniques, we compare the results of proposed schemes with existing techniques such as multi-objective binary particle swarm optimization and multi-objective cuckoo search algorithms. Simulation results validate the performance of proposed techniques in terms of electricity cost reduction, peak average ratio and waiting time minimization. {Also, test functions for convex, non-convex and discontinuous Pareto front are studied to prove the efficacy of proposed techniques.}
\end{abstract}
\begin{keywords}
Coordination \sep Dynamic programming \sep Knapsack \sep Multi-objective optimization \sep Pareto front \sep Meta-heuristic \sep Nature-inspired \sep Bird swarm and Cuckoo search algorithm \sep Hybrid technique \sep Demand side management \sep Demand response \sep Smart grid.
\end{keywords}
\section{Intro}
Test
Test
Tes
\end{document}

答案1

首先,该类隐式要求您加载natbib,否则您会收到错误:

! Undefined control sequence.
\@begindocumenthook ...\@afterindentfalse \bibsep 
                                                  =0pt\gdef \bibfont {\fonts...
l.3 \begin{document}

?

其次,它要求您使用\title可选参数(\title[mode=title]),否则您会收到另一个错误:

! Package xcolor Error: Undefined color `'.

See the xcolor package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.12 \maketitle

?

最后,您需要使用\maketitle打印缺失的字段。添加所有这些后,文档的一个工作示例将是:

\documentclass[a4paper,fleqn]{cas-sc}
\usepackage{natbib}% <--- You must load natbib
\begin{document}
\title[mode=title]% <--- You must use an option here
  {A coordination mechnanism}
\author{Ghulam Hafeez}
\begin{abstract}[S U M M A R Y]
  Instead
\end{abstract}
\begin{keywords}
Coordination
\end{keywords}
\maketitle % <--- \maketitle to print authors, abstract, keywords, etc.
\section{Intro}
Test
\end{document}

打印:

在此处输入图片描述

我的意见是:elsarticle如果可以的话就使用吧。

答案2

我想通过提供我在 biblatex (而不是 natbib) 中使用 cas-dc 类的经验来补充这个答案。我遇到了与原始问题相同的错误。

未注释掉 \ABD{\bibsep=0pt} 的错误信息

我通过注释 cas-common.sty 文件末尾的 '\ABD{\bibsep=0pt}' 行来摆脱它:

% \ABD{\bibsep=0pt}
%\ifbool{casfinallayout}
%  {%
   \ABD{\gdef\bibfont{\fontsize{8pt}{10pt}\selectfont}%
    \gdef\casbiographyfont{\fontsize{8pt}{10pt}\selectfont}%
   }%
%  }
%  {}

这帮助我避免了 \bibsep 错误,而无需加载 natbib。我使用了 biblatex 和选项 [natbib=true]。

\usepackage[natbib=true,backend=biber,style=authoryear,sorting=nyt,maxcitenames=2,mincitenames=1,giveninits=true]{biblatex}

相关内容