在描述中添加长句的垂直间距

在描述中添加长句的垂直间距

在此处输入图片描述


代码

\documentclass[12pt]{article}

\usepackage{amsmath,amsthm,amssymb,amsfonts}

\usepackage{enumitem}

\begin{document}

\begin{description}

\item [First] This is a short sentence.

\item [Second] This is a very long sentence and eventually it will go to the second line in this item but the vertical space between the first line and the second line is too small that a fraction $\dfrac{p}{q}$, the top of p almost touches the bottom of the previous line

\item [Third] I want too add vertical space in every line in an item but not the space between items 

\end{description}

\end{document}

答案1

你可以用\begin{spacing}{1.5} ... \end{spacing}这个\usepackage{setspace}

您还可以使用包before提供的键enumitem并设置拉伸,如以下代码所示:

\documentclass[12pt]{article}    
\usepackage{enumitem,lipsum}           %% lipsum only for demo    
\usepackage{setspace}

\begin{document}
%\begin{spacing}{1.5}
\begin{description}[before=\setstretch{1.5}]  <<--- here

\item [First] This is a short sentence.

\item [Second] This is a very long sentence and eventually it will go to the second line in this item but the vertical space between the first line and the second line is too small that a fraction $\dfrac{p}{q}$, the top of p almost touches the bottom of the previous line

\item [Third] I want too add vertical space in every line in an item but not the space between items

\end{description}
%\end{spacing}

\lipsum[1]

\end{document}

在此处输入图片描述

相关内容