Hello all,
I'm trying to create a series of macros that will automatically generate a quiz for a student based upon their past performance on similar quizzes. I've defined a command \grade{student name}{concept number} that gives out a student's grade on the given concept without problem. For instance \grade{Taybra}{3} prints as "2". I then defined a command to give the corresponding quiz thusly:
I'd appreciate any advice on how to fix this problem, even if the advice is that this is a totally impractical way to approach my goal and I should be doing something else entirely.
The \ifthenelse tests and thus \grade are unexpandable. Try to get rid of the tests and to use a different structure. The following might serve as a starting point.
Wonderful! Not only does it work, this is a much more economical solution for \grade. I will have to explore this etoolbox package fully. Thank you so much!