我正在尝试将选项列表置于枚举列表环境中的中心。像这样,
\usepackage{enumerate}
\begin{document}
\begin{enumerate}
\item Which of the following statements is true?
\begin{center}
\begin{enumerate} [I.]
\item Statement the first.
\item Statement the second.
\item Statement the third.
\end{enumerate}
\end{center}
\end{enumerate}
\end{document}
但是,环境center
什么也没做。我也尝试过将center
上面的环境嵌入到中minipage
,但这也没有起到什么作用。
我的目标是让它看起来像你在 SAT 上看到的那样,其中语句居中,但其他内容都左对齐。有什么想法吗?
答案1
我不知道 SAT 是什么样子的,但我猜你想要的是
\documentclass{article}\usepackage{enumerate}
\begin{document}
\begin{enumerate}
\item Which of the following statements is true?
\begin{center}
\begin{minipage}{.4\textwidth}
\begin{enumerate} [I.]
\item Statement the first.
\item Statement the second.
\item Statement the third.
\end{enumerate}
\end{minipage}
\end{center}
\end{enumerate}
\end{document}
或者在评论中有人建议您指的是下面的第二个例子:
\documentclass{article}\usepackage{enumerate}
\begin{document}
\begin{enumerate}
\item Which of the following statements is true?
\begin{center}
\begin{minipage}{.4\textwidth}
\begin{enumerate} [I.]
\item Statement the first.
\item Statement the second a bit longer.
\item Statement the third.
\end{enumerate}
\end{minipage}
\end{center}
\end{enumerate}
\begin{enumerate}
\item Which of the following statements is true?
\begin{enumerate} [I.]\centering
\item Statement the first.
\item Statement the second a bit longer.
\item Statement the third.
\end{enumerate}
\end{enumerate}
\end{document}