描述:段落作为定义 - 获取多行定义的直左边距

描述:段落作为定义 - 获取多行定义的直左边距

\item[keyword]explanation-that-goes-on-for-several-lines得到:

keyword this is the first line
    this is the second line

但我希望这样

keyword this is the first line
        this is the second line

我也尝试使用表格,但是它根本没有换行!

答案1

您需要确保它\labelwidth足够大以包含列表中最宽的标签。

\documentclass{article}
\begin{document}
\begin{list}{}{}
\item[keyword that is much too long] The quick brown fox jumps over
  the lazy dog. The quick brown fox jumps over the lazy dog. The quick
  brown fox jumps over the lazy dog.
\end{list}
%
\begin{list}{}{\setlength\labelwidth{5cm}\setlength\leftmargin{5cm}\advance\leftmargin by \labelsep}
\item[keyword that is much too long] The quick brown fox jumps over
  the lazy dog. The quick brown fox jumps over the lazy dog. The quick
  brown fox jumps over the lazy dog.
\end{list}
\end{document}

相关内容