Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I like to print my drafts with big fonts and small margins (i do this in memoir style in a single chapter), but the \include comand creates a page break. Is there a way to avoid this and have section after section continuously?

share|improve this question
3  
You could use \input instead of \include. –  Gonzalo Medina May 12 '11 at 23:04
3  
Indeed. See When should I use \input vs \include ? for more details. –  Martin Scharrer May 12 '11 at 23:06
1  
The question doesn't actually have anything to do with memoir; please change the title to something indicative of the actual contents. –  vanden May 13 '11 at 2:52
    
Could the forced page break be removed by \cleardoublepage? –  Harold Cavendish May 13 '11 at 5:40
    
@Harrold: No, \include uses \clearpage at the beginning. This is by design. If you don't want a page break don't use \include. See also the discussion in Include without pagebreak. –  Martin Scharrer May 13 '11 at 7:44
show 1 more comment

1 Answer

up vote 9 down vote accepted

It seems that you have your sections in extra files. First of all this is not required by (La)TeX, you can have it all in one file if you want. (I imagine some people just get this taught from a template).

The \include command adds the page break by design and is intended for chapters which will start a new page anyway. The page break is required to make \includeonly works properly, e.g. insert the correct page numbers after any skipped chapter. If you simply want to insert your external files use the \input macro instead. It does not add a line break. See When should I use \input vs \include ? for a description of the differences of these two macros.

However, if you want to still use \includeonly you are in trouble. In this case see the question Include without pagebreak and its proposed solutions.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.