[NTG-context] issue with image in an xtable

Hans Hagen pragma at wxs.nl
Tue Apr 21 01:18:49 CEST 2015


On 4/20/2015 8:53 PM, Pablo Rodriguez wrote:
> On 04/20/2015 06:36 PM, Hans Hagen wrote:
>> On 4/20/2015 5:34 PM, Pablo Rodriguez wrote:
>>> [...]
>>> If the image is higher than the two rows it is meant to have, the first
>>> two rows get extra height.
>>>
>>> Is this a bug or am I missing something?
>>
>> for the brave ... line 707 in tabl-xtb.lua:
>>
>>                       local delta = htdp - total
>>                       if delta > 0 then
>>                           delta = delta / ny
>>                           for y=0,ny-1 do
>>                               local nxt = r + y
>>                               heights[nxt] = heights[nxt] + delta
>>                           end
>>                       end
>
> Many thanks for the code, Hans.
>
> This adds the extra space in the two rows that contain the figure.
>
> Wouldn’t it be possible that the figure invades the next row instead of
> adding extra spacing to any row?

define invades

> BTW, imae location seems to be wrong. Top, bottom or middle don’t work
> as expected.
>
> Many thanks for your help,
>
>
> Pablo
>


-- 

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


More information about the ntg-context mailing list