ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Willi Egger <w.egger@boede.nl>
Subject: Re: Struggles with the bTABLE eTABLE environment
Date: Sat, 13 Dec 2003 16:30:56 +0100	[thread overview]
Message-ID: <3FDB30B0.6030804@boede.nl> (raw)
In-Reply-To: <6.0.1.1.2.20031212105417.0204a7e8@server-1>

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

      reply	other threads:[~2003-12-13 15:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-12  8:16 Willi Egger
2003-12-12  9:31 ` Hans Hagen
2003-12-12 10:04 ` Hans Hagen
2003-12-13 15:30   ` Willi Egger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FDB30B0.6030804@boede.nl \
    --to=w.egger@boede.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).