I have a document like this:
\documentclass{article}
\begin{document}
\include{sect1}
\include{sect2}
\end{document}
Both files sect1.tex and sect2.tex begin with \section{...}
. The output pdf file displays section 1 and section 2 on two different pages even though section 1 only occupies about 10 lines in the first page. Is there any way I can force section 2 to start right after section 1 one the same page?
include
instead of put them inside the body of the document? I use\include
with big documents such as books and the most of times with chapters not sections.\input
instead of\include
.\include
inserts a\clearpage
, which creates a pagebreak.