On 10/10/18 7:26 PM, Fabrice Couvreur wrote:
> Hello,
> Why is the text wrapping around the board or far too far ?

Hi Fabrice,

replace the following command:

    \startxtable[align={middle,lohi}]

It works now. It is rather weird that the total width for the table is
1.7cm and one of its cells is 3.5cm.

I hope it helps,

Pablo


> Thank you.
> Fabrice
> 
> \definefloat
>     [recipe]
>     [figure]
> 
>   \setupfloat
>     [recipe]
>     [default={right,none}]
> 
>   \starttext
> \placerecipe{}{%
>   \startxtable[align={middle,lohi},width=1.7
>     cm]
>     \startxrow[background=color,backgroundcolor=gray]
>       \startxcell[width=3.5cm,frame=off,align={middle,right},
>                   background=color,backgroundcolor=white]
>         Consommation pour la production de 1 UM
>         \hfill\startMPcode drawarrow
> (0,0)--(0,0.35cm)--(0.35cm,0.35cm)withpen pencircle scaled 1bp; \stopMPcode
>       \stopxcell
>       \startxcell
>         Ind.
>       \stopxcell
>       \startxcell
>         Agri.
>       \stopxcell
>     \stopxrow
>     \startxrow
>       \startxcell[background=color,backgroundcolor=gray]
>         Ind.
>       \stopxcell
>       \startxcell
>         0,5
>       \stopxcell
>       \startxcell
>         0,2
>       \stopxcell
>     \stopxrow
>     \startxrow
>       \startxcell[background=color,backgroundcolor=gray]
>         Agri.
>       \stopxcell
>       \startxcell
>         0,2
>       \stopxcell
>       \startxcell
>         0,6
>       \stopxcell
>     \stopxrow
>     \startxrow
>       \startxcell[nx=3,frame=off,align={right}]
>        Lecture du tableau : pour la production d'un bien équivalent à 1
> UM, l'industrie consomme l'équivalent de 0,5 UM de sa propre production
> et l'équivalent de 0,2 UM de la production de l'agriculture.
>       \stopxcell
>     \stopxrow
>   \stopxtable
> }   
> \dorecurse{10}{\input knuth} 
> \stoptext
> 
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 


-- 
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to