Latest news 2024-10-15: New blog post: Tales for Our Times Book Launch.

flowfram package FAQ

Why has the text from my flow frame appeared in a static or dynamic frame? 🔗

Assuming you haven't inadvertently set that text as the contents of the static or dynamic frame, the frames are most likely overlapping. In an attempt to clarify what's going on, suppose you have defined a static frame, a dynamic frame and two flow frames. The following is an approximate1 analogy: TeX has a sheet of paper on the table, and has pencilled2 in a rectangle denoting the typeblock. The paper is put to one side for now. TeX also has four rectangular sheets of transparent paper. The first (which I shall call sheet 1) represents the static frame, the next two (which I shall call sheets 2 and 3) represent the flow frames, and the last one (which I shall call sheet 4) represents the dynamic frame. TeX starts work on filling sheet 2 with the document text. Once it has put as much text on that sheet as it considers possible (according to its views on aesthetics), it puts sheet 2 into the "in tray", and then continues on sheet 3. While it's filling in sheets 2 and 3, if it encounters a command or environment that tells it what to put in the static frame, it fills in sheet 1 and then puts sheet 1 into the "in tray" and resumes where it left off on sheet 2 or 3. Similarly, if it encounters a command that tells it what to put in the dynamic frame, it stops what it's doing, fills in sheet 4, then puts sheet 4 into the "in tray", and resumes where it left off. Only when it has finished sheet 3 (the last flow frame defined on that page), will it gather together all the transparent sheets, and fix them onto the page starting with sheet 1 through to sheet 4, measuring the bottom left hand corner of each transparent sheet relative to the bottom left hand corner of the typeblock. TeX will then put that page aside, and start work on the next page. If two or more of the transparent sheets overlap, you will see through the top one into the one below (unless of course the top one has been painted over, either by setting a background colour, or by adding an image that has a non-transparent background.)

Note that it's also possible that the overlap is caused by an overfull hbox that's causing the text to poke out the side of the flow frame into a neighbouring frame.

1The pedantic may point out that TeX may make several attempts to fill in the flow frames depending on penalties and so on.

2Actually it hasn't drawn anything really, but it has in its mind's eye.

2013-12-14 09:53:12


Permalink: https://www.dickimaw-books.com/faq.php?id=101
Alternative link: https://www.dickimaw-books.com/faq.php?itemlabel=flowoverlap

Category: flowfram package
Topic: General Queries