TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

marked as duplicate by Joseph Wright Dec 1 '11 at 21:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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
And it typesets correctly. This question is redundant now. – Dean Nov 25 '11 at 19:28
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
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
up vote 18 down vote accepted

Use \input instead of \include.

share|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.

share|improve this answer

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