下划线下方的空格

下划线下方的空格

如何在下划线行和下一行之间添加一些空格? 在此处输入图片描述

\item \underline{Long line of text underlined to demonstrate:} \\
This is too close to the above underline and it's a bit hard to read .

答案1

一种方法是提供可选参数\\,或使用选项enumitem控制间距parsep=

在此处输入图片描述

代码:

\documentclass{article}
\usepackage{soul}
\usepackage{enumitem}

\begin{document}
\begin{itemize}
    \item \ul{Long line of text underlined to demonstrate:} \\[2.0ex]
    This was too close to the above underline but now it is not.
\end{itemize}

\begin{itemize}[parsep=2.0ex]
    \item \ul{Long line of text underlined to demonstrate:}
    
    This was too close to the above underline but now it is not.
\end{itemize}
\end{document}

相关内容