Are there a preprocessor for TeX, like for C/C++?
Are there a way to apply a macro to .tex file in order to generate new file? For example, I have macro:
\renewcommand{asd}{some phrase here}
I have a .tex file:
bla-bla \asd bla-bla
I would like to get a new .tex file where all macros are replaced, and it will have this contents:
bla-bla some phrase here bla-bla
TeXitself. – Ian Thompson Sep 02 '14 at 09:58