我怎样才能使一行太长时转到下一行?
答案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}