multicol
这是一个 MWE,用于在不中断的环境中尝试一列内容。
\documentclass{memoir}
\usepackage{multicol}
\begin{document}
\begin{multicols}{2}
\begin{enumerate}
\item Two columns content
\item Two columns content
\item Two columns content
\item Two columns content
\item Two columns content
\item Two columns content
\item Two columns content
\end{enumerate}
\end{multicols}
\begin{multicols}{1}
\begin{enumerate}
\item This item should spanned in one column to look better
\item This item also should spanned in one column to look better
\item Again an item to be spanned in one column
\item Again an item to be spanned in one column
\item Again an item to be spanned in one column
\end{enumerate}
\end{multicols}
\end{document}
我要这个:
但我得到了这个:
答案1
我假设,文档中的文本位于一列中,而您希望将一些列表放在两列(或更多列)中。如果我是对的,那么在您的文档示例中,您只需删除{multicols}{1}
环境即可。
编辑:据我所知, 软件包memoir
不支持连续列表中的连续编号。但是,可以使用软件包轻松完成,如以下更正后的 MWE 中所示:enumerate
enumitem
\documentclass{memoir}
\usepackage{multicol}
\usepackage{enumitem}
\begin{document}
\begin{multicols}{2}
\begin{enumerate}[series=twocolumn]
\item Two columns content
\item Two columns content
\item Two columns content
\item Two columns content
\item Two columns content
\item Two columns content
\item Two columns content
\end{enumerate}
\end{multicols}
\begin{enumerate}[resume*=twocolumn]
\item This item should spanned in one column to look better
\item This item also should spanned in one column to look better
\item Again an item to be spanned in one column
\item Again an item to be spanned in one column
\item Again an item to be spanned in one column
\end{enumerate}
\end{document}