[NTG-context] issue with image in an xtable

Pablo Rodriguez oinos at gmx.es
Mon Apr 20 20:28:14 CEST 2015


On 04/20/2015 06:12 PM, Pierre Bovet wrote:
> Hi Pablo,
> 
> It seems that if you comment \dontleavemode, the image size gives no effect to the two first table lines.
> 
>            \startxcell[align=left, ny=2]
>                % \dontleavehmode
> 			   \externalfigure[cow][height=10mm]
>            \stopxcell

Hi Pierre,

I’m afraid that the extra spacing in the first two lines is not removed
when commenting \dontleavehmode.

I use the latest beta from 2015.04.18 14:41. Which ConTeXt version do
you use?


Pablo



>> Le 20 avr. 2015 à 17:34, Pablo Rodriguez <oinos at gmx.es> a écrit :
>>
>> Dear list,
>>
>> I have the following sample:
>>
>>    \setupexternalfigures[location=default]
>>    \starttext
>>    \startxtable[option=stretch]
>>        \startxrow
>>            \startxcell First line left\stopxcell
>>            \startxcell\mbox{}\stopxcell
>>            \startxcell First line right\stopxcell
>>        \stopxrow
>>        \startxrow
>>            \startxcell Second line left\stopxcell
>>            \startxcell\mbox{}\stopxcell
>>            \startxcell Second line right\stopxcell
>>        \stopxrow
>>        \startxrow
>>            \startxcell Third Line left\stopxcell
>>            \startxcell[align=left, ny=2]
>>                \dontleavehmode\externalfigure[cow][height=20mm]
>>            \stopxcell
>>            \startxcell\mbox{}\stopxcell
>>        \stopxrow
>>        \startxrow
>>            \startxcell Fourth line left\stopxcell
>>            \startxcell\mbox{}\stopxcell
>>        \stopxrow
>>        \startxrow
>>            \startxcell Fifth line left\stopxcell
>>            \startxcell\mbox{}\stopxcell
>>            \startxcell Fifth line right\stopxcell
>>        \stopxrow
>>    \stopxtable
>>    \stoptext
>>
>> 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?
>>
>> Many thanks for your help,
>>
>>
>> Pablo
>> -- 
>> http://www.ousia.tk
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to the Wiki!
>>
>> maillist : ntg-context at 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
>> ___________________________________________________________________________________
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context at 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
> ___________________________________________________________________________________
> 


-- 
http://www.ousia.tk


More information about the ntg-context mailing list