
elsarticle.cls
如果我想在段落之間留一點垂直間距,我會反抗嗎?
\setlength{\parsep}{12pt}
如果不是,為什麼放入呼叫文檔序言不起作用?
這是如何\parsep
設定的elsarticle.cls
。
\setlength{\parsep}{0pt plus1pt minus1pt}%
\setlength{\parskip}{0pt plus1pt minus1pt}
這是一個允許對此進行探索的 mwe:
\documentclass[review]{elsarticle}
\usepackage{lineno}
\usepackage{lipsum}
\setlength{\parindent}{12pt} % this works
\setlength{\parsep}{12pt} % this not having an effect
% set frequency of line numbers
\modulolinenumbers[2]
\journal{The Periodical}
% `Elsevier LaTeX' style
\bibliographystyle{plainnat}
\begin{document}
\begin{frontmatter}
% include title and subtitle
\title{The title}
% include authors, addresses, corresponding author
\author{Author}
\begin{abstract}
\end{abstract}
\begin{keyword}
easy, should-know-this, trivial, annoying, probably need help with the plus minus representation of lengths thing, apologies in advance
\end{keyword}
\end{frontmatter}
% select to show line numbers
\linenumbers
\tableofcontents
\newpage
% introduction
\section{Introduction}
\lipsum[2]\\
\lipsum[3-4]
\end{document}
答案1
我認為你應該改變\parskip
,而不是\parsep
。
如果您要提交給使用該類的出版物,elsarticle
最好不要更改印刷作品的佈局,但如果它用於其他用途,請繼續查看是否收到任何投訴。