我想将description
环境与IEEEtran
文档类一起使用。其中一个标签实际上很长(三个单词),所以我需要使用它\IEEEsetlabelwidth
来避免文本和标签重叠。显然,它决定了整个文本的缩进,而不仅仅是第一行的文本,所以我得到了一个跨越大量行的细长列。
\begin{description}[\IEEEsetlabelwidth{Very long label}\IEEEusemathlabelsep]
\item[Very long label] this text is spanning over multiple lines. Since the label was very long and the label determined the indent of the text it really covers a large number of lines.
\end{description}
结果如下
Very long label this text is spanning over
multiple lines. Since the
label was very long and
the label determined the
indent of the text it
really covers a large
number of lines.
虽然我想要类似的东西
Very long label this text is spanning over
multiple lines. Since the label was very
long and the label determined the indent
of the text it really covers a large
number of lines.
我对正文没有特别的要求,但如果正文在文档的几个描述中保持一致就更好了(目前情况并非如此)。我曾尝试阅读 IEEEtran 的文档,但我很困惑。
答案1
您可以使用环境;比较和LaTeXdescription
的结果:description
LaTeXdescription
\documentclass{IEEEtran}
\begin{document}
\begin{description}[\IEEEsetlabelwidth{Very long label}\IEEEusemathlabelsep]
\item[Very long label] this text is spanning over multiple lines. Since the label was very long and the label determined the indent of the text it really covers a large number of lines.
\end{description}
\begin{LaTeXdescription}%[\IEEEsetlabelwidth{Very long label}\IEEEusemathlabelsep]
\item[Very long label] this text is spanning over multiple lines. Since the label was very long and the label determined the indent of the text it really covers a large number of lines.
\end{LaTeXdescription}
\end{document}