
すべての質問のポイントが同じになるように、個々の質問のポイントを手動で変更することは可能ですか?
に特定のポイントを割り当てたくありませんか\question[]
?
合計ポイントを強制する方法はわかっていますが、すべての質問のすべてのポイントを手動で同じポイントに変更する方法についての情報が見つかりません。
私のMWE
\documentclass[addpoints]{exam}
\begin{document}
\begin{questions}
\question This is Q1 with no marks.
\question This is Q2 with no marks.
\question This is Q3 with no marks.
\end{questions}
\settabletotalpoints{3}\gradetable % I know how to change the total points in a grade table.
\end{document}
答え1
によるパッケージマニュアル各質問のポイントの表示をフォーマットできます。Q1 にはポイントが表示されていないので、1 ポイントを割り当てたいと考えているようです。そのため、空の を使って削除しましょう\pointformat{}
。各質問に 1 ポイントを割り当てたので、合計ポイント テーブルを手動で更新する必要がなくなりました。
さらに、ポイントカウンターを戻す方法を説明する4番目の質問を追加しました。パッケージマニュアル、26ページ以降。希望に応じてポイント表示をフォーマットする方法を確認します。
コードは次のとおりです:
\documentclass[addpoints]{exam}
\begin{document}
\begin{questions}
\pointformat{}
\question[1] This is Q1 with no marks.
\question[1] This is Q2 with no marks.
\question[1] This is Q3 with no marks.
\pointformat{\fbox{\thepoints}}
\question[4] This is Q4 with marks.
\end{questions}
\gradetable % I know how to change the total points in a grade table.
\end{document}
そして、それは次のようになります:
もしあなたが決めかねているなら、マークなし変数をプレースホルダーとして使用できます。
\documentclass[addpoints]{exam}
\begin{document}
\newcommand{\nopoints}{1}
\begin{questions}
\pointformat{}
\question[\nopoints] This is Q1 with no marks.
\question[\nopoints] This is Q2 with no marks.
\question[\nopoints]
\pointformat{\fbox{\thepoints}}
\question[4] This is Q4 with marks.
\end{questions}
\gradetable
\end{document}