From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67282 Path: news.gmane.org!not-for-mail From: Herbert Voss Newsgroups: gmane.comp.tex.context Subject: tabulate Date: Wed, 23 Mar 2011 14:01:41 +0100 Organization: Freie =?UTF-8?B?VW5pdmVyc2l0w6R0IEJlcmxpbg==?= Message-ID: <4D89EF35.9000307@FU-Berlin.DE> 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 1300885325 14390 80.91.229.12 (23 Mar 2011 13:02:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 23 Mar 2011 13:02:05 +0000 (UTC) To: "ntg-context@ntg.nl" Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 23 14:02:01 2011 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 1Q2NhJ-0002sS-20 for gctc-ntg-context-518@m.gmane.org; Wed, 23 Mar 2011 14:02:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 932F2CAAEF; Wed, 23 Mar 2011 14:01:46 +0100 (CET) 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 vAnB9d1hCUiv; Wed, 23 Mar 2011 14:01:44 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2675BCAAF7; Wed, 23 Mar 2011 14:01:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 658C3CAAF7 for ; Wed, 23 Mar 2011 14:01:42 +0100 (CET) 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 j+dgT2BfKIrx for ; Wed, 23 Mar 2011 14:01:31 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 4D2E4CAAEF for ; Wed, 23 Mar 2011 14:01:31 +0100 (CET) Original-Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2ND1gHj028965 for ; Wed, 23 Mar 2011 14:01:43 +0100 Original-Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) for ntg-context@ntg.nl with esmtp (envelope-from ) id <1Q2Nh0-0003rW-NH>; Wed, 23 Mar 2011 14:01:42 +0100 Original-Received: from p54bfae51.dip.t-dialin.net ([84.191.174.81] helo=shania.localhost) by inpost2.zedat.fu-berlin.de (Exim 4.69) for ntg-context@ntg.nl with esmtpsa (envelope-from ) id <1Q2Nh0-0004PI-Gu>; Wed, 23 Mar 2011 14:01:42 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Thunderbird/3.1.8 X-Originating-IP: 84.191.174.81 X-Bayes-Prob: 0.0005 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=130.133.4.66; country=DE; region=16; city=Berlin; latitude=52.5167; longitude=13.4000; http://maps.google.com/maps?q=52.5167,13.4000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05EmB1HCa - 8d31e47ac8d4 - 20110323 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.216 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:67282 Archived-At: this worked some time ago. Current minimal mkiv \def\tabulateuse#1{% \dorecurse{\numexpr2*#1-1\relax} {\span\omit}} \appendtoks \let\use\tabulateuse \defineTABLEshorthands \to \everytabulate \starttext \starttabulate[|l|Bc|c|c|c|r|] \NC a\NC b\NC c \NC d\NC e\NC f\NC\NR \NC a\NC \use2 b\NC d\NC e\NC f\NC\NR \NC a\NC \use3 b \NC e\NC f\NC\NR \NC \use4 a \NC e\NC f\NC\NR \stoptabulate \stoptext system > tex > error on line 10 in file 09-02-30.ctxcrop: Undefined control sequence ... 1 \def\tabulateuse#1{% 2 \dorecurse{\numexpr2*#1-1\relax} 3 {\span\omit}} 4 \appendtoks 5 \let\use\tabulateuse 6 \defineTABLEshorthands 7 \to \everytabulate 8 \starttext 9 \starttabulate[|l|Bc|c|c|c|r|] 10 >> \NC a\NC b\NC c \NC d\NC e\NC f\NC\NR 11 \NC a\NC \use2 b\NC d\NC e\NC f\NC\NR 12 \NC a\NC \use3 b \NC e\NC f\NC\NR 13 \NC \use4 a \NC e\NC f\NC\NR 14 \stoptabulate 15 \stoptext Herbert ___________________________________________________________________________________ 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 ___________________________________________________________________________________