I work as a statistican for a high school. One of my responsibilities is to generate performance reports for every teacher in the school, based on how well students evaluate them. I use LaTeX to generate the reports. There are 31 teachers in this high school, and for each of them the report is exactly the same except for two things:
1) Their names, and 2) their personal results.
As one can imagine, going through 31 LaTeX files and manually substituting names throughout 5 page documents is annoying, boring, and time-consuming. SO what I'm really looking for is a LaTeX "function" that does step 1 for me. Sort of like a macro.
Something that looks like this
report_generator(Adrian) report_generator(Miller) report_generator(Ifeanyi) ...
And then the names would be substituted throughout the entire document. So I'd do this 31 times, generate 31 LaTeX code files corresponding to 31 teachers, and then only substitute each teacher's personal results