Possible Duplicate:
Page break with \include

I have got my LaTeX documents split in to several files, but when I input them in to my main document it starts the content on a new page. How can I stop this from happening? Here is what's going on:

In my separate files I start each with:

\subsubsection{Sub-Sub-Section Title}

And in my main document i'm inputting the files by saying:


Is there anyway I can get it to continue on the same page instead of having this page break?

  • 5
    The title says \input, but the question body says \include? – Gonzalo Medina Nov 25 '11 at 19:21
  • Sorry I was originally using \input then tried \include and I had just copied and pasted from my document. I have changed it now. – Dean Nov 25 '11 at 19:24
  • 2
    And it typesets correctly. This question is redundant now. – Dean Nov 25 '11 at 19:28
  • 3
    On an un-related note, a lot of folks put Table captions above the table, and avoid vertical lines. Have a look at the booktabs documentation for more details – cmhughes Nov 25 '11 at 20:11
  • 1
    I have changed the question so that it states \include instead of \input. Otherwise it won't make any sense. I did this because future visitors to this question (with a similar problem) won't understand it otherwise. – topskip Nov 25 '11 at 21:22

Use \input instead of \include.

| improve this answer | |

If you really want this, you can try with:

\def\@include#1 {%
%  \clearpage % This was removed from latex.ltx definition
      \immediate\openout\@partaux #1.aux

However, this will cause problems because the page numbers will probably be wrong when \includeonly-ing some parts of the document.

I wouldn't do that, and stick to \input.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.