ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* figure placement and flushbottom
@ 2004-08-11 10:57 Peter Münster
  2004-08-11 16:41 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Münster @ 2004-08-11 10:57 UTC (permalink / raw)


Hello,
in general, the suggested method to get LaTeX \flushbottom behaviour, shown
on http://contextgarden.net/Flush_bottom, works quite well.
But here I have a situation, where I do not understand, why the first page
is not filled:

\setupwhitespace[0pt plus 1fill]
\defineblank[aroundfloat][0.8\lineheight plus 3fill minus 0.2\lineheight]
\setupfloats[spacebefore=aroundfloat,spaceafter=aroundfloat]
\let\stoptextO=\stoptext
\def\stoptext{\vfilll\stoptextO}

%\setupfloats[default={top,bottom,page}]% same as \def\fps@figure{tbp} in LaTeX?

\starttext
bla

\section{bla}% strange: if there is no table, then the figure placement is ok.
\starttable[|c|]
\NC bla\NC\AR
\stoptable

bla
\placefigure{bla}{\framed[height=10cm]{bla}}

\dorecurse{30}{\dorecurse{30}{bla }\par}
\stoptext


TIA for any hint, Peter

-- 
http://pmrb.free.fr/contact/
_____________________________________
FilmSearch engine: http://f-s.sf.net/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: figure placement and flushbottom
  2004-08-11 10:57 figure placement and flushbottom Peter Münster
@ 2004-08-11 16:41 ` Hans Hagen
  2004-08-11 17:27   ` Peter Münster
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2004-08-11 16:41 UTC (permalink / raw)


Peter Münster wrote:

>\let\stoptextO=\stoptext
>\def\stoptext{\vfilll\stoptextO}
>  
>
I don't know what you want to achieve but this is not working because 0 is not a character (and therefore not part of a \cs) 


>\let\Mystoptext\stoptext
>\def\stoptext{\vfilll\Mystoptext}
>  
>
could but you may expect funny side effects, so better use:

\prependtoks \vfilll \to \everystoptext

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: figure placement and flushbottom
  2004-08-11 16:41 ` Hans Hagen
@ 2004-08-11 17:27   ` Peter Münster
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Münster @ 2004-08-11 17:27 UTC (permalink / raw)


On Wed, 11 Aug 2004, Hans Hagen wrote:

> Peter Münster wrote:
> 
> >\let\stoptextO=\stoptext
> >\def\stoptext{\vfilll\stoptextO}
> >  
> I don't know what you want to achieve but this is not working because 0
> is not a character (and therefore not part of a \cs)

It's an O (for "Original"), not a 0 (zero).

> \prependtoks \vfilll \to \everystoptext

Thanks, this looks cleaner.

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
_____________________________________
FilmSearch engine: http://f-s.sf.net/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-08-11 17:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-11 10:57 figure placement and flushbottom Peter Münster
2004-08-11 16:41 ` Hans Hagen
2004-08-11 17:27   ` Peter Münster

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).