
Есть три проблемы: 1. Все варианты вопроса находятся не просто под вопросом, они перемещаются в следующий столбец. (это можно отсортировать с помощью \vspace \vfill \mbox и т. д.) Есть ли способ, чтобы это можно было контролировать динамически? 2. Интервал между вариантами. Можно ли что-то написать в преамбуле, чтобы интервал можно было зафиксировать. 3. Я хочу определить enumerate как A). Можно ли сделать глобальное определение?
\documentclass[11pt,a4paper,twoside]{book}
\usepackage{multicol}
\begin{document}
\begin{multicols}{2}
\begin{enumerate}
\item
$$\sqrt{9x^2}$$
If $x>0$, which of the following is equivalent to the given expression?\\
\begin{enumerate}
\item[A)] $3x$\\
\item[B)] $3x^2$\\
\item[C)] $18x$\\
\item[D)] $18x^4$\\
\end{enumerate}
\end{enumerate}
\end{multicols}
\end{document}
решение1
Вы можете принять решение об остановке столбца с помощью
\columnbreak
.Вы можете задать расстояние между столбцами, поставив
\setlength\columnsep{10pt}
перед ним точку\begin{multicols}{2}
.10pt
— это значение по умолчанию.Использовать
\renewcommand{\theenumi}{\Alph{enumi}}
. Смотретьэта ветка здесьдля получения подробной информации.
Кроме того, я почти уверен, что вам не понравится, если столбец будет доходить до самого низа страницы, потому что это выглядит некрасиво. Это значит, что вам нужно будет добавить \vspace*{\fill}
прямо перед \columnbreak
.
Это значит, что ваш код будет выглядеть так:
\documentclass[11pt,a4paper,twoside]{book}
\usepackage{multicol}
\renewcommand{\theenumi}{\Alph{enumi}} %putting the numbers as upper-case letters
\setlength\columnsep{10pt} %setting the space between columns
\begin{document}
\begin{multicols*}{2}
\begin{enumerate}
\item
$$\sqrt{9x^2}$$
If $x>0$, which of the following is equivalent to the given expression?\\
\begin{enumerate}
\item[A)] $3x$\\
\item[B)] $3x^2$\\
\item[C)] $18x$\\
\item[D)] $18x^4$\\
\end{enumerate}
\vspace*{\fill} %so it won't justify to the bottom of the page
\columnbreak %telling to go to the next column
\item
$$\sqrt{4y^2}$$
If $y>0$, which of the following is equivalent to the given expression?\\
\begin{enumerate}
\item[A)] $3y$\\
\item[B)] $3y^2$\\
\item[C)] $18y$\\
\item[D)] $18y^4$\\
\item[E)] $2y$\\
\item[A)] $3y$\\
\item[B)] $3y^2$\\
\item[C)] $18y$\\
\item[D)] $18y^4$\\
\item[E)] $2y$\\
\end{enumerate}
\end{enumerate}
\end{multicols*}
\end{document}
Вот результат:
решение2
Если я правильно понял ваш вопрос, то вы после следующего:
С помощью enumitem
пакета вы можете решить проблемы со списками, для других рассмотрите@xport ответ:
\documentclass[11pt,a4paper,twoside]{book}
\usepackage{multicol}
\usepackage{enumitem}
\setlist[enumerate,1]{nosep=0pt,
label=\bfseries\arabic*.,}
\setlist[enumerate,2]{topsep=0pt,
leftmargin=2em,
label=Alph*, % Alph items labels
itemsep=2\baselineskip % set desired distance between items
}
\setlength\columnsep{10pt} %setting the space between columns
\begin{document}
\begin{multicols*}{2}
\begin{enumerate}
\item
\[ \sqrt{9x^2} \]
If $x>0$, which of the following is equivalent to the given expression?\\
\begin{enumerate}
\item[A)] $3x$
\item[B)] $3x^2$
\item[C)] $18x$
\item[D)] $18x^4$
\end{enumerate}
\vfill\null % see https://tex.stackexchange.com/questions/8683/
\columnbreak % telling to go to the next column
\item
\[\sqrt{4y^2}$$
If $y>0$, which of the following is equivalent to the given expression?\\
\begin{enumerate}
\item[A)] $3y$
\item[B)] $3y^2$
\item[C)] $18y$
\item[D)] $18y^4$
\item[E)] $2y$
\item[A)] $3y$
\item[B)] $3y^2$
\item[C)] $18y$
\item[D)] $18y^4$
\item[E)] $2y$
\end{enumerate}
\end{enumerate}
\end{multicols*}
\end{document}