I have several .tex files that I would like to share with other people. I've included in them (with the command \input) several files with macros that I've written myself. However, I would like to send only a self-contained .tex file.

What I need to do is generating another .tex file where the \input command is replaced with the content of the file, pretty much like you would do by calling just the preprocessor in C.

I guess this could be done (relatively) easily with a bit of scripting, but I would like to know if there were a builtin option in a LaTeX compiler.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.