Exams/problem sets with individual student names in LaTeX

Usually my exams have a large blank space for students to write their names in.

If, instead, I wanted to generate individualised exams with their names printed in that space, this code will do that for you. It uses the pgffor package to loop over the list of names you provide.

\def\classlist{Enda Hargaden,
George Akerlof,
Joe Stiglitz,
Don Bruce}
\foreach \studentname in \classlist{

Econ 381 Problem Set: \studentname's Copy

\item What is OLS?
\item What's the square root of 25?
\item More questions yadda yadda



Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top