Re: [NTG-context] Floats broken under some circumstances

2010-02-22 Thread Hans Hagen

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
___


[NTG-context] Floats broken under some circumstances

2010-02-21 Thread 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.


!pages : flushing realpage 1, userpage 1, subpage 1

floatblocks : 1 moved

! Missing number, treated as zero.

to be read again

m

argument -m

edium

\addaskedblankskip ...nce \blankskip #1\dimexpr #2

\relax

l.6 }

\dovspacingyes ...ument #1\else \s!default \fi )}

\fi

\betweenfloatblanko ...dparameter \c!spacebefore ]

\fi \egroup

...

l.25


B.R.
Vyatcheslav


___
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
___


Re: [NTG-context] Floats broken under some circumstances

2010-02-21 Thread Wolfgang Schuster

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.

Can you send a example.

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
___


Re: [NTG-context] Floats broken under some circumstances

2010-02-21 Thread Wolfgang Schuster

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
___