views:

2932

answers:

2

My LaTeX makes me pagebreaks after each subsection because my subsections are in separate files. I use the command \include{file} which adds a pagebreak after the use of it.

I would like to have no pagebreak caused by the use of \include{file}.

How can you no pagebreak after the use of include -command?

+1  A: 

Thank you, Cambridge!

use \include instead of \input, and use the \includeonly command to select sections to process

Masi
+6  A: 

\include always uses \clearpage, a not entirely sensible default. It is intended for entire chapters, not for subsections (why would you want subsections in separate files, anyway?).

You can fix it either by using \input{filename} or loading the newclude package and writing \include*{filename} instead.

Will Robertson
My database project needs Planning document the "Building" document to show how to set up the system. They are sections in my LaTeX -file.
Masi