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 locate chapters in separate files, as shown below (a book of 500 pages, 14 chapters).
The document class is based on the book class:

\LoadClass[11pt,letterpaper,twoside]{book}[1994/12/09]

\includeonly{c00,c01,c02}  
\begin{document}  
\include{c00}  
\include{c01}  
\include{c02}  
\end{document}  

To speed up work, I compile chapters separately by, for example:

\includeonly{c01}  

I organize a chapter's floats (by moving text around), one chapter at a time. When I then finally compile all chapters together, the floats move from where they were before. It is as if previous chapters' floats affect later chapters' floats - some form of float memory across chapter boundaries.

I realize that \chapter forces a \clearpage, and tried \afterpage{\clearpage} and \FloatBarrier, but with no effect.

Is there a way to better isolate the floats in chapters from each other?

share|improve this question
add comment

1 Answer 1

If you process the separate chapters in order then you should get the same behaviour as if you process without \includeonly. As you comment, \include uses \clearpage at the include boundaries so no floats from one chapter will affect others. However the position of floats can in delicate cases depend on the text in the rest of the page. Notably \ref and \pageref can produce different numbers or ?? if chapters are processed out of order, or not enough times. As this affects the length of the text it can affect line breaking, and so page breaking and float positions.

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.