\documentclass[main.tex]{subfiles}
\begin{document}
\chapter{sub1: Hello World}
Message from sub1.tex.

\end{document}

