[NTG-context] figures in tables

Hans Hagen pragma at wxs.nl
Fri Apr 1 13:05:36 CEST 2016


Hi,

I've added support for

\starttext

     \useMPlibrary[dum]

     \bTABLE
         \bTR
             \bTD
                 \placefigure{}{\externalfigure[dummy][width=4cm]}%
             \eTD
         \eTR
     \eTABLE

     \bTABLE[split=yes]
         \dorecurse{10}{
             \bTR
                 \bTD \placefigure{}{\externalfigure[dummy][width=4cm]} \eTD
                 \bTD \placefigure{}{\externalfigure[dummy][width=4cm]} \eTD
             \eTR
             \bTR
                 \bTD[nx=2] 
\placefigure{}{\externalfigure[dummy][width=12cm,height=3cm]} \eTD
             \eTR
             \bTR
                 \bTD 
\placefigure{}{\externalfigure[dummy][width=4cm]} \eTD
                 \bTD[ny=2] 
\placefigure{}{\externalfigure[dummy][width=4cm,height=8cm]} \eTD
             \eTR
             \bTR
                 \bTD 
\placefigure{}{\externalfigure[dummy][width=4cm]} \eTD
             \eTR
         }
     \eTABLE

\stoptext

somewhat experimental (and I will not support floats in all kind of 
constructs ... after all, they are floats)

(btw, \placefigure[force,always] is pretty much a local float)

Hans


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


More information about the ntg-context mailing list