嗨,我对这个文件有两个问题。第一个问题是,我希望每份副本中第 10 题答案的顺序都是随机的。第二个问题是,表格中没有\{bhpword Bonus Points:}
出现奖励积分。你能帮我吗?非常感谢。
\documentclass[addpoints]{exam}
\makeatletter
\newcommand*{\ExamResetAfterFirstRun}{%
\renewcommand*{\PgInfo@write}[1]{}%
\renewcommand*{\label}[1]{\@bsphack\@esphack}%
}
\makeatother
\pointpoints{Punto}{Punti}
\bonuspointpoints{punto (bonus)}{punti (bonus)}
\begin{document}
\newcounter{copynum} % copy number, to be printed in the footer
\newcounter{NumCopy} % how many copies do we want?
\setcounter{NumCopy}{3} % we want 3
\whiledo{\thecopynum<\theNumCopy}{%
\setcounter{page}{1} % start numbering pages for the current copy at 1
\addtocounter{copynum}{1} % the number of the current copy
\setcounter{question}{1} % make questions start at 1 again
\setcounter{part}{1} % make parts start at 1 again
\setcounter{numquestions}{0}
\setcounter{numpoints}{0}
\setcounter{numbonuspoints}{0}
\setcounter{numparts}{0}
\setcounter{numsubparts}{0}
\setcounter{numsubsubparts}{0}
\ifnum\value{copynum}>1 %
\ExamResetAfterFirstRun
\fi
\begin{questions}
\question[1]
Why is there air?
\question[15]
How much wood would a woodchuck chuck if a woodchuck could cuck
wood?
\bonusquestion[1] On what day of the week did he do it?
\bonusquestion[2] What color shirt was he wearing?
\question[10]
Compute $\displaystyle\int_0^1 x^2 \, dx$.
\label{ques:first}
This is the first question.
\question
Page 37
\label{ques:second}
\begin{parts}
\part
\label{part:good}
This is the good part.
\part
\label{part:bad}
This is the \emph{bad} part.
\end{parts}
\question[10]
Is there a question?
\question[10] One of these things is not like the others; one of these
things is not the same. Which one is different?
\begin{checkboxes}
\choice RISPOSTA 1
\choice Paul
\choice George
\choice Ringo
\CorrectChoice Socrates
\end{checkboxes}
\question[10]
Compute \fillwithlines{2in}
\question[20]
\makebox[0.5in]{\hrulefill}
out of a possible \pointsonpage{\thepage} points
%\hrulefill
\end{questions}
% \gradetable[v][questions]
%
%
% \begin{center}
% \bonusgradetable[h][questions]
% \end{center}
%
% \begin{center}
% \combinedgradetable[h][questions]
% \end{center}
\begin{center}
\hqword{Ex}
\hpword{Points}
\bhpword{Bonus Points:}
\htword{\textbf{Total}}
\hsword{Score}
\cellwidth{2.2em}
\gradetable[h][questions]
\end{center}
\begin{center}
\end{center}
}
\end{document}