枚举环境中项目内的间距问题

枚举环境中项目内的间距问题
\begin{enumerate}
\item This is the first sentence and it doesn't mean anything. This is the first sentence and it doesn't mean anything. This is the first sentence and it doesn't mean anything. This is the first sentence and it doesn't mean anything.
\item This is the second sentence and it doesn't mean anything. This is the second sentence and it doesn't mean anything. This is the second sentence and it doesn't mean anything. This is the second sentence and it doesn't mean anything.
\item This is the third sentence and it doesn't mean anything. This is the third sentence and it doesn't mean anything. This is the third sentence and it doesn't mean anything. This is the third sentence and it doesn't mean anything.
\end{enumerate}

结果如图所示。我正在编写文档,其中我需要统一的 1.5 pt 间距。但在枚举环境中,项目之间我可以得到 1.5 pt 的间距,但在项目本身内我无法得到所需的间距。 在此处输入图片描述

答案1

  • 您没有提供有关您的文档的任何信息(使用的文档类别、页面布局、如何设置行距 1.5 pt 等),以下是针对您的问题的可能解决方案......
  • 通过使用enumitem包删除所有多余的垂直空格,您可以获得:

在此处输入图片描述

正如您所见,所有垂直距离现在都相同......

\documentclass{article}
\usepackage{lipsum}
\usepackage{enumitem}      % <---

\begin{document}
\lipsum[66]
\begin{enumerate}[nosep]   % <---
\item This is the first sentence and it doesn't mean anything. This is the first sentence and it doesn't mean anything. This is the first sentence and it doesn't mean anything. This is the first sentence and it doesn't mean anything.
\item This is the second sentence and it doesn't mean anything. This is the second sentence and it doesn't mean anything. This is the second sentence and it doesn't mean anything. This is the second sentence and it doesn't mean anything.
\item This is the third sentence and it doesn't mean anything. This is the third sentence and it doesn't mean anything. This is the third sentence and it doesn't mean anything. This is the third sentence and it doesn't mean anything.
\end{enumerate}
\lipsum[66]
\end{document}

相关内容