ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Struggles with the bTABLE eTABLE environment
@ 2003-12-12  8:16 Willi Egger
  2003-12-12  9:31 ` Hans Hagen
  2003-12-12 10:04 ` Hans Hagen
  0 siblings, 2 replies; 4+ messages in thread
From: Willi Egger @ 2003-12-12  8:16 UTC (permalink / raw)


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

Hi Hans,

Currently I am using the following version under Windows:

ConTeXt  ver: 2003.11.26  fmt: 2003.11.27  int: english  mes: english
and pdfeTeXk, Version 3.141592-1.11a-2.1 

The attached code-sample breaks with an error of "missing number".
Because I am sure, that this kind of table compiled previously I tried
the following

Next to the current installation I run on a linuxbox ConTeXt  ver:
2003.7.3  fmt: 2003.7.7  int: english  mes: english without problem 
and pdfeTeX, Version 3.14159-1.00b-pretest-20020211-2.1

The attached code compiles to expectation.

Is there something changed in the bTABLE-eTABLE environment?

Thanks for looking into it.

Kind regards Willi


[-- Attachment #2: test.tex --]
[-- Type: text/x-tex, Size: 1400 bytes --]

% bTABLE - eTABLE environmnet

% Test code compile with ConTeXt  ver: 2003.7.3  fmt: 2003.7.7  int: english  mes: english without problem 
% and pdfeTeX, Version 3.14159-1.00b-pretest-20020211-2.1
% Test code breaks compilation with ConTeXt  ver: 2003.11.26  fmt: 2003.11.27  int: english  mes: english and
% pdfeTeXk, Version 3.141592-1.11a-2.1 


\setupoutput[pdftex]

\starttext
\bTABLE
\bTR
\bTD {\bf Chemische / fysische kenmerken:} \\

              {\setupTABLE[x][frame=off]
               \setupTABLE[y][frame=off]
               \bTABLE
                \bTR
                   \bTD Vocht: \eTD
                   \bTD \quad \% \eTD
                \eTR
                \bTR
                   \bTD Vet: \eTD
                   \bTD \quad \% \eTD
                \eTR
                \bTR
                    \bTD Eiwit \eTD
                    \bTD \quad \% \eTD
                \eTR
                \bTR
                    \bTD Zout \eTD
                    \bTD \quad \% \eTD
                \eTR
                \bTR
                    \bTD pH \eTD
                    \bTD \quad \eTD
                \eTR
              \eTABLE}
\eTD
\bTD{\bf Visuele en organoleptische eigenschappen:} \\
    \startitemize
       \item Geen beschadiging
       \item Geen vreemde stoffen
       \item Geen afwijkende geur
       \item Geen afwijkende kleur
    \stopitemize
\eTD
\eTR
\eTABLE
\stoptext

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

* Re: Struggles with the bTABLE eTABLE environment
  2003-12-12  8:16 Struggles with the bTABLE eTABLE environment Willi Egger
@ 2003-12-12  9:31 ` Hans Hagen
  2003-12-12 10:04 ` Hans Hagen
  1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2003-12-12  9:31 UTC (permalink / raw)


At 09:16 12/12/2003, you wrote:
>Hi Hans,
>
>Currently I am using the following version under Windows:
>
>ConTeXt  ver: 2003.11.26  fmt: 2003.11.27  int: english  mes: english
>and pdfeTeXk, Version 3.141592-1.11a-2.1
>
>The attached code-sample breaks with an error of "missing number".
>Because I am sure, that this kind of table compiled previously I tried
>the following
>
>Next to the current installation I run on a linuxbox ConTeXt  ver:
>2003.7.3  fmt: 2003.7.7  int: english  mes: english without problem
>and pdfeTeX, Version 3.14159-1.00b-pretest-20020211-2.1
>
>The attached code compiles to expectation.
>
>Is there something changed in the bTABLE-eTABLE environment?

only multiple split strategies were added (with repeated headlines and 
alternate headlines) ... i'll look into it, has to do with nested tables

Hans  

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

* Re: Struggles with the bTABLE eTABLE environment
  2003-12-12  8:16 Struggles with the bTABLE eTABLE environment Willi Egger
  2003-12-12  9:31 ` Hans Hagen
@ 2003-12-12 10:04 ` Hans Hagen
  2003-12-13 15:30   ` Willi Egger
  1 sibling, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2003-12-12 10:04 UTC (permalink / raw)


At 09:16 12/12/2003, you wrote:

>Is there something changed in the bTABLE-eTABLE environment?

ah .. i changed the default \push \pop macro's, so now i need global ones 
here:

\def\pushTBLparameters
   {\globalpushmacro\TBLlevel
    \ifcase\TBLpass
      % we're just after \bTABLE
    \else\ifnum\TBLlevel>\zerocount
      \doglobal\increment\TBLlevel\relax
    \fi\fi}

\def\popTBLparameters
   {\globalpopmacro\TBLlevel}

\def\pushTBL
   {\ifnum\TBLlevel=\zerocount
      \doglobal\increment\currenttbl\relax
    \fi
    \doglobal\increment\TBLlevel\relax
    \ifnum\TBLlevel>\plusone
      \resetallTABLEparameters
      \globalpushmacro\colTBL
      \globalpushmacro\rowTBL
    \else
      \global\intabletrue
    \fi}

\def\popTBL
   {\ifnum\TBLlevel>\plusone
      \globalpopmacro\rowTBL
      \globalpopmacro\colTBL
    \else
      \global\intablefalse
    \fi
    \doglobal\decrement\TBLlevel\relax}

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

* Re: Struggles with the bTABLE eTABLE environment
  2003-12-12 10:04 ` Hans Hagen
@ 2003-12-13 15:30   ` Willi Egger
  0 siblings, 0 replies; 4+ messages in thread
From: Willi Egger @ 2003-12-13 15:30 UTC (permalink / raw)


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

Hi Hans

thanks for the patch. Unfortunately it does not yet solve all struggles. 
When compiling the original test.tex of the previous mail, where in  a 
single table row there is a nested table in the first cell, it works 
correctly. Once you add another row before the row with the nested table 
the nested table part fails.

I would be greatful if you could investigate thie again.

Best wishes Willi

Hans Hagen wrote:

> At 09:16 12/12/2003, you wrote:
>
>> Is there something changed in the bTABLE-eTABLE environment?
>
>
> ah .. i changed the default \push \pop macro's, so now i need global 
> ones here:
>
> \def\pushTBLparameters
>   {\globalpushmacro\TBLlevel
>    \ifcase\TBLpass
>      % we're just after \bTABLE
>    \else\ifnum\TBLlevel>\zerocount
>      \doglobal\increment\TBLlevel\relax
>    \fi\fi}
>
> \def\popTBLparameters
>   {\globalpopmacro\TBLlevel}
>
> \def\pushTBL
>   {\ifnum\TBLlevel=\zerocount
>      \doglobal\increment\currenttbl\relax
>    \fi
>    \doglobal\increment\TBLlevel\relax
>    \ifnum\TBLlevel>\plusone
>      \resetallTABLEparameters
>      \globalpushmacro\colTBL
>      \globalpushmacro\rowTBL
>    \else
>      \global\intabletrue
>    \fi}
>
> \def\popTBL
>   {\ifnum\TBLlevel>\plusone
>      \globalpopmacro\rowTBL
>      \globalpopmacro\colTBL
>    \else
>      \global\intablefalse
>    \fi
>    \doglobal\decrement\TBLlevel\relax}
>
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context



[-- Attachment #2: test.tex --]
[-- Type: text/plain, Size: 1367 bytes --]

% bTABLE - eTABLE environmnet

% Test file compiles with the patch of 12-12-2003
% Boxing of the nested table fales.


\setupoutput[pdftex]

\starttext
\bTABLE
%\setupTABLE[column][1,2][width=0.5\textwidth]
%\setupTABLE[row][last][height=2cm]
\bTR
\bTD \bf Product: \eTD
\bTD \bf Code: \eTD
\eTR
\bTR
\bTD {\bf Chemische / fysische kenmerken:} \\


              {%\setupTABLE[column][1,2][width=3cm]
              \setupTABLE[x][frame=off]
               \setupTABLE[y][frame=off]
              \bTABLE
               \bTR
                   \bTD[width=2cm] Vocht: \eTD
                   \bTD \quad \% \eTD
                \eTR
                \bTR
                   \bTD Vet: \eTD
                   \bTD \quad \% \eTD
                \eTR
                \bTR
                    \bTD Eiwit \eTD
                    \bTD \quad \% \eTD
                \eTR
                \bTR
                    \bTD Zout \eTD
                    \bTD \quad \% \eTD
                \eTR
                \bTR
                    \bTD pH \eTD
                    \bTD \quad \eTD
                \eTR
              \eTABLE}
\eTD
\bTD{\bf Visuele en organoleptische eigenschappen:} \\
    \startitemize
       \item Geen beschadiging
       \item Geen vreemde stoffen
       \item Geen afwijkende geur
       \item Geen afwijkende kleur
    \stopitemize
\eTD
\eTR
\eTABLE
\stoptext

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

end of thread, other threads:[~2003-12-13 15:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-12  8:16 Struggles with the bTABLE eTABLE environment Willi Egger
2003-12-12  9:31 ` Hans Hagen
2003-12-12 10:04 ` Hans Hagen
2003-12-13 15:30   ` Willi Egger

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