每个问题的评分表?

每个问题的评分表?

我们正在编写一份包含 5 道题目的考试。每道题目应单独列出,并由参与考试的每位老师进行批改。为了简化流程,我想在每道题目前显示一个成绩表。

可以exam显示子等级表只显示下一个问题点?

\documentclass[a4paper,addpoints]{exam}
\begin{document}
\title{Exam}
\author{John Doe}    
\begin{coverpages}
    \maketitle
    \thispagestyle{empty}        
    % Gradetable for all questions
    \begin{center}
        \gradetable
    \end{center}
\end{coverpages}

\begin{questions}

% Gradetable for this question only
\question[10] What is the answer to everything?
\begin{solutionordottedlines}[1cm]
42
\end{solutionordottedlines}    
\newpage
% Gradetable for this question only
\question[10] Do you know foo
\begin{solutionordottedlines}[1cm]
yes
\end{solutionordottedlines}

\end{questions}
\end{document}

答案1

尝试一下这个代码。

埃

F

您可以通过选择标记范围的名称(例如“myrange”)来定义放码范围,然后将命令放在 \begingradingrange{myrange}范围的开头,将命令\endgradingrange{myrange} 放在范围的结尾。

\partialgradetable{myrange}[v][questions]将创建一个垂直分级的表格,该表格由范围内的问题索引。

(请参阅考试文档类 2.7 版用户指南,第 90 页)

\documentclass[a4paper,addpoints]{exam}

\begin{document}
    \title{Exam}
    \author{John Doe}    
    \begin{coverpages}
        \maketitle
        \thispagestyle{empty}        
        % Gradetable for all questions
        \begin{center}
            \gradetable
        \end{center}
    \end{coverpages}
    
    \partialgradetable{questioni}[v][questions] \vspace*{10ex}% added <<<<<<<<<<<<
    
    \begin{questions}   
    % Gradetable for this question only
    \begingradingrange{questioni} % added <<<<<<<<<<<<
        \question[10] What is the answer to everything?
        \begin{solutionordottedlines}[1cm]
        42
        \end{solutionordottedlines} 
    \endgradingrange{questioni}    % added <<<<<<<<<<<<
        
    \newpage
    
    \partialgradetable{questionii}[v][questions]  \vspace*{10ex}
        
    % Gradetable for this question only
    \begingradingrange{questionii}
        \question[10] Do you know foo
        \begin{solutionordottedlines}[1cm]
        yes
        \end{solutionordottedlines}
    \endgradingrange{questionii}
    
    \newpage
    \partialgradetable{questioniii}[v][questions] \vspace*{10ex}    
        
    % Gradetable for this question only
    \begingradingrange{questioniii}     
        \question[10] Do you know foo
        \begin{solutionordottedlines}[1cm]
        yes
        \end{solutionordottedlines}
        
        \question[10] Do you know bar
        \begin{solutionordottedlines}[1cm]
        yes
        \end{solutionordottedlines}
        
        \question[10] Do you know baz
        \begin{solutionordottedlines}[1cm]
        no
        \end{solutionordottedlines} 
    
    \endgradingrange{questioniii}
    
    \end{questions}

\end{document}

相关内容