I am writing a book, the format goes like this: Theory -> Answer key -> Hints -> Solutions. I have separate tex files for theory, answer key, hints and solutions. The problem is that when I combine all of them by using \include, I am getting automatic page break which I don't want. How can I avoid it?
I am attaching a screenshot for better understanding.
Thanks.

\inputinstead.\include's support for\includeonlyneeds the page break to function properly – daleif Jan 09 '21 at 05:36