使用 AMC 套餐避免重复问题

使用 AMC 套餐避免重复问题

我正在尝试编写一个 Latex 源文件来创建我在 AMC 的第一次考试。但是,我的 Latex 文件生成的副本中有重复的问题,我无法通过阅读官方手册找到解决该问题的方法。如果有人能帮助我,我将不胜感激。提前致谢!

我的 MWE 是:

\documentclass[a4paper]{article}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{automultiplechoice} 

\begin{document} 

\setdefaultgroupmode{withoutreplacement} %I thought this could solve the problem!?

\begin{examcopy}[10] 
\cleargroup{finalgroup} 

\element{group01}{
\begin{question}{group01q01} Analysis
    \begin{choices} 
        \correctchoice{Correct choice}
        \wrongchoice{Wrong choice (1)}
        \wrongchoice{Wrong choice (2)}
        \wrongchoice{Wrong choice (3)}
    \end{choices}
\end{question}
}

\element{group01}{
\begin{question}{group01q02} Algebra
    \begin{choices} 
        \correctchoice{Correct choice}
        \wrongchoice{Wrong choice (1)}
        \wrongchoice{Wrong choice (2)}
        \wrongchoice{Wrong choice (3)}
    \end{choices}
\end{question}
}

\element{group01}{
\begin{question}{group01q03} Geometry
    \begin{choices} 
        \correctchoice{Correct choice}
        \wrongchoice{Wrong choice (1)}
        \wrongchoice{Wrong choice (2)}
        \wrongchoice{Wrong choice (3)}
    \end{choices}
\end{question}
}

\shufflegroup{group01} 
\copygroup[2]{group01}{finalgroup} 

\element{group02}{
\begin{question}{group02q01} Verbs
    \begin{choices} 
        \correctchoice{Correct choice}
        \wrongchoice{Wrong choice (1)}
        \wrongchoice{Wrong choice (2)}
        \wrongchoice{Wrong choice (3)}
    \end{choices}
\end{question}
}

\element{group02}{
\begin{question}{group02q02} Pronouns
    \begin{choices} 
        \correctchoice{Correct choice}
        \wrongchoice{Wrong choice (1)}
        \wrongchoice{Wrong choice (2)}
        \wrongchoice{Wrong choice (3)}
    \end{choices}
\end{question}
}

\element{group02}{
\begin{question}{group02q03} Adjectives
    \begin{choices} 
        \correctchoice{Correct choice}
        \wrongchoice{Wrong choice (1)}
        \wrongchoice{Wrong choice (2)}
        \wrongchoice{Wrong choice (3)}
    \end{choices}
\end{question}
}

\shufflegroup{group02} 
\copygroup[2]{group02}{finalgroup} 

\shufflegroup{finalgroup}
\insertgroup{finalgroup}

\end{examcopy}
\end{document}  

答案1

我的错误是关于文档说明的顺序。在文档的开头,我们写道

\setdefaultgroupmode{withoutreplacement}

确实如此。然后,我们描述“基础”组。只有在编写完所有组后,我们才开始“examcopy”环境,在该环境中,我们创建“最终组”,对组进行洗牌,将问题从基础组转移到最终组并插入最终组,即问卷。

相关内容