
저는 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
선택 항목도 인쇄하려면 해당 행을 주석 처리하면 됩니다 .