如何转到开始描述的下一行

如何转到开始描述的下一行

我怎样才能使一行太长时转到下一行?

答案1

为了确保描述标签可以跨越多行,您可以使用包unboxed提供的样式enumitem

在此处输入图片描述

\documentclass{article}
\usepackage{enumitem}

\begin{document}
\begin{description}[style=unboxed]
\item[description] here is the description of the label
\item[this is a very long description label this is a very long description label ] here is the description of the label here is the description of the label here is the description of the label
\end{description}
\end{document}

答案2

两种解决方案可能更适合您实际想要实现的目标。只需使用 itemize 或使用段落即可:

\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{itemize}[label={}]
\bfseries
\item An extremely long description that is written in bold and so on which is long enough to wrap properly
\item Another item
\end{itemize}

Or you could just use paragraphs:

\paragraph{A very long item with lots of words in it and so on and then some normal text}

This text is normal
\end{document}

相关内容