我正在尝试将答案应用到这个问题上问题超负荷考试随机选择 oneparchoices
环境;我希望 oneparchoices 能够均匀分布在可用的水平空间中。但是,当我尝试这样做时,格式表现得出乎意料。我认为这exam-randomizechoices 文档的一部分可能对解决这个问题至关重要。我没有在技术层面上使用 latex 的经验。此外,还有其他方法可以实现相同的效果吗?
\documentclass[11pt]{exam}
\usepackage[margin=1in]{geometry}
\usepackage{xpatch}
\xpatchcmd{\oneparchoices}{\penalty -50\hskip 1em plus 1em\relax}{\hfill}{}{}% must be altered before loading exam-randomizechoices
\usepackage[overload]{exam-randomizechoices}
\setrandomizerseed{314}
%
% other potential options?
% https://muug.ca/mirror/ctan/macros/latex/contrib/exam-randomizechoices/exam-randomizechoices-doc.pdf#page=18
\begin{document}
\noindent All questions should have evenly spaced multiple choice answers that take up all horizontal spacing.
\begin{questions}
\question
vanilla oneparchoices (works fine):\par
\begin{oneparchoices}[norandomize]
\CorrectChoice First
\choice Second
\choice Third
\choice Fourth
\end{oneparchoices}
\question
exam-randomizechoices oneparchoices (unexpected behavior):\par
\begin{oneparchoices}
\CorrectChoice First
\choice Second
\choice Third
\choice Fourth
\end{oneparchoices}
\end{questions}
\end{document}