我正在尝试更正 IEEE 会议的间距要求。我正在使用类IEEEtran
。我只想更改常规段落的间距,而不是小节后的间距。
基本工作代码:
\documentclass[conference]{IEEEtran}
\begin{document}
\section{Ease of Use}
\subsection{Maintaining the Integrity of the Specifications}
The IEEEtran class file is used to format your paper and style the text.
All margins, column widths, line spaces, and text fonts are prescribed; please do not alter them. You may note peculiarities.
For example, the head margin measures proportionately more than is customary.
This measurement and others are deliberate, using specifications that anticipate your paper as one part of the entire proceedings.
\end{document}
上面的图片显示了我想要的间距,下面的图片显示了我从 LaTeX 中得到的间距。我无法更改它以匹配给定的格式。
有人可以帮忙吗?
答案1
如果您确实需要这样做,只需将值更改parskip
为他们要求您执行的操作即可。
\documentclass[conference]{IEEEtran}
\setlength{\parskip}{6pt}
\begin{document}
\section{Ease of Use}
\subsection{Maintaining the Integrity of the Specifications}
The IEEEtran class file is used to format your paper and style the text.
All margins, column widths, line spaces, and text fonts are prescribed; please do not alter them. You may note peculiarities.
For example, the head margin measures proportionately more than is customary.
This measurement and others are deliberate, using specifications that anticipate your paper as one part of the entire proceedings.
\end{document}
更新:
根据下面的 OP 评论,有两种可能的解决方案。最简单的方法是\medskip
在两个段落之间添加 ,而不更改\parskip
值,如下所示:
\documentclass[conference]{IEEEtran}
\begin{document}
\section{Ease of Use}
\subsection{Maintaining the Integrity of the Specifications}
The IEEEtran class file is used to format your paper and style the text.
All margins, column widths, line spaces, and text fonts are prescribed; please do not alter them. You may note peculiarities.
\medskip % <------- HERE
For example, the head margin measures proportionately more than is customary.
This measurement and others are deliberate, using specifications that anticipate your paper as one part of the entire proceedings.
\end{document}
作为另一种选择,您可以使用包并使用s、s、s 等titlesec
周围的间距。section
subsection
subsubsection
\documentclass[conference]{IEEEtran}
\setlength{\parskip}{6pt}
\newcommand{\subparagraph}{} % <--- define a subparagraph because ieeetran doesn't have it
\usepackage{titlesec}
\titlespacing{\section}{0pt}{2.0ex plus .5ex minus .2ex}{\dimexpr1.0ex-6pt plus .2ex}
\titlespacing{\subsection}{0pt}{2.0ex plus .5ex minus .2ex}{\dimexpr1.0ex-6pt plus .2ex}
\titlespacing{\subsubsection}{0pt}{\dimexpr2.0ex-6pt plus .5ex minus .1ex}{0pt}
\begin{document}
\section{Ease of Use}
\subsection{Maintaining the Integrity of the Specifications}
The IEEEtran class file is used to format your paper and style the text.
All margins, column widths, line spaces, and text fonts are prescribed; please do not alter them. You may note peculiarities.
\medskip
For example, the head margin measures proportionately more than is customary.
This measurement and others are deliberate, using specifications that anticipate your paper as one part of the entire proceedings.
\end{document}