From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59005 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: table bug Date: Sun, 23 May 2010 12:43:48 +0200 Message-ID: <4BF906E4.3080300@wxs.nl> References: <4BF7BC4C.8090608@googlemail.com> <4BF903C2.2050307@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1274611446 6807 80.91.229.12 (23 May 2010 10:44:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 23 May 2010 10:44:06 +0000 (UTC) Cc: Taco Hoekwater To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun May 23 12:44:04 2010 connect(): No such file or directory Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OG8f6-0005Bx-EC for gctc-ntg-context-518@m.gmane.org; Sun, 23 May 2010 12:44:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 68FCAC9C12; Sun, 23 May 2010 12:44:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id gPcjIBdgnTfE; Sun, 23 May 2010 12:44:00 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 517B3C9BF1; Sun, 23 May 2010 12:44:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9E668C9BD0 for ; Sun, 23 May 2010 12:43:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id tODvz+m5OFit for ; Sun, 23 May 2010 12:43:56 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (sc-162.r-213-125-29.schoolconnect.nu [213.125.29.162]) by balder.ntg.nl (Postfix) with ESMTP id 52E05C9BF1 for ; Sun, 23 May 2010 12:43:56 +0200 (CEST) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-9 (SurgeMail 4.3e) with ESMTP id 54-1713362 for multiple; Sun, 23 May 2010 12:43:53 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 In-Reply-To: <4BF903C2.2050307@elvenkind.com> X-Authenticated-User: hagen@controller-9 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:59005 Archived-At: 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 ___________________________________________________________________________________