begin{document}からend{document}だけを読み込んでくれるコマンドってありますか?
inputで読み込もうとするとbegin{document}とか消さないといけないから面倒で