GeneralNew file means new page ?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Scap
Posts: 10
Joined: Sun Dec 09, 2007 12:53 pm

New file means new page ?

Post by Scap »

Hi,

I writting a document with Latex and I've sometimes big chapters. So my idea was to create new .tex files for differents section of this chapter...
After compilying the table of content is OK but for each section created in a separated file there is a page break...
Is it possible to correct this or do I have to put all my sections in the same file ?

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Re: New file means new page ?

Post by Juanjo »

I guess you are using the \include command to incorporate the contents of every section into the document. This command always introduces a page break. Instead you can use the \input command. However, I think it is convenient to keep using \include while preparing the first versions of the document, since you can select which parts of the document should be typeset by means of the \includeonly command.
Scap
Posts: 10
Joined: Sun Dec 09, 2007 12:53 pm

Re: New file means new page ?

Post by Scap »

Thanks,

Yes indeed I'm using the \include command.
I've tried with the \input one but unfortunately it's the same problem :( do you know why ?
I've tried too with the \includeonly command in order to test your advice but it has generated an error.. I've written it in the main file, but maybe I have to write it in an other place, do I ? Or maybe including a package..
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

New file means new page ?

Post by Juanjo »

Without seeing a bit of code it is not possible to guess what the problem is. Try to provide a minimal working example and attach, if needed, the corresponding tex files.
Scap
Posts: 10
Joined: Sun Dec 09, 2007 12:53 pm

Re: New file means new page ?

Post by Scap »

Hello,

I think that the problem come from the document's format (means, article, book, etc.) that I'm using.
It's a specific shape made by my lab, so I can't modify it.
But I'm not sure that is the good reason..
Post Reply