Only first paper on DOC-Sujet is populated with questions. What is wrong?

Added by Paco Riviere 6 months ago

This is my fist real test with students after dedicating a lot of time to understand how amc works.
I now have my test ready and try to build 60 papers.
The point is only the first one is populated with questions on DOC-Sujet.pdf
All the rest have just a heading.
I try to pull 20 different questions for each student, from 10 groups, shuffle questions and answers.
Can you please point what I am doing wrong?
This is my setup on source.tex (LaTeX):

(Load necessary packages))
...
\begin{document}
(Some \AMCtext here)
\scoringDefaultS{b=1,m=-1/N}
...
\onecopy{}{
(heading code) it prints as expected, includes a \namefield...
\AMCrandomseed{1237893}

All the questions (64) here in the way:
\element{group1} %% There are 12 groups like this
(question, choices, etc. until question 64)

\cleargroup{all}
\insertgroup1{group1}{all}
(.. this way until group12)
\insertgroup{all}

\AMCaddpagesto{2}
}

On the gui I choose Number of papers: 58
And click Update papers.

Result: I get a pdf with 60 papers.
The first one is populated with 20 questions, the other 59 are blank, except for the heading


Replies (4)

RE: Only first paper on DOC-Sujet is populated with questions. What is wrong? - Added by Alexis Bienvenüe 6 months ago

Note that the code inside \onecopy will be replicated for each student copy. So that eg. \AMCrandomseed and \element should be placed before it.
\insertgroup[n]{groupname} has only one argument.
Please provide a minimal complete source file so we can have a close look.

RE: Only first paper on DOC-Sujet is populated with questions. What is wrong? - Added by Paco Riviere 6 months ago

Minimal source.tex

On the gui I choose Number of papers: 4
And click Update papers.

Result: I get a pdf with 4 papers.
The first one is populated with 2 questions, the other 3 are blank, except for the heading,

source.tex (5.5 kB)

RE: Only first paper on DOC-Sujet is populated with questions. What is wrong? - Added by Alexis Bienvenüe 6 months ago

You must move the four \element calls that fills your two groups before \begin{examcopy}

RE: Only first paper on DOC-Sujet is populated with questions. What is wrong? - Added by Paco Riviere 6 months ago

Thanks Alexis.
It works.

I have tried this but crashed due to another reason.
An accent on a group name.

(1-4/4)