我正在使用包准备一些测试问题enumitem
。我在这里找到了 MWE 这个 4 年前的问题,并对其进行了稍微修改。
\documentclass{article}
\usepackage{amsmath}
\usepackage{enumitem}
\usepackage{multicol}
\newlist{choices}{enumerate}{1}
\setlist[choices]{label*=(\Alph*)}
\newcommand{\choice}{\item}
\SetEnumitemKey{twocol}{
before=\raggedcolumns\begin{multicols}{2},
after=\end{multicols}}
\SetEnumitemKey{threecol}{
before=\raggedcolumns\begin{multicols}{3},
after=\end{multicols}}
\begin{document}
Which fractions are reduced (one column)?
\begin{choices}
\choice long answer long answer long answer
\choice $\dfrac{8}{24}$
\choice $\dfrac{44}{121}$
\choice $\dfrac{9}{11}$
\end{choices}
Which fractions are reduced (two columns)?
\begin{choices}[twocol]
\choice long answer long answer long answer
\choice $\dfrac{8}{24}$
\choice $\dfrac{44}{121}$
\choice $\dfrac{9}{11}$
\end{choices}
Which fractions are reduced (three columns)?
\begin{choices}[threecol]
\choice long answer long answer long answer
\choice $\dfrac{8}{24}$
\choice $\dfrac{44}{121}$
\end{choices}
\end{document}
我的问题是 - 如何获得合适宽度的列? 长答案不应该被打破。 我已经阅读了手册enumitem
,但仍然没有主意。 请问有什么建议吗?