ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* TABLE problems
@ 2007-07-20 23:19 Wolfgang Werners-Lucchini
  2007-07-21 16:24 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Wolfgang Werners-Lucchini @ 2007-07-20 23:19 UTC (permalink / raw)
  To: ntg-context

Hallo,

I have two problems/questions with the following tables:

1. Should'nt all the columns be .2\textwidth, as in the last table?
2. Why expands column width to \textwidth in the second table?
   Has to do with \type{} and/or color!
3. Why behaves table 1 (with \type{}) as table 3 (whitout \type{})?

Wolfgang 

\setupcolors[state=start]
\starttext
\input tufte

\setupTABLE[row][odd][background=color,backgroundcolor=lightgray, 
width=.2\textwidth]
\bTABLE
\bTR \bTD \type{short} \eTD \bTD reads the whole file \eTD \eTR
\bTR \bTD kurz \eTD \bTD reads a string with up to num characters 
\eTD \eTR
\eTABLE

\input tufte

\setupTABLE[row][odd][background=color,backgroundcolor=lightgray, 
width=.2\textwidth]
\bTABLE
\bTR \bTD short \eTD \bTD reads the whole file \eTD \eTR
\bTR \bTD \type{kurz} \eTD \bTD reads a string with up to num 
characters \eTD \eTR
\eTABLE

\input tufte

\setupTABLE[row][odd][background=color,backgroundcolor=lightgray, 
width=.2\textwidth]
\bTABLE
\bTR \bTD short \eTD \bTD reads the whole file \eTD \eTR
\bTR \bTD kurz \eTD \bTD reads a string with up to num characters 
\eTD \eTR
\eTABLE

\input tufte

\setupTABLE[row][odd][background=color,backgroundcolor=lightgray, 
width=.2\textwidth]
\bTABLE
\bTR \bTD kurz \eTD \bTD reads a string with up to num characters 
\eTD \eTR
\eTABLE

\input tufte
\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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: TABLE problems
  2007-07-20 23:19 TABLE problems Wolfgang Werners-Lucchini
@ 2007-07-21 16:24 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2007-07-21 16:24 UTC (permalink / raw)
  To: ntg-context

On Sat, 21 Jul 2007 01:19:24 +0200
"Wolfgang Werners-Lucchini" <wwl@musensturm.de> wrote:

> Hallo,
> 
> I have two problems/questions with the following tables:
> 
> 1. Should'nt all the columns be .2\textwidth, as in the last table?
> 2. Why expands column width to \textwidth in the second table?
>    Has to do with \type{} and/or color!
> 3. Why behaves table 1 (with \type{}) as table 3 (whitout \type{})?
> Wolfgang 

Hi Wolfgang,

sorry, no to your questions but the following setup works:

\setupTABLE[row][odd][background=color,backgroundcolor=lightgray]
\setupTABLE[width=.2\textwidth]

why do you repeat the setup command for every table, the first one is
global and should work for every table in your document, unless you
make a setup local within a group or a float.

Wolfgang

> \setupcolors[state=start]
> \starttext
> \input tufte
> 
> \setupTABLE[row][odd][background=color,backgroundcolor=lightgray, 
> width=.2\textwidth]
> \bTABLE
> \bTR \bTD \type{short} \eTD \bTD reads the whole file \eTD \eTR
> \bTR \bTD kurz \eTD \bTD reads a string with up to num characters 
> \eTD \eTR
> \eTABLE
> 
> \input tufte
> 
> \setupTABLE[row][odd][background=color,backgroundcolor=lightgray, 
> width=.2\textwidth]
> \bTABLE
> \bTR \bTD short \eTD \bTD reads the whole file \eTD \eTR
> \bTR \bTD \type{kurz} \eTD \bTD reads a string with up to num 
> characters \eTD \eTR
> \eTABLE
> 
> \input tufte
> 
> \setupTABLE[row][odd][background=color,backgroundcolor=lightgray, 
> width=.2\textwidth]
> \bTABLE
> \bTR \bTD short \eTD \bTD reads the whole file \eTD \eTR
> \bTR \bTD kurz \eTD \bTD reads a string with up to num characters 
> \eTD \eTR
> \eTABLE
> 
> \input tufte
> 
> \setupTABLE[row][odd][background=color,backgroundcolor=lightgray, 
> width=.2\textwidth]
> \bTABLE
> \bTR \bTD kurz \eTD \bTD reads a string with up to num characters 
> \eTD \eTR
> \eTABLE
> 
> \input tufte
> \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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2007-07-21 16:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-20 23:19 TABLE problems Wolfgang Werners-Lucchini
2007-07-21 16:24 ` Wolfgang Schuster

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