Hello everyone,
I used Mathematica to generate different parameters for each student in my class for an assignment.
Suppose I have just two students whose IDs are
myStudents = {2222222, 3333333};
I would like to be able to loop over the student IDs to produce either one notebook per student or to export the custom answers for each directly to PDF. Something like
(
CellPrint[Cell["Exercise 1", "Section"]]
Print[myStudent[#]]
---- How? --- Input code for custom answer for exercise 1 evaluated here and printed to a cell
CellPrint[Cell["Exercise 2", "Section"]]
---- How? --- Input code for custom answer for exercise 2 evaluated here and printed to a cell
---- and so on
) & /@ Range[Length[myStudents]]
I get stuck on how to out the results of a calculation for a cell. For example, I use CellPrint[BoxData[ etc.]] to print grids of data to cells but the formatting of the data is lost.
Any tips would be much appreciated,
Gregory
