I need to make 10 different versions of a test for a very large cohort of students. I could use mailmerge for this, but I wonder if there are any alternatives which might suit my needs better?

For example, test 1 might have

\int_0^1 x e^{x^2}\,dx

and test 2 (for the same question) might have


and so on. Clearly I would need to set up some sort of external file containing all the variations, and have that read into the main file, to produce the different tests. What is the best way of doing this?


Browse other questions tagged or ask your own question.