Hi,
In the code below, we can see that the table overflows.
Of course, one can play on the table dimensions to adjust its position.
However it is possible to define a floating whose dimensions automatically
adapt to the available space ?
Thank you,
Fabrice

\definefloat
   [MyFloat]
   [figure]

\setupfloat
   [MyFloat]
   [default={right,none}]

\startsetups[table:initialize]
  \setupTABLE[start][align={middle,lohi},width=2cm,offset=1ex]
  \setupTABLE[column][first][width=4cm]
  \setupTABLE[row][first][background=color,backgroundcolor=lightgray]
\stopsetups

\showframe

\starttext
\placeMyFloat{}{\externalfigure[louvre.jpg][width=5cm]}
Le tableau ci-dessous indique le nombre d'entrées (en milliers) au musée du
Louvre :
\blank[medium]
\startmidaligned
\placeMyFloat{}{
\bTABLE[setups=table:initialize]
\bTR
    \bTH  \eTH
    \bTD  \eTD
    \bTD  \eTD
    \bTD  \eTD
    \bTD  \eTD
\eTR
\bTR
    \bTH  \eTH
    \bTD  \eTD
    \bTD  \eTD
    \bTD  \eTD
    \bTD  \eTD
\eTR
\eTABLE
\stopmidaligned}
\blank[medium]
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to