将项目分成两列

将项目分成两列

我必须创建一个包含 5 项的练习列表:

(A)

(二)

(C)

(四)

(五)

但我希望它能“节省纸张空间”,像这样呈现它:

(a)[空格](d)

(b)[空格](e)

(C)

其中 [space] 当然由 Latex 自动控制。

请问我该怎么做?(有时会有 20 个项目,而不是 5 个)

谢谢!

答案1

这可以很容易地解决多色包。以下是您的文档:

\documentclass{report}

 \usepackage{multicol} % package to use the multicols environment.
 \usepackage{enumitem} % package to modify to enumerate environment to produce (a), (b), ... items.
 \begin{document}

 \begin{multicols}{2} %2 refers to the numbers of columns.
  \begin{enumerate}[label=(\alph*)]
   \item exercise 1
   \item exercise 2
   \item exercise 3
   \item exercise 4
   \item exercise 5
   \item exercise 6
   \item exercise 7
   \item exercise 8
   \item exercise 9
   \item exercise 10
   \item exercise 11
   \item exercise 12
   \item exercise 13
   \item exercise 14
   \item exercise 15
   \item exercise 16
   \item exercise 17
   \item exercise 18
   \item exercise 19
   \item exercise 20
  \end{enumerate}
 \end{multicols}


\end{document}

输出如下:上述 .tex 文件的输出

我希望这回答了你的问题。

最好的,

克拉克

答案2

tasks下面是使用另一种编号方案的示例:

\documentclass{article}

\usepackage[utf8]{inputenc}
\usepackage{etoolbox} 
\usepackage{tasks}
\AtBeginEnvironment{tasks}{\everymath{\displaystyle}}
\settasks{counter-format=(tsk[a]),label-width=1.5em}
\newcommand*{\dd}{\mathop{}\!\mathrm{d}}

\begin{document}

\noindent Solve the following equations:
\begin{tasks}(2)
\task $\int \frac{x-2}{x+2}\dd x$
 \task A very very long equation $2$, spreading over two lines.
 \task* Equation $3$ is a still longer equation, spreading over two columns
\task Equation $4$ is another equation
 \task Equation $5$
 \task Equation $6$
\end{tasks}

\end{document} % 

在此处输入图片描述

相关内容