Re: [NTG-context] TABLE in TABLE

2010-05-09 Thread Taco Hoekwater

Xan wrote:

Hi,

Is it possible to put a table in another table?


IIRC, putting the nested table in a buffer should work, but
maybe it is good enough to just add a brace group around it:
\bTD { \bTABLE ... \eTABLE } \eTD

Best wishes,
Taco
___
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
___


Re: [NTG-context] TABLE in TABLE

2010-05-09 Thread Peter Münster
On Sun, May 09 2010, Xan wrote:

 Is it possible to put a table in another table?

Yes:

\starttext
\bTABLE \bTR \bTD
  {\bTABLE \bTR \bTD bla \eTD \eTR \eTABLE}
\eTD \eTR \eTABLE
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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


Re: [NTG-context] TABLE in TABLE

2010-05-09 Thread Xan

Thanks all of you.
In other kind of ideas: is it a bug? Why we need {} for embed tables and 
not for embed itemizes in itemizes for example?


Please CCme
Xan.
___
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
___


Re: [NTG-context] TABLE in TABLE

2010-05-09 Thread Wolfgang Schuster

Am 09.05.10 14:37, schrieb Xan:

Thanks all of you.
In other kind of ideas: is it a bug? Why we need {} for embed tables 
and not for embed itemizes in itemizes for example?


It has to do with the way how TABLE is implemented, each cell is defined as

\def\bTD#1\eTD{...}

this means when TeX sees a \bTD in the input it grabs everything till 
the \eTD,

let's take a loo at this example

\bTABLE \bTR
\bTD
  \bTABLE \bTR
\bTD text \eTD
  \eTR \eTABLE
\eTD
\eTR \eTABLE

The \bTD from the outer table reads everything till the \eTD from the 
inner table
and what ends up as real content for the table cell where you wanted 
another table is


\bTABLE \bTR
  \bTD text

As you can see the \bTD as delimiting \eTD to end the cell and this is what
cause the error message you get. The braces ({...}) as suggested from 
the others

help in this case because the hide the \eTD from the outer table and buffers
as suggested from Taco are another way to get around this.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] TABLE in TABLE

2010-05-09 Thread Xan

Thanks for the technical and simple explanation

Xan.

En/na Wolfgang Schuster ha escrit:

Am 09.05.10 14:37, schrieb Xan:

Thanks all of you.
In other kind of ideas: is it a bug? Why we need {} for embed tables 
and not for embed itemizes in itemizes for example?


It has to do with the way how TABLE is implemented, each cell is 
defined as


\def\bTD#1\eTD{...}

this means when TeX sees a \bTD in the input it grabs everything till 
the \eTD,

let's take a loo at this example

\bTABLE \bTR
\bTD
  \bTABLE \bTR
\bTD text \eTD
  \eTR \eTABLE
\eTD
\eTR \eTABLE

The \bTD from the outer table reads everything till the \eTD from the 
inner table
and what ends up as real content for the table cell where you wanted 
another table is


\bTABLE \bTR
  \bTD text

As you can see the \bTD as delimiting \eTD to end the cell and this is 
what
cause the error message you get. The braces ({...}) as suggested from 
the others
help in this case because the hide the \eTD from the outer table and 
buffers

as suggested from Taco are another way to get around this.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] TABLE in TABLE

2006-04-10 Thread Hans Hagen
� wrote:
 Hello,
 a little feature request: a TABLE in a TABLE
 It would be nice, if something like the following could work:

 \starttext
 \bTABLE
 \bTR\bTD bla\eTD \eTR
 \bTR\bTD
   
{
   \bTABLE
   \bTR\bTD 1\eTD \eTR
   \bTR\bTD 2\eTD \eTR
   \eTABLE
   
}
 \eTD \eTR
 \eTABLE
 \stoptext

 Cheers, Peter

   


-- 

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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] TABLE in TABLE

2006-04-10 Thread Peter Münster
On Mon, 10 Apr 2006, Hans Hagen wrote:

  \bTR\bTD

 {
\bTABLE
\bTR\bTD 1\eTD \eTR
\bTR\bTD 2\eTD \eTR
\eTABLE

 }
  \eTD \eTR

I had the same idea, but I used \bgroup and \egroup instead of {}, and that
does not work. Strange...
Thank you, Hans!
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] TABLE in TABLE

2006-04-10 Thread Hans Hagen
� wrote:
 On Mon, 10 Apr 2006, Hans Hagen wrote:

   
 \bTR\bTD
   
   
 {
 
   \bTABLE
   \bTR\bTD 1\eTD \eTR
   \bTR\bTD 2\eTD \eTR
   \eTABLE
   
   
 }
 
 \eTD \eTR
   

 I had the same idea, but I used \bgroup and \egroup instead of {}, and that
 does not work. Strange...
   
not if you imagine that we have

\def\bTABLE[#1==options]#2\eTABLE

and something #2 can handle {nested stuff} but in the case of a \bgroup 
it means that #2==\bgroup  etc etc

Hans

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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context