Donate

You find LaTeX Community useful? Please donate! Learn why!

Amount:

Partner Sites

goLaTeX
TeXblog
TeXnicCenter

Who is online

In total there are 7 users online :: 1 registered, 0 hidden and 6 guests (based on users active over the past 5 minutes)
Most users ever online was 74 on Wed Dec 02, 2009 5:14 pm

Users browsing this forum: Google [Bot] and 6 guests
logo-contest

Pagebreaks and Combining Files

LaTeX specific issues not fitting into one of the other forums of this category.

Pagebreaks and Combining Files

Postby phoebe on Thu Jan 22, 2009 8: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!
phoebe
 
Posts: 4
Joined: Thu Jan 22, 2009 8:02 pm

Re: Pagebreaks and Combining Files

Postby marco_d on Thu Jan 22, 2009 8: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. :-)
marco_d
 
Posts: 52
Joined: Tue Jan 20, 2009 6:49 pm
Location: Hamburg, Germany

Re: Pagebreaks and Combining Files

Postby localghost on Thu Jan 22, 2009 8:44 pm

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¹
¹ I'm sorry. My responses are limited. You must ask the right questions.
² A minimal working example (MWE) promises quick help.
³ OS, LaTeX-System, Editor: openSUSE 11.2, TeX Live 2009, TeXworks 0.3 | Windows XP (SP3), MiKTeX 2.8, TeXworks 0.3
User avatar
localghost
Site Moderator
 
Posts: 3567
Joined: Fri Feb 02, 2007 11:06 am
Location: Braunschweig, Germany

Re: Pagebreaks and Combining Files

Postby phoebe on Sun Jan 25, 2009 6: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/.
phoebe
 
Posts: 4
Joined: Thu Jan 22, 2009 8:02 pm


Return to General

Who is online

Users browsing this forum: Google [Bot] and 6 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group