我找不到 Elsevier Expert Systems with Applications 的模板,因此我尝试编辑 Procedia 模板。我遇到了问题
- 正文已侵占至摘要和关键词下方一行。
。
\documentclass[3p,times,twocolumn,authoryear]{elsarticle}
\usepackage{ecrc}
\volume{00}
\firstpage{1}
\journal{Expert Systems with Applications}
\runauth{Me et al.}
%% The choice of journal logo is determined by the \jid and \jnltitlelogo commands.
%% A user-supplied logo with the name <\jid>logo.pdf will be inserted if present.
%% e.g. if \jid{yspmi} the system will look for a file yspmilogo.pdf
%% Otherwise the content of \jnltitlelogo will be set between horizontal lines as a default logo
%% Give the abbreviation of the Journal.
\jid{eswa}
%% Give a short journal name for the dummy logo (if needed)
%\jnltitlelogo{images/logo/logo-expert-systems-with-applications.gif}
\jnltitlelogo{Expert Systems with Applications}
%% Hereafter the template follows `elsarticle'.
%% For more details see the existing template files elsarticle-template-harv.tex and elsarticle-template-num.tex.
\usepackage{amssymb}
\usepackage[figuresright]{rotating}
\usepackage{lipsum}
\begin{document}
\begin{frontmatter}
\dochead{}
\title{title title title title title title }
\author{author1}
\author{author2}
\author{author3}
\address{address1}
\address{address2}
\begin{abstract}
\lipsum[75]
\end{abstract}
\begin{keyword}
key1,key2,key3,key4,key5,key6
\end{keyword}
\end{frontmatter}
\section{first section}
\lipsum[3-10]
\bibliographystyle{elsarticle-num-names}
\bibliography{optimizing_horizon_ref}
\end{document}
答案1
在3p
文档类别选项下,\vspace*{-20pt}
创建标题后会插入一个默认值。很奇怪,但确实如此。您可以通过etoolbox
修补:
\usepackage{etoolbox}
\AtBeginDocument{%
% \patchcmd{<cmd>}{<search>}{<replace>}{<success>}{<failure>}
\patchcmd{\MaketitleBox}{\vspace*{-20pt}\fi}{\fi}{}{}%
}