我尝试使用描述列表实现以下布局
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 方式,比如minipage
在mbox
描述正文中 等。有没有针对这种布局的简单好用的解决方案,谷歌一点帮助都没有……
答案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}