ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Figures in a table?
@ 2006-01-20  1:19 David Arnold
  2006-01-20  1:57 ` David Arnold
  0 siblings, 1 reply; 4+ messages in thread
From: David Arnold @ 2006-01-20  1:19 UTC (permalink / raw)


All,

Has anyone put figures in a table?

I'd like to have a 4 row, 3 column table, where the first column  
contains number lines with intervals of real numbers shaded. The  
second column would contain the setbuilder notation for the shaded  
interval, and the third column would contain the interval notation  
for the shaded interval.

Ideas?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Figures in a table?
  2006-01-20  1:19 Figures in a table? David Arnold
@ 2006-01-20  1:57 ` David Arnold
  2006-01-20 10:18   ` Hans Hagen
  2006-01-20 11:07   ` Hans Hagen
  0 siblings, 2 replies; 4+ messages in thread
From: David Arnold @ 2006-01-20  1:57 UTC (permalink / raw)


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.

2. I'd like to add a little height to the last four rows.

Suggestions?

On Jan 19, 2006, at 5:19 PM, David Arnold wrote:

> All,
>
> Has anyone put figures in a table?
>
> I'd like to have a 4 row, 3 column table, where the first column  
> contains number lines with intervals of real numbers shaded. The  
> second column would contain the setbuilder notation for the shaded  
> interval, and the third column would contain the interval notation  
> for the shaded interval.
>
> Ideas?
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Figures in a table?
  2006-01-20  1:57 ` David Arnold
@ 2006-01-20 10:18   ` Hans Hagen
  2006-01-20 11:07   ` Hans Hagen
  1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2006-01-20 10:18 UTC (permalink / raw)


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
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Figures in a table?
  2006-01-20  1:57 ` David Arnold
  2006-01-20 10:18   ` Hans Hagen
@ 2006-01-20 11:07   ` Hans Hagen
  1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2006-01-20 11:07 UTC (permalink / raw)


David Arnold wrote:

in the next release you can do:

> \setupTABLE[c][1][width=0.6\textwidth,strut=no]
>
> \bTD \dontleavehmode \externalfigure[realline4] \eTD

-----------------------------------------------------------------
                                          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
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-01-20 11:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-20  1:19 Figures in a table? David Arnold
2006-01-20  1:57 ` David Arnold
2006-01-20 10:18   ` Hans Hagen
2006-01-20 11:07   ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).