如何才能使 IEEEtran 的描述中的缩进更小一些?

如何才能使 IEEEtran 的描述中的缩进更小一些?

我想将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的结果:descriptionLaTeXdescription

\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}

在此处输入图片描述

相关内容