Hi Hans, I've found the following problem after I instaled last beta. With my previous version (9,10/2002?) it worked fine. I can debug it on my side, but probably you find the cause and the solution more quickly: <...many lines of log...> ! Undefined control sequence. <argument> \localwidth \ExpandBothAfter ...anded {\noexpand #1{#2 }{#3}}\@@expanded \inTBLcell ...width {\v!passend ,\v!ruim } {} {\scratchdimen \gettbla... \handleTBLcell ...CELL \inTBLcell {#1}{#2} }}\scratchdimen \gettblwid ... <inserted text> ...ttblcol \makeTBL {4}{3} \nexttblcol \makeTBL {4}{4}... \endTBL ...ltypesettingtrue \the \tbltoks }\ifautoTBLspread \checktbl... ... l.409 } ? ! Undefined control sequence. <argument> ...L \relax \ifdim \localwidth >\scratchdimen \settblaut \... \secondoftwoarguments #1#2->#2 \handleTBLcell ...CELL \inTBLcell {#1}{#2} }}\scratchdimen \gettblwid ... <inserted text> ...ttblcol \makeTBL {4}{3} \nexttblcol \makeTBL {4}{4}... \endTBL ...ltypesettingtrue \the \tbltoks }\ifautoTBLspread \checktbl... \eTABLE ...{\row }{\col }}}\eTBL }\endTBL \egroup \egroup \popTBL ... l.409 } ? ! Missing number, treated as zero. <to be read again> > <argument> ... \relax \ifdim \localwidth > \scratchdimen \settblaut \c... \secondoftwoarguments #1#2->#2 \handleTBLcell ...CELL \inTBLcell {#1}{#2} }}\scratchdimen \gettblwid ... <inserted text> ...ttblcol \makeTBL {4}{3} \nexttblcol \makeTBL {4}{4}... \endTBL ...ltypesettingtrue \the \tbltoks }\ifautoTBLspread \checktbl... ... l.409 } ? ! Illegal unit of measure (pt inserted). <to be read again> > <argument> ... \relax \ifdim \localwidth > \scratchdimen \settblaut \c... \secondoftwoarguments #1#2->#2 \handleTBLcell ...CELL \inTBLcell {#1}{#2} }}\scratchdimen \gettblwid ... <inserted text> ...ttblcol \makeTBL {4}{3} \nexttblcol \makeTBL {4}{4}... \endTBL ...ltypesettingtrue \the \tbltoks }\ifautoTBLspread \checktbl... ... l.409 } ? ! Missing \cr inserted. <inserted text> \cr <to be read again> } \handleTBLcell ...LL \inTBLcell {#1}{#2}}} \scratchdimen \gettblwid \c... <inserted text> ...ttblcol \makeTBL {4}{3} \nexttblcol \makeTBL {4}{4}... \endTBL ...ltypesettingtrue \the \tbltoks }\ifautoTBLspread \checktbl... \eTABLE ...{\row }{\col }}}\eTBL }\endTBL \egroup \egroup \popTBL ... l.409 } ? ! Missing } inserted. <inserted text> } <to be read again> \cr <to be read again> } \handleTBLcell ...LL \inTBLcell {#1}{#2}}} \scratchdimen \gettblwid \c... <inserted text> ...ttblcol \makeTBL {4}{3} \nexttblcol \makeTBL {4}{4}... \endTBL ...ltypesettingtrue \the \tbltoks }\ifautoTBLspread \checktbl... ... l.409 } ? ! Missing \cr inserted. <inserted text> \cr <to be read again> } <to be read again> \cr <to be read again> } \handleTBLcell ...LL \inTBLcell {#1}{#2}}} \scratchdimen \gettblwid \c... <inserted text> ...ttblcol \makeTBL {4}{3} \nexttblcol \makeTBL {4}{4}... ... l.409 } -------- Martin Kolarik Moravske Pristroje, a.s., Masarykova 1148, Zlin 76302 tel. +420 603 498 498, fax +420 577 107 171 web: http://www.mii.cz -------- e-mail: kolarik@mii.cz e-mail: kolarik@click.cz tel. +420 603 535 593 -------- Martin Kolarik Moravske Pristroje, a.s., Masarykova 1148, Zlin 76302 tel. +420 603 498 498, fax +420 577 107 171 web: http://www.mii.cz -------- e-mail: kolarik@mii.cz e-mail: kolarik@click.cz tel. +420 603 535 593
At 02:26 PM 2/14/2003 +0100, you wrote:
Hi Hans,
I've found the following problem after I instaled last beta. With my previous version (9,10/2002?) it worked fine. I can debug it on my side, but probably you find the cause and the solution more quickly:
<...many lines of log...>
! Undefined control sequence. <argument> \localwidth
can you send me a failing table to test in core-rul we have: \edef\localwidth {\framedparameter\c!breedte}% so i wonder why it fails (pretty old code btw) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
Hi Hans, there the failing code is: \starttext \bTABLE \setupTABLE[column][1][aligncharacter=yes,alignmentcharacter={,}]% \bTR \bTD \bgroup 0,0 \egroup \eTD \eTR \eTABLE \stoptext The table is really simplified :-). The failure occurs only if both alignment definition and \bgroup\egroup inside cell is used. If grouping or alignment is missing the code is accepted. Have a nice day and thanks, Martin -------- Martin Kolarik Moravske Pristroje, a.s., Masarykova 1148, Zlin 76302 tel. +420 603 498 498, fax +420 577 107 171 web: http://www.mii.cz -------- e-mail: kolarik@mii.cz e-mail: kolarik@click.cz tel. +420 603 535 593
Hi Hans, did you find some solution or hit to my problem with grouping and decimal alignment in natural tables? Thanks a have a nice day, Martin
-----Original Message----- From: ntg-context-admin@ntg.nl [mailto:ntg-context-admin@ntg.nl]On Behalf Of Martin Kolařík Sent: Friday, February 14, 2003 2:26 PM To: ConTeXt Subject: [NTG-context] problem with tables
Hi Hans,
I've found the following problem after I instaled last beta. With my previous version (9,10/2002?) it worked fine. I can debug it on my side, but probably you find the cause and the solution more quickly:
<...many lines of log...>
! Undefined control sequence. <argument> \localwidth
\ExpandBothAfter ...anded {\noexpand #1{#2 }{#3}}\@@expanded \inTBLcell ...width {\v!passend ,\v!ruim } {} {\scratchdimen \gettbla... \handleTBLcell ...CELL \inTBLcell {#1}{#2} }}\scratchdimen \gettblwid ... <inserted text> ...ttblcol \makeTBL {4}{3} \nexttblcol \makeTBL {4}{4}... \endTBL ...ltypesettingtrue \the \tbltoks }\ifautoTBLspread \checktbl... ... l.409 }
At 09:37 AM 3/1/2003 +0100, you wrote:
Hi Hans,
did you find some solution or hit to my problem with grouping and decimal alignment in natural tables?
i remember that i looked into dec alignment recently, what was the problem? Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
the problem occurs in the last beta too and it touches bTABLE. Both the next conditions must be fulfiled to get an error: 1. aligncharacter=yes,alignmentcharacter={,} in setup (I used \setupTABLE) 2. grouping inside cell which is touched by setting defined in 1. Next ConTeXt reports and error: ! Undefined control sequence. <argument> \localwidth \ExpandBothAfter ...anded {\noexpand #1{#2 }{#3}}\@@expanded \inTBLcell ...width {\v!passend ,\v!ruim } {} {\scratchdimen \gettbla... \handleTBLcell ...CELL \inTBLcell {#1}{#2} }}\scratchdimen \gettblwid ... <inserted text> ...ttblcol \makeTBL {4}{3} \nexttblcol \makeTBL {4}{4}... \endTBL ...ltypesettingtrue \the \tbltoks }\ifautoTBLspread \checktbl... ... l.409 } If the grouping is removed from the cell, the error does not occur, but the cell content is typeset badly. I sent you some example, I try to look for it, if you need. Thanks, Martin
-----Original Message----- From: ntg-context-admin@ntg.nl [mailto:ntg-context-admin@ntg.nl]On Behalf Of Hans Hagen Sent: Wednesday, March 12, 2003 12:44 AM To: ntg-context@ntg.nl Subject: RE: [NTG-context] problem with tables
At 09:37 AM 3/1/2003 +0100, you wrote:
Hi Hans,
did you find some solution or hit to my problem with grouping and decimal alignment in natural tables?
i remember that i looked into dec alignment recently, what was the problem?
Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
At 11:26 AM 3/12/2003 +0100, Martin Kolarík wrote:
the problem occurs in the last beta too and it touches bTABLE. Both the next conditions must be fulfiled to get an error:
1. aligncharacter=yes,alignmentcharacter={,} in setup (I used \setupTABLE)
2. grouping inside cell which is touched by setting defined in 1.
In the current release this works ok: \setupTABLE[c][1][aligncharacter=yes] \bTABLE \bTR \bTD 123,0 \eTD \eTR \bTR \bTD 13,0 \eTD \eTR \bTR \bTD 3,0 \eTD \eTR \eTABLE ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
Sure, but this? (I've added grouping, it must be present to get error) \setupTABLE[c][1][aligncharacter=yes] \bTABLE \bTR \bTD \bgroup 123,0 \egroup \eTD \eTR \bTR \bTD 13,0 \eTD \eTR \bTR \bTD 3,0 \eTD \eTR \eTABLE Thanks, Martin
At 12:37 PM 3/12/2003 +0100, you wrote:
Sure,
but this? (I've added grouping, it must be present to get error)
\setupTABLE[c][1][aligncharacter=yes]
\bTABLE \bTR \bTD \bgroup 123,0 \egroup \eTD \eTR \bTR \bTD 13,0 \eTD \eTR \bTR \bTD 3,0 \eTD \eTR \eTABLE
hm, why do you need the grouping? The string is parsed, so grouping like this will spoil thing s Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
:-) yes, the autumn version allowed this :-) I do not need grouping for this simple case, this is only an extracted minimal example. The real situation occurs in relative complex table typeset automatically from CSV -- CSV content is loaded, parsed, recomputed, stored into some toks and reused/typeset more times. As I remember the grouping causing error in my case is \startcolor[] \stopcolor. Now I dig into problem and I'll send you more info (I forgot the cause :-) Thanks, Martin
-----Original Message----- From: ntg-context-admin@ntg.nl [mailto:ntg-context-admin@ntg.nl]On Behalf Of Hans Hagen Sent: Wednesday, March 12, 2003 12:46 PM To: ntg-context@ntg.nl Subject: RE: [NTG-context] problem with tables
At 12:37 PM 3/12/2003 +0100, you wrote:
Sure,
but this? (I've added grouping, it must be present to get error)
\setupTABLE[c][1][aligncharacter=yes]
\bTABLE \bTR \bTD \bgroup 123,0 \egroup \eTD \eTR \bTR \bTD 13,0 \eTD \eTR \bTR \bTD 3,0 \eTD \eTR \eTABLE
hm, why do you need the grouping? The string is parsed, so grouping like this will spoil thing s
Hans
------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
At 12:58 PM 3/12/2003 +0100, you wrote:
:-) yes, the autumn version allowed this :-)
I do not need grouping for this simple case, this is only an extracted minimal example. The real situation occurs in relative complex table typeset automatically from CSV -- CSV content is loaded, parsed, recomputed, stored into some toks and reused/typeset more times. As I remember the grouping causing error in my case is \startcolor[] \stopcolor.
color can be set with a cell parameter Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
Not colors -- the grouping in this case is due to some computing -- cell of table contains macro typesetting \count or \dim as number grouped by three digits. And inside this macro/s some grouping occurs. Martin
participants (3)
-
Hans Hagen
-
Martin Kolarík
-
Martin Kolařík