我正在尝试使用考试文档类为我的班级编写考试,出于某种原因,当我使用文档类的参数时,这个特定的考试没有为他们的答案留下空间[noanswers]
。以下是标记:
\documentclass[noanswers]{exam}
% Additional LaTeX Packages
\usepackage{graphicx}
% Font and Typography Settings
\usepackage{beton}
\renewcommand{\bfdefault}{sbc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{euler}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[babel=true]{microtype}
\pagestyle{headandfoot}
\headrule
\firstpageheader{CS 1411 -- Principles of Programming I}
{Exam II}
{Spring 2013}
\runningheader{CS 1411 -- Principles of Programming I}
{Exam II, Page \thepage\ of \numpages}
{Spring 2013}
\begin{document}
\begin{questions}
\question PROBLEM TEXT
\begin{parts}
\part function
\begin{solution}[\stretch{1}]
PART A SOLUTION
\end{solution}
\part PART B
\begin{solution}[\stretch{1}]
PART B SOLUTION
\end{solution}
\end{parts}
\question PROBLEM TEXT
\begin{parts}
\part PART A
\begin{solution}[\stretch{1}]
PART A SOLUTION
\begin{center}
\includegraphics[scale=0.60]{Images/exam-2-problem-2.pdf}
\end{center}
\end{solution}
\part PART B
\begin{solution}[\stretch{1}]
PART B SOLUTION
\end{solution}
\end{parts}
\question PROBLEM TEXT
\begin{solution}[\stretch{1}]
\begin{verbatim}
PYTHON CODE IN VERBATIM MODE
\end{verbatim}
\end{solution}
\end{questions}
\end{document}
通过pdflatex
生成的 PDF,我期望将[answers]
参数用于文档类时会包含解决方案。切换到[noanswers]
只打印问题,没有留下解决方案的空间。任何建议都将不胜感激。