带有项目和正文的描述列表位于单独的列中

带有项目和正文的描述列表位于单独的列中

我尝试使用描述列表实现以下布局

Item1     Description of the item where wrapping aligns like this. 
          Should also handle itemize environment in the description body
             * itemize1
             * itemize2
             * itemize3  

Item2     Another description. Another description. Another description.
          Another description. Another description. Another description. 

我尝试过不同的 hack 方式,比如minipagembox描述正文中 等。有没有针对这种布局的简单好用的解决方案,谷歌一点帮助都没有……

答案1

您可以使用enumitem用于格式化并将所有内容嵌套在一个简单的itemize

在此处输入图片描述

\documentclass{article}
\usepackage{enumitem}% http://ctan.org/pkg/enumitem
\begin{document}
\begin{itemize}[font=\bfseries]
  \item[Item1]
    Description of the item where wrapping aligns like this. 
    Should also handle itemize environment in the description body
    \begin{itemize}
      \item itemize1
      \item itemize2
      \item itemize3
    \end{itemize}

  \item[Item2]
    Another description. Another description. Another description. 
    Another description. Another description. Another description.
\end{itemize}

\end{document}​

对于嵌套的项目符号itemize,使用

\begin{itemize}[label=\textbullet]
  %...
\end{itemize}

相关内容