I am having some difficulty with the expansion of LaTeX. I would like to expand the contents of an \input command before passing them to macro, in a pattern similar to the following:
\outer{\inner}
Essentially, what I would like to do is expand the contents of the macro (\inner) before running the macro (\outer), in a pattern similar to the following:
\macro{\input{../path/to/file.tex}}
The file referenced by the \input command has to be run through \macro in order to run properly, but at present it returns the same error as it would if it had not been run through \macro.
I have been trying to apply a number of expansion methods, but have been unsuccessful. As I understand it, \expandafter\a\b will expand \b before \a. I would like to achieve a similar effect with the contents of a macro.
\StrSubstitutethe contents of an\inputfile. – jessexknight Aug 02 '18 at 17:00