ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Columnspan in tabulate
@ 2008-09-08  7:24 Wolfgang Schuster
  2008-09-08  9:50 ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2008-09-08  7:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

is it possible to support columnspan in tabulate.

\def\tabulateuse#1%
  {\dorecurse{\numexpr2*#1-1\relax}{\span}}

\setuptabulate[inner=\let\use\tabulateuse\defineTABLEshorthands]

\starttext

\starttable[|l|l|l|l|]
\NC a \NC b \NC c \NC d \AR
\NC 1 \NC \TWO 2  \NC 4 \AR
\stoptable

\starttabulate[|l|Bl|l|l|]
\NC a \NC b \NC c \NC d \NR
\NC 1 \NC 2 \TWO  \NC 4 \NR
\stoptabulate

\stoptext

Wolfgang
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Columnspan in tabulate
  2008-09-08  7:24 Columnspan in tabulate Wolfgang Schuster
@ 2008-09-08  9:50 ` Hans Hagen
  2008-09-08 10:01   ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2008-09-08  9:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Wolfgang Schuster wrote:
> Hi,
> 
> is it possible to support columnspan in tabulate.
> 
> \def\tabulateuse#1%
>   {\dorecurse{\numexpr2*#1-1\relax}{\span}}
> 
> \setuptabulate[inner=\let\use\tabulateuse\defineTABLEshorthands]
> 
> \starttext
> 
> \starttable[|l|l|l|l|]
> \NC a \NC b \NC c \NC d \AR
> \NC 1 \NC \TWO 2  \NC 4 \AR
> \stoptable
> 
> \starttabulate[|l|Bl|l|l|]
> \NC a \NC b \NC c \NC d \NR
> \NC 1 \NC 2 \TWO  \NC 4 \NR
> \stoptabulate
> 
> \stoptext

them more something like ...

\def\tabulateuse#1{\dorecurse{\numexpr2*#1-1\relax}{\span\omit}}

\appendtoks
     \let\use\tabulateuse
     \defineTABLEshorthands
\to \everytabulate

\starttext

\starttabulate[|l|Br|l|l|]
\NC a \NC b \NC c \NC d \NR
\NC 1 \NC 2 \TWO  \NC 4 \NR
\stoptabulate

i have no problem with adding such a feature, but you have to write down 
a 'limited use' entry in the wiki then since it will not work with p entries

has to be tested anyway


-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Columnspan in tabulate
  2008-09-08  9:50 ` Hans Hagen
@ 2008-09-08 10:01   ` Wolfgang Schuster
  2008-09-09  6:53     ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2008-09-08 10:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Sep 8, 2008 at 11:50 AM, Hans Hagen <pragma@wxs.nl> wrote:
> Wolfgang Schuster wrote:
>> Hi,
>>
>> is it possible to support columnspan in tabulate.
>>
>> \def\tabulateuse#1%
>>   {\dorecurse{\numexpr2*#1-1\relax}{\span}}
>>
>> \setuptabulate[inner=\let\use\tabulateuse\defineTABLEshorthands]
>>
>> \starttext
>>
>> \starttable[|l|l|l|l|]
>> \NC a \NC b \NC c \NC d \AR
>> \NC 1 \NC \TWO 2  \NC 4 \AR
>> \stoptable
>>
>> \starttabulate[|l|Bl|l|l|]
>> \NC a \NC b \NC c \NC d \NR
>> \NC 1 \NC 2 \TWO  \NC 4 \NR
>> \stoptabulate
>>
>> \stoptext
>
> them more something like ...
>
> \def\tabulateuse#1{\dorecurse{\numexpr2*#1-1\relax}{\span\omit}}
>
> \appendtoks
>     \let\use\tabulateuse
>     \defineTABLEshorthands
> \to \everytabulate
>
> \starttext
>
> \starttabulate[|l|Br|l|l|]
> \NC a \NC b \NC c \NC d \NR
> \NC 1 \NC 2 \TWO  \NC 4 \NR
> \stoptabulate
>
> i have no problem with adding such a feature, but you have to write down
> a 'limited use' entry in the wiki then since it will not work with p entries

No problem for me, I need it only in single row entries.

> has to be tested anyway

I will do this.

Thanks and regards,
Wolfgang
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Columnspan in tabulate
  2008-09-08 10:01   ` Wolfgang Schuster
@ 2008-09-09  6:53     ` Wolfgang Schuster
  2008-09-09  8:18       ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2008-09-09  6:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Sep 8, 2008 at 12:01 PM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
> On Mon, Sep 8, 2008 at 11:50 AM, Hans Hagen <pragma@wxs.nl> wrote:
>> Wolfgang Schuster wrote:
>>> Hi,
>>>
>>> is it possible to support columnspan in tabulate.
>>>
>>> \def\tabulateuse#1%
>>>   {\dorecurse{\numexpr2*#1-1\relax}{\span}}
>>>
>>> \setuptabulate[inner=\let\use\tabulateuse\defineTABLEshorthands]
>>>
>>> \starttext
>>>
>>> \starttable[|l|l|l|l|]
>>> \NC a \NC b \NC c \NC d \AR
>>> \NC 1 \NC \TWO 2  \NC 4 \AR
>>> \stoptable
>>>
>>> \starttabulate[|l|Bl|l|l|]
>>> \NC a \NC b \NC c \NC d \NR
>>> \NC 1 \NC 2 \TWO  \NC 4 \NR
>>> \stoptabulate
>>>
>>> \stoptext
>>
>> them more something like ...
>>
>> \def\tabulateuse#1{\dorecurse{\numexpr2*#1-1\relax}{\span\omit}}
>>
>> \appendtoks
>>     \let\use\tabulateuse
>>     \defineTABLEshorthands
>> \to \everytabulate
>>
>> \starttext
>>
>> \starttabulate[|l|Br|l|l|]
>> \NC a \NC b \NC c \NC d \NR
>> \NC 1 \NC 2 \TWO  \NC 4 \NR
>> \stoptabulate
>>
>> i have no problem with adding such a feature, but you have to write down
>> a 'limited use' entry in the wiki then since it will not work with p entries
>
> No problem for me, I need it only in single row entries.

Could we say I never wrote this, I saw yesterday I need p columns in my tables
and the current tabulause command did not work but the following solution did
what I want.

\def\tabulateuse#1%
  {\dorecurse{\numexpr2*#1-1\relax}{\span\omit}\raggedright\ignorespaces}

\appendtoks
    \let\use\tabulateuse
    \defineTABLEshorthands
\to \everytabulate

\starttext

\starttabulate[|p(4cm)|p(4cm)|p(6cm)|]
\NC \dorecurse{10}{text } \NC \dorecurse{8}{text } \NC
\dorecurse{18}{text } \NC\NR
\NC \TWO Short text spanning two tabulate paragraphs. \NC
\dorecurse{22}{text } \NC\NR
\stoptabulate

\stoptext

I have to set the width for each colum but I could now use p columns.

Wolfgang
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Columnspan in tabulate
  2008-09-09  6:53     ` Wolfgang Schuster
@ 2008-09-09  8:18       ` Hans Hagen
  2008-09-09  8:28         ` Marcin Borkowski
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2008-09-09  8:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Wolfgang Schuster wrote:

> Could we say I never wrote this, I saw yesterday I need p columns in my tables

ok, removed from my todo stack


-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Columnspan in tabulate
  2008-09-09  8:18       ` Hans Hagen
@ 2008-09-09  8:28         ` Marcin Borkowski
  2008-09-09  8:42           ` Taco Hoekwater
  2008-09-09  8:43           ` Hans Hagen
  0 siblings, 2 replies; 8+ messages in thread
From: Marcin Borkowski @ 2008-09-09  8:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dnia Tue, Sep 09, 2008 at 10:18:37AM +0200, Hans Hagen napisa&#322;(a):
> ok, removed from my todo stack

That's interesting, I always thought it's a "todo queue";)

Greets

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Columnspan in tabulate
  2008-09-09  8:28         ` Marcin Borkowski
@ 2008-09-09  8:42           ` Taco Hoekwater
  2008-09-09  8:43           ` Hans Hagen
  1 sibling, 0 replies; 8+ messages in thread
From: Taco Hoekwater @ 2008-09-09  8:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Marcin Borkowski wrote:
> Dnia Tue, Sep 09, 2008 at 10:18:37AM +0200, Hans Hagen napisa&#322;(a):
>> ok, removed from my todo stack
> 
> That's interesting, I always thought it's a "todo queue";)

You obviously don't grasp context development yet ;-)


___________________________________________________________________________________
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] 8+ messages in thread

* Re: Columnspan in tabulate
  2008-09-09  8:28         ` Marcin Borkowski
  2008-09-09  8:42           ` Taco Hoekwater
@ 2008-09-09  8:43           ` Hans Hagen
  1 sibling, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2008-09-09  8:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Marcin Borkowski wrote:
> Dnia Tue, Sep 09, 2008 at 10:18:37AM +0200, Hans Hagen napisa&#322;(a):
>> ok, removed from my todo stack
> 
> That's interesting, I always thought it's a "todo queue";)

well, last added == fresh in mem and often at the top of my mail list so 
more visible; there is a queue too but i'll not tell you how small it is 
and what happens when it fills up -)


-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------
___________________________________________________________________________________
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] 8+ messages in thread

end of thread, other threads:[~2008-09-09  8:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-08  7:24 Columnspan in tabulate Wolfgang Schuster
2008-09-08  9:50 ` Hans Hagen
2008-09-08 10:01   ` Wolfgang Schuster
2008-09-09  6:53     ` Wolfgang Schuster
2008-09-09  8:18       ` Hans Hagen
2008-09-09  8:28         ` Marcin Borkowski
2008-09-09  8:42           ` Taco Hoekwater
2008-09-09  8:43           ` 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).