I think what parent comment was getting at is that you shouldn&#x27;t be generating LaTeX in the first place. Instead use LaTeX macros to pull the data from the source files. Probably easier said than done.