
Exam クラスを使用して多肢選択式の試験を作成していますが、回答の選択肢を印刷せずに試験を印刷できるようにしたいと考えています。現時点では、各質問の から までのすべてを手動でコメント アウトしています\begin{choices}
。\end{choices}
これをより効率的に行う方法を提案していただけますか?
MWE は次のとおりです。
\documentclass[letterpaper,12pt,addpoints]{exam}
\title{MWE}
\begin{document}
\maketitle
\begin{questions}
\question What is your favorite color?
\begin{choices}
\CorrectChoice Green
\choice Yellow
\choice Red
\end{choices}
\end{questions}
\end{document}
答え1
パッケージを使用しますcomment
:
\documentclass[letterpaper,12pt,addpoints]{exam}
\usepackage{comment}
\excludecomment{choices}
\title{MWE}
\begin{document}
\maketitle
\begin{questions}
\question What is your favorite color?
\begin{choices}
\CorrectChoice Green
\choice Yellow
\choice Red
\end{choices}
\end{questions}
\end{document}
\excludecomment
選択肢も印刷するには、その行をコメントアウトするだけです。