ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Force floats to flow of text
@ 2002-08-08 15:04 Viktor Varheit
  0 siblings, 0 replies; only message in thread
From: Viktor Varheit @ 2002-08-08 15:04 UTC (permalink / raw)


When using floats I often want to make sure that the float is set at
exactly that position specified in the source, even if that means a lot
of whitespace on certain pages. In particular, I want to prevent the
text following the float from 'overtaking' it. From the user manual I
learned that 'force' can be used to control this behaviour. But it does
not seem to work the way I expected it.

Let me illustrate this with a short example:

--------------------   cut here   --------------------
\setuppapersize[A5][A5]
\setupbodyfont[16pt,sansserif]
\setupcolors[state=start]

\starttext
\chapter{The placement of figures}

{\blue Some figures need to be placed exactly at the position specified
in the source. This does not always work correctly. Some figures need to
be placed exactly at the position specified in the source. This does not
always work correctly. Some figures need to be placed exactly at the
position specified in the source. This does not always work correctly.}

\reservefigure
  [width=\textwidth,height=6cm]
  [force]
  [fig:example]
  {This is a forced figure}

{\red This text following the above figure is not saying very much.}

\stoptext
--------------------   cut here   --------------------

I want to make sure the red text is not typeset before the figure.

Any hints welcome...

Vik


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-08-08 15:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-08 15:04 Force floats to flow of text Viktor Varheit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).