ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Natural Tables ?
@ 2002-10-02 14:56 AlterEgo Qasars
  2002-10-02 18:21 ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: AlterEgo Qasars @ 2002-10-02 14:56 UTC (permalink / raw)


Good evening.

I started to typeset some tables using Natural Tables. It is an excelent 
poweful tool. I really like. But: Is it possible to do something like 
this:

\setupTABLE[last][1,2][background={color,tabulka7}]
\setupTABLE[last][last][background={color,tabulka9}]

It seems to be quite natural to me, but it doesn't work (with my version 
of ConTeXt ver: 2001.9.14  fmt: 2002.4.20  int: english  mes: english

How can I do it? (Meaning the cells in the last column and the first and 
the second row, and the cell in the right bottom of the table 
respectively.)

Many greetings to you all.
M.K.


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

* Re: Natural Tables ?
  2002-10-02 14:56 Natural Tables ? AlterEgo Qasars
@ 2002-10-02 18:21 ` Hans Hagen
  2002-10-02 19:16   ` Re[2]: " Giuseppe Bilotta
  2002-10-03 12:59   ` AlterEgo Qasars
  0 siblings, 2 replies; 8+ messages in thread
From: Hans Hagen @ 2002-10-02 18:21 UTC (permalink / raw)
  Cc: konference o ConTeXtu

At 04:56 PM 10/2/2002 +0200, AlterEgo Qasars wrote:
>Good evening.
>
>I started to typeset some tables using Natural Tables. It is an excelent
>poweful tool. I really like. But: Is it possible to do something like
>this:
>
>\setupTABLE[last][1,2][background={color,tabulka7}]
>\setupTABLE[last][last][background={color,tabulka9}]
>
>It seems to be quite natural to me, but it doesn't work (with my version
>of ConTeXt ver: 2001.9.14  fmt: 2002.4.20  int: english  mes: english
>
>How can I do it? (Meaning the cells in the last column and the first and
>the second row, and the cell in the right bottom of the table
>respectively.)

so, in addition to odd|even|first|last|all|number by rows|columns you want 
even more?

replace this in core-ntb:

\def\setupTBLcell#1#2% cell over col over row
   {\setupTBLsection % here ?
    \getvalue{\@@tblprefix\c!y\v!elk}%
    \getvalue{\@@tblprefix\c!x\v!elk}%
    \getvalue{\@@tblprefix\c!y\v!oddeven{#1}}%
    \getvalue{\@@tblprefix\c!x\v!oddeven{#2}}%
    \getvalue{\@@tblprefix\c!x\v!oddeven{#2}\c!y\v!oddeven{#1}}%
    \ifnum#1=\plusone        \getvalue{\@@tblprefix\c!y\v!eerste }\fi
    \ifnum#2=\plusone        \getvalue{\@@tblprefix\c!x\v!eerste }\fi
    \ifnum#1=\maximumrow\relax\getvalue{\@@tblprefix\c!y\v!laatste}\fi
    \ifnum#2=\maximumcol\relax\getvalue{\@@tblprefix\c!x\v!laatste}\fi
    \ifnum#1=\maximumrow\relax\ifnum#2=\maximumcol\relax
      \getvalue{\@@tblprefix\c!x\v!laatste\c!y\v!laatste}%
    \fi\fi
    \ifnum#1=\plusone \ifnum#2=\plusone
      \getvalue{\@@tblprefix\c!x\v!eerste\c!y\v!eerste}%
    \fi\fi
    \getvalue{\@@tblprefix\c!y#1}%
    \getvalue{\@@tblprefix\c!x#2}%
    \getvalue{\@@tblprefix\c!x#2\c!y#1}\relax}

you're lucky that this is not a slow-downer

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       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
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Re[2]: Natural Tables ?
  2002-10-02 18:21 ` Hans Hagen
@ 2002-10-02 19:16   ` Giuseppe Bilotta
  2002-10-02 21:40     ` Hans Hagen
  2002-10-03 12:59   ` AlterEgo Qasars
  1 sibling, 1 reply; 8+ messages in thread
From: Giuseppe Bilotta @ 2002-10-02 19:16 UTC (permalink / raw)
  Cc: ntg-context


Wednesday, October 2, 2002 Hans Hagen wrote:


HH> so, in addition to odd|even|first|last|all|number by rows|columns you want 
HH> even more?

What about a "generic test"? For example, things like the D&D
Rules Cyclopedia typeset tables with rows coloured in groups:
three white, three with a colour background, and then the pattern
repeats.

[snip]

HH> you're lucky that this is not a slow-downer

Isn't it slow enough already? ;)

-- 
Giuseppe "Oblomov" Bilotta


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

* Re[2]: Natural Tables ?
  2002-10-02 19:16   ` Re[2]: " Giuseppe Bilotta
@ 2002-10-02 21:40     ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2002-10-02 21:40 UTC (permalink / raw)
  Cc: ntg-context

At 09:16 PM 10/2/2002 +0200, Giuseppe Bilotta wrote:

>What about a "generic test"? For example, things like the D&D

ah, i could have known that you would cook up some feature

>Rules Cyclopedia typeset tables with rows coloured in groups:
>three white, three with a colour background, and then the pattern
>repeats.

hm, quite doable, once we can figure out the syntax, but in that case i 
should also look in subtableprocessing (since multipage tables are a memory 
turture test; possible when the widths don't change

>[snip]
>
>HH> you're lucky that this is not a slow-downer
>
>Isn't it slow enough already? ;)

well, this double test makes sure that it's only done twice (times two) per 
table, and even then only when defined, so that's virtually zero runtime

indeed, and i'll look int that some day

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       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
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


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

* Re: Natural Tables ?
  2002-10-02 18:21 ` Hans Hagen
  2002-10-02 19:16   ` Re[2]: " Giuseppe Bilotta
@ 2002-10-03 12:59   ` AlterEgo Qasars
  2002-10-03 13:31     ` Duncan Hothersall
  1 sibling, 1 reply; 8+ messages in thread
From: AlterEgo Qasars @ 2002-10-03 12:59 UTC (permalink / raw)


Good evening.

> replace this in core-ntb:
> 
> \def\setupTBLcell#1#2% cell over col over row
>   {\setupTBLsection % here ?
>    \getvalue{\@@tblprefix\c!y\v!elk}%
>    \getvalue{\@@tblprefix\c!x\v!elk}%
>    \getvalue{\@@tblprefix\c!y\v!oddeven{#1}}%
>    \getvalue{\@@tblprefix\c!x\v!oddeven{#2}}%
>    \getvalue{\@@tblprefix\c!x\v!oddeven{#2}\c!y\v!oddeven{#1}}%
>    \ifnum#1=\plusone        \getvalue{\@@tblprefix\c!y\v!eerste }\fi
>    \ifnum#2=\plusone        \getvalue{\@@tblprefix\c!x\v!eerste }\fi
>    \ifnum#1=\maximumrow\relax\getvalue{\@@tblprefix\c!y\v!laatste}\fi
>    \ifnum#2=\maximumcol\relax\getvalue{\@@tblprefix\c!x\v!laatste}\fi
>    \ifnum#1=\maximumrow\relax\ifnum#2=\maximumcol\relax
>      \getvalue{\@@tblprefix\c!x\v!laatste\c!y\v!laatste}%
>    \fi\fi
>    \ifnum#1=\plusone \ifnum#2=\plusone
>      \getvalue{\@@tblprefix\c!x\v!eerste\c!y\v!eerste}%
>    \fi\fi
>    \getvalue{\@@tblprefix\c!y#1}%
>    \getvalue{\@@tblprefix\c!x#2}%
>    \getvalue{\@@tblprefix\c!x#2\c!y#1}\relax}

I've put it to the latest beta but nothing has changed. Moreover, it looks 
the same as the old code. What I'm doing wrong?

Many greetings.
M.K.


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

* RE: Natural Tables ?
  2002-10-03 12:59   ` AlterEgo Qasars
@ 2002-10-03 13:31     ` Duncan Hothersall
  2002-10-03 14:31       ` AlterEgo Qasars
  0 siblings, 1 reply; 8+ messages in thread
From: Duncan Hothersall @ 2002-10-03 13:31 UTC (permalink / raw)


> I've put it to the latest beta but nothing has changed. Moreover,
> it looks the same as the old code. What I'm doing wrong?

Make sure you are recreating the format after you update files in the
distribution:

texexec -make <your interface languages here>

dh


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

* Re: Natural Tables ?
  2002-10-03 13:31     ` Duncan Hothersall
@ 2002-10-03 14:31       ` AlterEgo Qasars
       [not found]         ` <758846D4-D6E7-11D6-B7ED-0050E4258255@muohio.edu>
  0 siblings, 1 reply; 8+ messages in thread
From: AlterEgo Qasars @ 2002-10-03 14:31 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 463 bytes --]

Good evening.

> Make sure you are recreating the format after you update files in the
> distribution:
> 
> texexec -make <your interface languages here>

Well, I've done it. But I'm stupid anyway: something has improved:
[last][last] cell works well. But I need even more:
[last][1,2] and [1][last]. Or try to compile included file to see whether 
it works or not.

BTW, is there any way to set style for the cells in the Natural Tables?

Have a nice day,
M.K.


[-- Attachment #2: piditable.tex --]
[-- Type: application/x-tex, Size: 4394 bytes --]

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

* Re: Natural Tables ?
       [not found]         ` <758846D4-D6E7-11D6-B7ED-0050E4258255@muohio.edu>
@ 2002-10-03 15:58           ` AlterEgo Qasars
  0 siblings, 0 replies; 8+ messages in thread
From: AlterEgo Qasars @ 2002-10-03 15:58 UTC (permalink / raw)


> I don't know anything about this, but enclosed is what I got when I 
> compiled...

Hm. It's strange. On my computer it is not. Could you see the lower black 
frame on the cell in the last row and first column? And two cells in the 
frist and second row in the last one? I regenerated format once more but 
it didn't helped me. What version of ConTeXt do you have?

Many thanks,
M.K.


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

end of thread, other threads:[~2002-10-03 15:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-02 14:56 Natural Tables ? AlterEgo Qasars
2002-10-02 18:21 ` Hans Hagen
2002-10-02 19:16   ` Re[2]: " Giuseppe Bilotta
2002-10-02 21:40     ` Hans Hagen
2002-10-03 12:59   ` AlterEgo Qasars
2002-10-03 13:31     ` Duncan Hothersall
2002-10-03 14:31       ` AlterEgo Qasars
     [not found]         ` <758846D4-D6E7-11D6-B7ED-0050E4258255@muohio.edu>
2002-10-03 15:58           ` AlterEgo Qasars

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