GeneralPagebreaks and Combining Files

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
phoebe
Posts: 4
Joined: Thu Jan 22, 2009 9:02 pm

Pagebreaks and Combining Files

Post by phoebe »

I have several different .tex files that I wish to include in a source file. This works correctly using the \include command.

However what this means is that in the output PDF, each component file starts on a new page and ends with a \clearpage. So there are huge blank gaps between my different bits of text.

How can I combine my component files without any pagebreaks between them? I'd appreciate any suggestions on how to override the pagebreak command, or any ideas on alternatives to using \include.

Thank you!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

marco_d
Posts: 57
Joined: Tue Jan 20, 2009 7:49 pm

Re: Pagebreaks and Combining Files

Post by marco_d »

Hello,

you can use the command input. This command put the code without formatting into the source file.

Marco
i am German. I can not use difficult words. :-)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Pagebreaks and Combining Files

Post by localghost »

As an addition to the remarks of Marco you should know that the \include command internally is a sequence of commands.

Code: Select all

\clearpage \input{filename} \clearpage
This explains the page breaks you described.


Best regards
Thorsten¹
phoebe
Posts: 4
Joined: Thu Jan 22, 2009 9:02 pm

Re: Pagebreaks and Combining Files

Post by phoebe »

Thank you to everyone who replied to my question. Your posts have been a great help and my problem is solved.

I've acknowledged the help I've received from this forum on my blog, http://latexforhumans.wordpress.com/.
Post Reply