From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72149 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: xtables in custom macros Date: Fri, 04 Nov 2011 13:48:20 +0100 Message-ID: <4EB3DF14.3060808@wxs.nl> References: <20111103193727.232750@gmx.net> <20111103220143.44520@gmx.net> <4EB3B28C.2000908@wxs.nl> <4EB3BA62.2010405@uni-bonn.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 1320410931 14707 80.91.229.12 (4 Nov 2011 12:48:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 Nov 2011 12:48:51 +0000 (UTC) Cc: "Thomas A. Schmitz" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 04 13:48:47 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 1RMJCQ-0008By-3T for gctc-ntg-context-518@m.gmane.org; Fri, 04 Nov 2011 13:48:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BA3A8CB0BC; Fri, 4 Nov 2011 13:48:43 +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 vEpMeO9RNJQO; Fri, 4 Nov 2011 13:48:37 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8D898CB0B4; Fri, 4 Nov 2011 13:48:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7D7DBCB0B4 for ; Fri, 4 Nov 2011 13:48:36 +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 XEL1eOH2ajiW for ; Fri, 4 Nov 2011 13:48:27 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 0B668CB0B3 for ; Fri, 4 Nov 2011 13:48:27 +0100 (CET) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pA4CmPMY004117 for ; Fri, 4 Nov 2011 13:48:26 +0100 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 pragma-net.nl (SurgeMail 5.3h2) with ESMTP (TLS) id 3280-1713362 for multiple; Fri, 04 Nov 2011 13:48:22 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 In-Reply-To: <4EB3BA62.2010405@uni-bonn.de> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=11; city=Den Haag; latitude=52.0833; longitude=4.3000; http://maps.google.com/maps?q=52.0833,4.3000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03FR0Mpg6 - 446ad906122e - 20111104 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:72149 Archived-At: On 4-11-2011 11:11, Thomas A. Schmitz wrote: > On 11/4/11 10:38 AM, Hans Hagen wrote: >> \def\test >> {\setbuffer[demo] >> \startxtable >> \startxrow >> \startxcell does not work \stopxcell >> \stopxrow >> \stopxtable >> \endbuffer >> \processxtablebuffer[demo]} > > > Hans, > > is the solution to my xml problem along these lines as well? Example: > > \startbuffer[test] > > > > > One > > > Two > > > > > Three > > > Four > > >
>
> \stopbuffer > > \startxmlsetups xml:testsetups > \xmlsetsetup{main}{a|table|tablerow|tablecell}{xml:*} > \stopxmlsetups > > \xmlregistersetup{xml:testsetups} > > \startxmlsetups xml:a > \xmlflush{#1} > \stopxmlsetups > > \startxmlsetups xml:table > \startxtable > \xmlflush{#1} > \stopxtable > \stopxmlsetups > > \startxmlsetups xml:tablerow > \startxrow > \xmlflush{#1} > \stopxrow > \stopxmlsetups > > \startxmlsetups xml:tablecell > \startxcell \xmlflush{#1} \stopxcell > \stopxmlsetups > > \starttext > \xmlprocessbuffer{main}{test}{} > \stoptext > > Would like to find a way to use the new mechanism with xml. In the next beta .. still somewhat experimental as we need to deal with all kind of situations, like \asciimode in regular tex. \startbuffer[test] One Two Three Four
\stopbuffer \startxmlsetups xml:testsetups \xmlsetsetup{main}{b|table|tablerow|tablecell}{xml:*} \stopxmlsetups \xmlregistersetup{xml:testsetups} \startxmlsetups xml:b \bold{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:table \startembeddedxtable \xmlflush{#1} \stopembeddedxtable \stopxmlsetups \startxmlsetups xml:tablerow \startxrow \xmlflush{#1} \stopxrow \stopxmlsetups \startxmlsetups xml:tablecell \startxcell \xmlflush{#1} \stopxcell \stopxmlsetups \starttext \xmlprocessbuffer{main}{test}{} \stoptext 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 ___________________________________________________________________________________