[NTG-context] Pagination problem with an intermezzo containing a footnote

Wolfgang Schuster schuster.wolfgang at googlemail.com
Sat Mar 12 18:56:38 CET 2011


Am 11.03.2011 um 20:54 schrieb mathew:

> \starttext
> 
> This is a sample document to demonstrate a possible bug. You will
> probably see a footnote below which appears before the page it's
> referenced from.
> 
> \placeintermezzo[page][block:example]{Demonstrating a bug}
> \startframedtext[width=0.8\makeupwidth]
> This is a rather dull intermezzo.\footnote{But it does at least
> demonstrate a bug.}
> \stopframedtext
> 
> \stoptext

This isn’t a bug. The problem with your footnote is that context
reads the note at page 1 where it saw the float and placed therefore
the note on page one but the float itself wasn’t placed because
context saved it and flushed it at the next page.

What you can do is to move the float first to a separate page
first and used a fixed float (force keyword) to immediately flush it. 

The saved method is to use local footnotes (you can find example
on the wiki) where the notes are placed below the float.

\starttext

This is a sample document to demonstrate a possible bug. You will
probably see a footnote below which appears before the page it's
referenced from.

\startpostponing
\placeintermezzo[force][block:example]
  {Demonstrating a bug}
  {\startframedtext[width=0.8\makeupwidth]
   This is a rather dull intermezzo.\footnote{But it does at least demonstrate a bug.}
   \stopframedtext}
\stoppostponing

\stoptext

Wolfgang



More information about the ntg-context mailing list