[NTG-context] Problem With an Enumeration After a Forced Float

Tad Ashlock tad.ashlock at gmail.com
Sat Jan 30 00:22:40 CET 2010


Hi All,

Here's a corner case for you:  place a figure with the 'force' option,
followed by an enumeration with a background.  Like this (also
attached as tadtest1.tex):

============================================================
\defineenumeration[enum][before={\startbackground},after={\stopbackground}]

\starttext

\dorecurse{3}{\input knuth\par}

\placefigure[force]{Moooooo}{\externalfigure[cow.pdf][width=.7\textwidth]}

\startenum
The contents of a test enumeration.
\stopenum

\stoptext
============================================================

The enumeration will start at the top of the next page (after the
figure) even though there's plenty of room below the figure on the
same page.

If you take the background away from the enumeration (delete the
'before' and 'after' options), OR take the 'force' option off the
\placefigure command, then the problem goes away.

I suspect that this isn't the expected behavior. :-)

Thanks,
Tad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tadtest1.tex
Type: application/x-tex
Size: 278 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20100129/882dbeb3/attachment.tex>


More information about the ntg-context mailing list