I wrote two simple files integrated using the standalone package:
main.tex:
\\documentclass{article} \\usepackage[subpreambles]{standalone} \\begin{do