Suppose I have two tex files, document.tex and content.tex
document.tex:
\documentclass{article}
\begin{document}
This is some content.
\input{content.tex}
\end{document}
content.tex:
This is some more content.
Compiling with pdflatex document.tex produces the expected document as pdf. However, I'd like to create a new standalone tex file, that would look like this:
\documentclass{article}
\begin{document}
This is some content.
This is some more content.
\end{document}
I'm almost sure there must be a standard tool to do this, but I wasn't able to find anything.
latexpanddoes exactly what I was looking for. Thank you! – karpfen Feb 01 '21 at 10:17