控制描述环境项

控制描述环境项

我有一个很长的描述项,超出了页面边界。我该如何控制该项?例如,如何让“非常长的...描述”变成两行?

在此处输入图片描述

\documentclass[12pt]{article}
\begin{document}
    \begin{description}
    \item[RC 1: Very long long long long long long long long long long long Description ] 
    The contents come here. 

    \item[RC 2: Bloomier Filters as Context Summaries] The contents come here.  
    \end{description}
\end{document}

答案1

您可以使用nextlineunboxed中的样式enumitem。插图:

\documentclass[12pt]{article}

\usepackage[showframe]{geometry}

 \usepackage{enumitem}

\begin{document}

    \begin{description}[style=nextline]
    \item[RC 1: Very long long long long long long long long long long long long long Description ]
    The contents come here.

    \item[RC 2: Bloomier Filters as Context Summaries] The contents come here.
    \end{description}

    \begin{description}[style=unboxed]
    \item[RC 1: Very long long long long long long long long long long long Description ]
    The contents come here.

    \item[RC 2: Bloomier Filters as Context Summaries] The contents come here.
    \end{description}

\end{document} 

在此处输入图片描述

相关内容