原来的:
我想要这样:我怎样才能做到?(当我使用 时enumerate
,我没有得到好的结果。)
\documentclass{article}
\usepackage[margin=1.5cm]{geometry}
\usepackage{multicol}
\setlength{\columnseprule}{.4pt}
\setlength{\columnsep}{1.2cm}
\newcommand{\Startex}[1]{%
\noindent
\parbox[t]{\columnwidth}{%
\vspace*{0.9cm}
\setlength{\parskip}{0pt}
\textbf{1.}
#1}
}
\begin{document}
\begin{multicols*}{2}
\Startex{
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
}
\vfill\null
\columnbreak
\Startex{
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
}
\end{multicols*}
\end{document}
答案1
我不太确定您是否想要悬挂缩进。无论如何,我建议您加载包enumitem
并使用包中的一些选项来实现您的格式化目标。
如果你不是想要悬挂缩进,请使用选项
wide=0pt
。相反,如果您确实想要悬挂缩进,请使用选项
left=0pt
。
我还想建议您采用任一类型的设置label=\bfseries\arabic*.
选项。ref=\arabic*
enumerate
\documentclass{article}
\usepackage[margin=1.5cm]{geometry}
\usepackage{multicol,enumitem}
\begin{document}
\begin{multicols}{2}
\begin{enumerate}[wide=0pt,label=\bfseries\arabic*.,ref=\arabic*]
\item text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text \label{aa}
\item text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text \label{bb}
\end{enumerate}
\begin{enumerate}[left=0pt,label=\bfseries\arabic*.,ref=\arabic*,resume]
\item text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text \label{cc}
\item text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text \label{dd}
\end{enumerate}
\end{multicols}
\hrule
\bigskip\noindent
Cross-references to items \ref{bb} and \ref{dd} of the enumerated list.
\end{document}