想使用我的回忆录类书中的考试类来添加试卷。

想使用我的回忆录类书中的考试类来添加试卷。

我正在以讲座形式出版一本书。其中每一节都包含概念和问题解决以及作业。最后,有一个包含 6 到 10 个问题的小测验。我有一张使用考试课创建的试卷。如下所示。但我如何在每节后将其添加到我的回忆录课书中。

    \documentclass[compose,addpoints,12pt,answers]{exam}
\pointname{ M}
\boxedpoints % puts a box around.
\pointsinmargin %this puts on the left margin.
\begin{document}

%Title
    \begin{center}
          \fbox{\fbox{\parbox{5.5in}{\centering
                Answer the questions in the spaces provided on the
                question sheets.  If you run out of room for an answer,
                continue on the back of the page. This exam has \numquestions\ questions, for a total of \numpoints\ marks.
           }

          }}

    \end{center}
\vspace{0.1in}
\makebox[\textwidth]{Student Name :\enspace\hrulefill}
\vspace{0.2in}
\makebox[\textwidth]{Batch :\enspace\hrulefill}
\pagestyle{headandfoot}
\runningheadrule
\firstpageheader{LMOP}{\bfseries\Large Similarity Quiz 1(GSQ1)}{28 Nov.2018 }
\runningheader{Math 115}
              {First Exam, Page \thepage\ of \numpages}
              {July 4, 1776}
\firstpagefooter{}{}{}
\runningfooter{}{}{}    

% Print or noprint solutions
\printanswers
%\noprintanswers


\begin{questions}   
\question[10]
    Why is there air?
\question
    What if there were no air?
    \begin{parts}
        \part[5]
        Describe the effect on the balloon industry.
        \part[5]
        Describe the effect on the aircraft industry.
    \end{parts}

\question[20]
    \begin{parts}
        \part
        Define the universe.  Give three examples.
        \part

        If the universe were to end, how would you know?
    \end{parts}

\question[10] This is a multiple type question
        \begin{choices}
            \choice one choice
            \CorrectChoice second choice    
        \end{choices}

\question[5] How many similar triangles are there if altitudes are drawn in a triangle and foot of altitudes are joined. 
    \answerline[6]

\question[10] This is a subjective question
    \begin{solution}
        this is solution    
    \end{solution}



%checkboxes environment
\question[15] This is a check box env \\
    \begin{oneparcheckboxes}
        \choice this 
        \choice second
        \CorrectChoice right one    
    \end{oneparcheckboxes}
\end{questions} 

\begin{center}
  \gradetable[h][questions]
\end{center}

\end{document}

看起来像

Output of above code.

感谢任何指导。

相关内容