I'm preparing a Resume using LaTeX, mainly for the purpose of easy customization. In particular, I wish to be able to generate different outputs from the same input file by changing a few parameters.
One such requirement is: specific chunks of text have to be chosen according to one of the input parameters ("dev"/"training"/"generic"). I can have the chunks of text appropriate to each parameter in a separate .tex file ("dev_summary.tex", "training_summary.tex", etc.) and \input them according to the parameter. I've currently implemented this with:
\newcommand{\whoami}[1]{trainer#1}
and later
\input{\whoami{_summary.tex}}
Now I just have to change the string "trainer" in the newcommand line whenever I want to change the first parameter. However, is there a better way where I can keep this file unedited and instead pass this change as a commandline argument?