I already include file in main.tex like this:
\documentclass{book}
\begin{document}
\include{chapter1}
\end{document}
how to include a subfile in chapter1.tex like this(or recursive include):
\chapter{chapter1}
\include{subsection}
I already include file in main.tex like this:
\documentclass{book}
\begin{document}
\include{chapter1}
\end{document}
how to include a subfile in chapter1.tex like this(or recursive include):
\chapter{chapter1}
\include{subsection}
In your main.tex, you can use \include{} or \input{}, see this question about their difference.
Because you cannot use the \include in an nested way, you have to use \input in files that are already included (or inputed) themselves.
So you have to change the \include to an \input in your chapeter1.tex.