\documentclass[final,9p,cambria,twocolumn,authoryear]{elsarticle}
%% For including figures, graphicx.sty has been loaded in
%% elsarticle.cls. If you prefer to use the old commands
%% please give \usepackage{epsfig}
%% The amssymb package provides various useful mathematical symbols
\usepackage{amssymb}
\usepackage{lipsum}
%% The amsthm package provides extended theorem environments
%% \usepackage{amsthm}
%% The lineno packages adds line numbers. Start line numbering with
%% \begin{linenumbers}, end it with \end{linenumbers}. Or switch it on
%% for the whole article with \linenumbers.
%% \usepackage{lineno}
%% You might want to define your own abbreviated commands for common used terms, e.g.:
\newcommand{\kms}{km\,s$^{-1}$}
\newcommand{\msun}{$M_\odot}
\journal{University of Twente}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{graphicx}
\usepackage[T1]{fontenc, url}
\usepackage[utf8]{inputenc}
\usepackage{titlesec}
\usepackage{graphicx}
\usepackage{parskip} % Removing indenting in new paragraphs
\urlstyle{sf}
\usepackage{color}
\usepackage{appendix}
\usepackage{rotating}
\usepackage{tikz}
\usepackage{csvsimple}
\usepackage{background}
\usepackage[acronym,toc,nonumberlist]{glossaries}
\usepackage{pdfpages}
\usepackage{hyperref}
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black
}
\usepackage{xcolor}
\backgroundsetup{contents={}}
\usepackage{geometry}
\geometry{
a4paper,
total={160mm,247mm},
left=20mm,
top=30mm,
}
\usepackage{fancyhdr}
\usepackage{subfiles}
\usepackage{array}
\usepackage{tikz}
\usepackage[rightcaption]{sidecap}
\usepackage{wrapfig}
\usepackage{float}
\usepackage[labelfont=bf]{caption} % bold text for captions
\usepackage[para]{threeparttable} % fancy tables, check these before you use them
\usepackage{url}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{natbib}
\usepackage{sectsty}
\includeonly{banner}
\begin{document}
\begin{figure}[h]
\centering
\includegraphics[trim = 0cm 0cm 0 4cm ]{Academic research skills banner.jpg}
\end{figure}
\begin{frontmatter}
\title{Enhancing railway maintenance game with IT/OT, cybersecurity, and future industry insights.}
%% use optional labels to link authors explicitly to addresses:
%% \author[label1,label2]{}
%% \affiliation[label1]{organization={},
%% addressline={},
%% city={},
%% postcode={},
%% state={},
%% country={}}
%%
%% \affiliation[label2]{organization={},
%% addressline={},
%% city={},
%% postcode={},
%% state={},
%% country={}}
\author{\fontsize{11}{11}\selectfont Author}
\begin{abstract}
Abstract
\end{abstract}
\begin{keyword}
Serious games \sep Railway maintenance \sep IT/OT convergence \sep Cyberphysical systems \sep Cybersecurity
\end{keyword}
\end{frontmatter}
\section{Introduction}
嗨,我希望有人能帮我解决两个问题,第一个是删除摘要标题并将其清空。我已经尝试过 \renewcommand{\abstractname}{} 和 \renewcommand{\absnamepos}{empty} 但这没有任何效果,而且使用摘要包时整个文档都会变得混乱,所以我宁愿不使用它。
另一个原因是必须在纸张顶部插入横幅,但是这会导致整个页面只有顶部的横幅,而我找不到删除空间的方法。
任何帮助都将受到赞赏。
亲切的问候。
答案1
TL;DR:您正在使用一个不灵活的模板类,这使得修改它变得非常困难。
对于您的第一个问题:该类对包含摘要标题的命令使用了非典型命名。它不使用通常的\abstractname
命令,而是定义自己的命令。将其放在\abstracttitle{}
您的序言中将定义一个空名称并使其消失。
其次,吼叫frontmatter
程序的编码方式非常奇怪。给定的命令(包括abstract
等)将存储它们的信息,并全部它将通过\maketitle
自动发出的命令进行排版在最后的fronmatter
。此命令包括一个\clearage
,使它从新页面的顶部开始。除了文档中给出的选项外,您几乎没有选项可以修改标题页的外观。插入横幅需要摆弄类源代码,因此从头开始自己创建标题页可能更容易。
编辑:我发现了一个非常(非常!)棘手的解决方法,但如果您想坚持使用此模板,您无能为力。此示例产生了我认为您想要的结果。但它不稳定,因此其他东西可能会损坏:
\documentclass[final,9p,cambria,twocolumn,authoryear]{elsarticle}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{geometry}
\geometry{
a4paper,
total={160mm,247mm},
left=20mm,
top=30mm,
}
\journal{University of Twente}
\abstracttitle{}
% hack to build in a banner-image:
\let\orgresetTitleCounters\resetTitleCounters%
\def\resetTitleCounters{\orgresetTitleCounters\gdef\resetTitleCounters{}%
{\centering\includegraphics{example-image-a}\par}
\vspace{2cm}
}
\begin{document}
\begin{frontmatter}
\title{Enhancing railway maintenance game with IT/OT, cybersecurity, and future industry insights.}
\author{\fontsize{11}{11}\selectfont Author}
\begin{abstract}
Abstract
\end{abstract}
\begin{keyword}
Serious games \sep
Railway maintenance \sep
IT/OT convergence \sep
Cyberphysical systems \sep
Cybersecurity
\end{keyword}
\end{frontmatter}
\section{Introduction}
Lorem ipsum dlor sit atem.
\end{document}