On 23-5-2010 12:30, Taco Hoekwater wrote:
Wolfgang Schuster wrote:
Hi,
in the last current the table environment is broken.
\starttext
\starttable[|l|]
\NC text \NC\NR
\stoptable
\stoptext
That should have been the beta, because the problem is the
result of some extra \unexpanded prefixes Hans added in the
beta. I removed a few from tabl-tab.mkiv, and now tables
are fine again:
--- tabl-tab.mkiv~ 2010-05-21 17:27:59.000000000 +0200
+++ tabl-tab.mkiv 2010-05-23 12:25:57.786336147 +0200
@@ -985,7 +985,7 @@
\doif\@@tisplit\v!auto
{\ifinsidesplitfloat\let\@@tisplit\v!yes\fi}%
\doifinsetelse\@@tisplit{\v!yes,\v!repeat}
- {\unexpanded\def\stoptable{\stoptables\egroup}%
+ {\def\stoptable{\stoptables\egroup}%
\starttables}
{\doifelsenothing\@@tiframe
{\ifinsidefloat\else\startbaselinecorrection\fi}
@@ -993,7 +993,7 @@
\postponenotes
\firststagestartTABLE}}
-\unexpanded\def\stoptable
+\def\stoptable
{\chuckTABLEautorow % before the tail, else noalign problem
\insertTABLEtail
\TABLEnoalign{\globalletempty\@@TABLEhead}%
@@ -1228,7 +1228,7 @@
% \flushnotes
% \egroup}
-\unexpanded\def\stoptables
+\def\stoptables
{\chuckTABLEautorow % AM: before the tail, else noalign problem
\ifconditional\tablerepeattail\else\insertTABLEtail\fi
\finishTABLE
indeed those unexpanded's ... i came to this:
\unexpanded\def\starttable
{\bgroup
\let\stoptable\dostoptable
\doif\@@tisplit\v!auto
{\ifinsidesplitfloat\let\@@tisplit\v!yes\fi}%
\doifinsetelse\@@tisplit{\v!yes,\v!repeat}
{\unexpanded\def\stoptable{\stoptables\egroup}%
\starttables}
{\doifelsenothing\@@tiframe
{\ifinsidefloat\else\startbaselinecorrection\fi}
{\startframedcontent[\@@tiframe]}%
\postponenotes
\firststagestartTABLE}}
% We cannot define \unexpanded\def\dostoptable a ssomehow lookahead
% in alignments fail then, so we relax it and define it locally.
\let\stoptabel\relax
\def\dostoptable
if i remember right taco and i had plans to look into some of these
alignment lookahead problems some day in the perspective of luatex (low
priority)
Hans
--
-----------------------------------------------------------------
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
___________________________________________________________________________________