![在描述中添加长句的垂直间距](https://linux22.com/image/319968/%E5%9C%A8%E6%8F%8F%E8%BF%B0%E4%B8%AD%E6%B7%BB%E5%8A%A0%E9%95%BF%E5%8F%A5%E7%9A%84%E5%9E%82%E7%9B%B4%E9%97%B4%E8%B7%9D.png)
代码
\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}