ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Placing tables
@ 2000-08-20  3:59 David Arnold
  2000-08-21  8:28 ` Hans Hagen
  2000-08-22  7:32 ` Michal Kvasnicka
  0 siblings, 2 replies; 4+ messages in thread
From: David Arnold @ 2000-08-20  3:59 UTC (permalink / raw)


All,

This works:

\setupTABLE[y][odd][background=color,backgroundcolor=gray,frame=on]
\bTABLE
\bTR \bTD $p(x)=x^{3}-x^{2}-1$ \eTD \bTD \type{p=[1 -1 0 -1]}   \eTD \eTR
\bTR \bTD $q(x)=x^{4}-x^{2}-x$ \eTD \bTD \type{q=[1 0 -1 -1 0]} \eTD \eTR
\bTR \bTD $r(x)=x^{4}-2x^{2}$  \eTD \bTD \type{r=[1 0 -2 0 0]}  \eTD \eTR
\eTABLE

But this doesn't:

\placetable
[here][tbl:matlabpolys]
{Matlab represents polynomials with vectors.}
\setupTABLE[y][odd][background=color,backgroundcolor=gray,frame=on]
\bTABLE
\bTR \bTD $p(x)=x^{3}-x^{2}-1$ \eTD \bTD \type{p=[1 -1 0 -1]}   \eTD \eTR
\bTR \bTD $q(x)=x^{4}-x^{2}-x$ \eTD \bTD \type{q=[1 0 -1 -1 0]} \eTD \eTR
\bTR \bTD $r(x)=x^{4}-2x^{2}$  \eTD \bTD \type{r=[1 0 -2 0 0]}  \eTD \eTR
\eTABLE

How come? And how can I "place" a table with this new technique for setting
tables? I want it centered, referenced, and captioned.

-
David Arnold
College of the Redwoods
Mathematics Department
7351 Tompkins Hill Road
Eureka, CA 95501
(707) 476-4222

My Home Page
http://online.redwoods.cc.ca.us/instruct/darnold/index.htm

Ordinary Differential Equations Using Matlab
http://www.prenhall.com/books/esm_0130113816.html


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

* Re: Placing tables
  2000-08-20  3:59 Placing tables David Arnold
@ 2000-08-21  8:28 ` Hans Hagen
  2000-08-22  7:32 ` Michal Kvasnicka
  1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2000-08-21  8:28 UTC (permalink / raw)
  Cc: ntg-context

At 08:59 PM 8/19/00 -0700, David Arnold wrote:
>All,
>
>This works:
>
>\setupTABLE[y][odd][background=color,backgroundcolor=gray,frame=on]
>\bTABLE
>\bTR \bTD $p(x)=x^{3}-x^{2}-1$ \eTD \bTD \type{p=[1 -1 0 -1]}   \eTD \eTR
>\bTR \bTD $q(x)=x^{4}-x^{2}-x$ \eTD \bTD \type{q=[1 0 -1 -1 0]} \eTD \eTR
>\bTR \bTD $r(x)=x^{4}-2x^{2}$  \eTD \bTD \type{r=[1 0 -2 0 0]}  \eTD \eTR
>\eTABLE
>
>But this doesn't:
>
>\placetable
>[here][tbl:matlabpolys]
>{Matlab represents polynomials with vectors.}
>\setupTABLE[y][odd][background=color,backgroundcolor=gray,frame=on]
>\bTABLE
>\bTR \bTD $p(x)=x^{3}-x^{2}-1$ \eTD \bTD \type{p=[1 -1 0 -1]}   \eTD \eTR
>\bTR \bTD $q(x)=x^{4}-x^{2}-x$ \eTD \bTD \type{q=[1 0 -1 -1 0]} \eTD \eTR
>\bTR \bTD $r(x)=x^{4}-2x^{2}$  \eTD \bTD \type{r=[1 0 -2 0 0]}  \eTD \eTR
>\eTABLE
>
>How come? And how can I "place" a table with this new technique for setting
>tables? I want it centered, referenced, and captioned.

It's 

\placetable
  [here][tbl:...]
  {caption}
  {table definition}

So, the last one should be grouped (actually a box). So, you should add {}

suggestion: 

\startbuffer
table def
\stopbuffer

\placetable[...][...]{...}{\getbuffer}

this is more readable. 

Hans
-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

* Re: Placing tables
  2000-08-20  3:59 Placing tables David Arnold
  2000-08-21  8:28 ` Hans Hagen
@ 2000-08-22  7:32 ` Michal Kvasnicka
  2000-08-22  9:41   ` Hans Hagen
  1 sibling, 1 reply; 4+ messages in thread
From: Michal Kvasnicka @ 2000-08-22  7:32 UTC (permalink / raw)


Good morning!

> \setupTABLE[y][odd][background=color,backgroundcolor=gray,frame=on]
> \bTABLE
> \bTR \bTD $p(x)=x^{3}-x^{2}-1$ \eTD \bTD \type{p=[1 -1 0 -1]}   \eTD \eTR
> \bTR \bTD $q(x)=x^{4}-x^{2}-x$ \eTD \bTD \type{q=[1 0 -1 -1 0]} \eTD \eTR
> \bTR \bTD $r(x)=x^{4}-2x^{2}$  \eTD \bTD \type{r=[1 0 -2 0 0]}  \eTD \eTR
> \eTABLE

This kind of tables doesn't work with my ConTeXt (I've obtained the latest
version
from PRAGMA yesterday). What should I include (some module? where I can get
it?)?

Many thanks!

Michal Kvasnicka

P.S. I probably sent the letter to someone in the group -- it was my mistake.
I humbly apologize. I forget too often that the mail is going not to the
group,
but to the sender. I'm sorry.

--
Economics is the only field in which two people can get a Nobel Prize
for saying exactly the opposite things.


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

* Re: Placing tables
  2000-08-22  7:32 ` Michal Kvasnicka
@ 2000-08-22  9:41   ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2000-08-22  9:41 UTC (permalink / raw)
  Cc: Context

At 09:32 AM 8/22/00 +0200, Michal Kvasnicka wrote:
>Good morning!
>
>> \setupTABLE[y][odd][background=color,backgroundcolor=gray,frame=on]
>> \bTABLE
>> \bTR \bTD $p(x)=x^{3}-x^{2}-1$ \eTD \bTD \type{p=[1 -1 0 -1]}   \eTD \eTR
>> \bTR \bTD $q(x)=x^{4}-x^{2}-x$ \eTD \bTD \type{q=[1 0 -1 -1 0]} \eTD \eTR
>> \bTR \bTD $r(x)=x^{4}-2x^{2}$  \eTD \bTD \type{r=[1 0 -2 0 0]}  \eTD \eTR
>> \eTABLE
>
>This kind of tables doesn't work with my ConTeXt (I've obtained the latest
>version
>from PRAGMA yesterday). What should I include (some module? where I can get
>it?)?

You need the beta version for this to work. (and don't forget to enable
color) Your table comes out ok here. 

Hans
-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

end of thread, other threads:[~2000-08-22  9:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-20  3:59 Placing tables David Arnold
2000-08-21  8:28 ` Hans Hagen
2000-08-22  7:32 ` Michal Kvasnicka
2000-08-22  9:41   ` 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).