[texhax] \input versus \include

William F. Adams wadams at atlis.com
Wed Feb 2 19:29:52 CET 2005

On Feb 2, 2005, at 12:11 PM, Browder, Tom wrote:

> First, is there any difference between the two commands (other than the
> ability to selective choose with \includeonly)?
> Lamport (1st ed.), on p. 76, implies that there is when he says, "The
> \include command has one feature that limits its usefulness: the
> included text always stars a new page...."
> But both commands seem to do that.

At a guess, you're \input ing a file which begins with a command which 
starts a new page, say \chapter in a book class.

> So, is there any way to get around the new page when including a file?

Try this:



This is a test

Continuing the test.



test.tex should contain something like:
This is the file test.tex which can be either input or included.


William Adams, publishing specialist
voice - 717-731-6707 | Fax - 717-731-6708

More information about the texhax mailing list