How to get a fixed number of pages per exam

Added by Joost Schalken-Pinkster over 9 years ago

Hi,

I am using you wonderful software for my exams, but I am running into a little practical problem: due to randomization of the order of questions, the number of pages in different versions of the same exam is not always the same...

However, my printer would be able to automatically staple my prints if the amount of pages is the same for each exam.

Is there a way to make each exam the same number of pages, by padding white pages at the end if required?

Thanks in advance for your reply.


Replies (1)

RE: How to get a fixed number of pages per exam - Added by Alexis Bienvenüe over 9 years ago

There is no problem if you print from AMC, since AMC splits the subject file before sending the printing jobs.
However, you can add the following line at the end of your subject description (inside onecopy/examcopy) to get for exemple 5 pages per copy:

\loop\ifnum\thepage<5\clearpage ~\repeat

(1-1/1)