ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* tabulate span broken
@ 2011-01-10  9:46 Steffen Wolfrum
  2011-01-10 13:24 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Steffen Wolfrum @ 2011-01-10  9:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

as far as I remember, the following code worked up to december:

\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


Today it gives:
! Undefined control sequence.
<inserted text> ...lateuse \defineTABLEshorthands 
                                                  
\dofinalstarttabulate ...ount \the \everytabulate 
                                                  \tabulateparameter \c!inne...
<to be read again> 
                   \NC 
l.42 \NC
         \dorecurse{10}{text } \NC \dorecurse{8}{text } \NC
? 



Is there a substitute?
Steffen
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: tabulate span broken
  2011-01-10  9:46 tabulate span broken Steffen Wolfrum
@ 2011-01-10 13:24 ` Hans Hagen
  2011-01-10 14:16   ` Steffen Wolfrum
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2011-01-10 13:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Steffen Wolfrum

On 10-1-2011 10:46, Steffen Wolfrum wrote:
> Hi,
>
> as far as I remember, the following code worked up to december:
>
> \def\tabulateuse#1%
>   {\dorecurse{\numexpr2*#1-1\relax}{\span\omit}\raggedright\ignorespaces}
>
> \appendtoks
>     \let\use\tabulateuse
>     \defineTABLEshorthands

remove the previous line as there is no reason why tabulate should 
inherit all from table

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

\use2 seems to work but keep in mind that such local patches are not 
guaranteed to work (one never what logic is used deep down)

> \dorecurse{22}{text } \NC\NR
> \stoptabulate
>
> \stoptext
>
>
> Today it gives:
> ! Undefined control sequence.
> <inserted text>  ...lateuse \defineTABLEshorthands
>
> \dofinalstarttabulate ...ount \the \everytabulate
>                                                    \tabulateparameter \c!inne...
> <to be read again>
>                     \NC
> l.42 \NC
>           \dorecurse{10}{text } \NC \dorecurse{8}{text } \NC
> ?
>
>
>
> Is there a substitute?
> Steffen
> ___________________________________________________________________________________
> 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  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: tabulate span broken
  2011-01-10 13:24 ` Hans Hagen
@ 2011-01-10 14:16   ` Steffen Wolfrum
  0 siblings, 0 replies; 3+ messages in thread
From: Steffen Wolfrum @ 2011-01-10 14:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 10.01.2011 um 14:24 schrieb Hans Hagen:

> On 10-1-2011 10:46, Steffen Wolfrum wrote:
>> Hi,
>> 
>> as far as I remember, the following code worked up to december:
>> 
>> \def\tabulateuse#1%
>>  {\dorecurse{\numexpr2*#1-1\relax}{\span\omit}\raggedright\ignorespaces}
>> 
>> \appendtoks
>>    \let\use\tabulateuse
>>    \defineTABLEshorthands
> 
> remove the previous line as there is no reason why tabulate should inherit all from table
> 
>> \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
> 
> \use2 seems to work but keep in mind that such local patches are not guaranteed to work (one never what logic is used deep down)


... except you :-)

Thanks a lot!
Steffen
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2011-01-10 14:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-10  9:46 tabulate span broken Steffen Wolfrum
2011-01-10 13:24 ` Hans Hagen
2011-01-10 14:16   ` Steffen Wolfrum

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