LaTeX forum ⇒ GeneralPagebreaks and Combining Files

LaTeX specific issues not fitting into one of the other forums of this category.
phoebe
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!

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

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

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: 9204
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.
  1. \clearpage \input{filename} \clearpage

This explains the page breaks you described.


Best regards
Thorsten¹
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

phoebe
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, http://latexforhumans.wordpress.com/.


Return to “General”

Who is online

Users browsing this forum: No registered users and 5 guests