
複数問の試験を受けるために、私は現在マクエグザムパッケージでは、質問と回答の両方をランダム化できます。回答を 1 行で印刷する必要がありますが、パッケージのドキュメントにはこれが可能かどうかが記載されていません。デフォルトでは、出力は enumitem パッケージで取得されたもののような数値リストです。回答を 1 行で印刷する方法はありますか? ありがとうございます!
MWE:
\documentclass{article}
\usepackage[output=exam, numberofversions=8, version=3, randomizequestions=true,randomizeanswers=true]{mcexam}%
\usepackage[top=10mm,bottom=10mm,inner=10mm,outer=10mm, marginparwidth=20mm, marginparsep=4mm]{geometry}
\begin{document}
\setlist[setmcquestions]{label=\mcquestionlabelfmt{*}.
,ref=\mcquestionlabelfmt{*}
14
,itemsep=.5\baselineskip
,topsep=.5\baselineskip }
\setlist[setmcanswerslist]{label=\mcanswerlabelfmt{*}
,noitemsep}
\setlist[setmcquestioninfo]{before=\footnotesize\sffamily}
\begin{mcquestions}
\question Question 1:
\begin{mcanswerslist}
\answer first answer
\answer second ansewr
\answer third answer
\answer fourth answer
\end{mcanswerslist}
\end{mcquestions}
\end{document}
答え1
最初の方法はパッケージのドキュメントに記載されています (この記事の執筆時点ではサブセクション 2.2 に記載されています)。2 番目の方法は好奇心からテストしてみましたが、短い回答には非常にうまく機能しました。
\documentclass{article}
\usepackage[
output=exam,
numberofversions=8,
version=3,
randomizequestions=true,
randomizeanswers=true]{mcexam}%
\usepackage{multicol}
\begin{document}
\setlist[setmcquestions]{label=\mcquestionlabelfmt{*}.
,ref=\mcquestionlabelfmt{*}
14
,itemsep=.5\baselineskip
,topsep=.5\baselineskip }
\setlist[setmcanswerslist]{label=\mcanswerlabelfmt{*}
,noitemsep}
\setlist[setmcquestioninfo]{before=\footnotesize\sffamily}
\begin{mcquestions}
\question Question 1:
\begin{mcanswers}
\begin{tabular}
{c@{\hskip\tabcolsep}*3{c@{\hskip3\tabcolsep}c@{\hskip\tabcolsep}}c}
\answernum{1}&\answer{1}{first answer} &
\answernum{2}&\answer{2}{second answer} &
\answernum{3}&\answer{3}{third answer} &
\answernum{4}&\answer{4}{fourth answer}
\end{tabular}
\end{mcanswers}
\end{mcquestions}
\begin{mcquestions}
\question Question 1:
\begin{multicols}{4}
\begin{mcanswerslist}
\answer one
\answer two
\answer three
\answer four
\end{mcanswerslist}
\end{multicols}
\end{mcquestions}
\end{document}