[NTG-context] Figures in a table?

Hans Hagen pragma at wxs.nl
Fri Jan 20 11:18:10 CET 2006


David Arnold wrote:

> All,
>
> I've almost answered my own question with:
>
> \startbuffer[table]
> \setupTABLE[c][1][width=0.6\textwidth]
> \setupTABLE[c][2][width=0.2\textwidth]
> \setupTABLE[c][3][width=0.2\textwidth]
> \bTABLE[align={middle,lohi}]
> \bTR
> \bTH Number line \eTH
> \bTH Set-builder notation \eTH
> \bTH Interval notation \eTH
> \eTR
> \bTR
> \bTD \externalfigure[realline4] \eTD
> \bTD $\{x:\,x>3\}$ \eTD
> \bTD $(3,\infty)$ \eTD
> \eTR
> \bTR
> \bTD \externalfigure[realline5] \eTD
> \bTD $\{x:\,x<3\}$ \eTD
> \bTD $(-\infty,3)$ \eTD
> \eTR
> \bTR
> \bTD \externalfigure[realline6] \eTD
> \bTD $\{x:\,x\ge3\}$ \eTD
> \bTD $[3,\infty)$ \eTD
> \eTR
> \bTR
> \bTD \externalfigure[realline7] \eTD
> \bTD $\{x:\,x\le3\}$ \eTD
> \bTD $(-\infty,3]$ \eTD
> \eTR
> \eTABLE
> \stopbuffer
>
> \placefigure[][tbl:numlines]
> {Table}
> {\getbuffer[table]}
>
>
> However, two things:
>
> 1. My figures are not centered in their first column.


somehow strut=no does not work, so for the moment use:

\bTD \setnostrut \dontleavehmode \externalfigure[realline4] \endgraf \removedepth \eTD

or make a \def\MyExternalFigure[#1]{...} 

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



More information about the ntg-context mailing list