\documentclass{standalone} \usepackage{standalone} \begin{document} A \input{a/b/b} \end{document}