LaTeX forum ⇒ GeneralPagebreaks and Combining Files

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

Pagebreaks and Combining Files

Postby phoebe » Thu Jan 22, 2009 9:23 pm

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!

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

Postby marco_d » Thu Jan 22, 2009 9:32 pm


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

i am German. I can not use difficult words. :-)

User avatar
Site Moderator
Posts: 9203
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Thu Jan 22, 2009 9:44 pm

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

This explains the page breaks you described.

Best regards
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

Posts: 4
Joined: Thu Jan 22, 2009 9:02 pm

Postby phoebe » Sun Jan 25, 2009 7:02 pm

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,

Return to “General”

Who is online

Users browsing this forum: No registered users and 9 guests