ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Floats broken under some circumstances
       [not found] ` <4B819984.5050307@gmail.com>
@ 2010-02-21 23:39   ` Wolfgang Schuster
  2010-02-22  9:36     ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Wolfgang Schuster @ 2010-02-21 23:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen, Vyatcheslav Yatskovsky

Am 21.02.10 21:37, schrieb Vyatcheslav Yatskovsky:
> Hi,
>
> Weird, but when I use rather big linespace
> \setupinterlinespace[line=28pt]
> and set \setupfloats[spaceafter=medium], then the error rises.
>
> With less interlinespace value or without spaceafter all works ok.
Found the culprit.

 From strc-flt.mkiv:

\def\betweenfloatblanko% assumes that spaceafter is present
   {\bgroup
    \setbox0\vbox{\strut\blank[\floatsharedparameter\c!spacebefore]\strut}%
    \setbox2\vbox{\strut\blank[\floatsharedparameter\c!spaceafter]\strut}%
    \ifdim\ht0>\ht2
      
\blank[-\floatsharedparameter\c!spaceafter,\floatsharedparameter\c!spacebefore]%
    \fi
    \egroup}

The float commands tries to perform \blank[-medium] in Vyatcheslav example
but this fails in MkIV because '-medium' is not a valid keyword for \blank.

As a temporary solution you can add

   \definevspacingamount [-medium] [-\medskipamount] 
[-0.50\bodyfontlineheight]

to your file till Hans fix this in the core. I guess the best is to 
check for
a hyphen in keyword (analyze funtion in spac-ver.lua) and set amount to -1
or something similar.

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Floats broken under some circumstances
  2010-02-21 23:39   ` Floats broken under some circumstances Wolfgang Schuster
@ 2010-02-22  9:36     ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2010-02-22  9:36 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users, Vyatcheslav Yatskovsky

On 22-2-2010 0:39, Wolfgang Schuster wrote:

> The float commands tries to perform \blank[-medium] in Vyatcheslav example
> but this fails in MkIV because '-medium' is not a valid keyword for \blank.

hm i wonder if we really need negative skips

we can best try

\blank[\v!back,\floatsharedparameter\c!spacebefore]%

there are probably a few more places where we need to adapt mkiv to the 
new spacing models

-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2010-02-22  9:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.418.1266771618.26807.ntg-context@ntg.nl>
     [not found] ` <4B819984.5050307@gmail.com>
2010-02-21 23:39   ` Floats broken under some circumstances Wolfgang Schuster
2010-02-22  9:36     ` Hans Hagen

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