From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70817 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: arbitrary tex-code in xml? Date: Mon, 22 Aug 2011 19:31:55 +0200 Message-ID: <4E52928B.5000305@uni-bonn.de> References: <4E527D86.3050705@uni-bonn.de> <4E528FB6.5010005@wxs.nl> 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 1314034339 26142 80.91.229.12 (22 Aug 2011 17:32:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Aug 2011 17:32:19 +0000 (UTC) Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 22 19:32:14 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 1QvYM9-0000yr-1f for gctc-ntg-context-518@m.gmane.org; Mon, 22 Aug 2011 19:32:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ECE00CAEFF; Mon, 22 Aug 2011 19:32:11 +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 aTwOMZUYhJEK; Mon, 22 Aug 2011 19:32:08 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CCA56CAECB; Mon, 22 Aug 2011 19:32:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 06B11CAECB for ; Mon, 22 Aug 2011 19:32:08 +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 slNymKOxWpHL for ; Mon, 22 Aug 2011 19:31:57 +0200 (CEST) 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 E2514CAE56 for ; Mon, 22 Aug 2011 19:31:56 +0200 (CEST) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p7MHVut0029131 for ; Mon, 22 Aug 2011 19:31:56 +0200 Original-Received: from [87.178.24.197] (account tschmit1@uni-bonn.de HELO [192.168.0.3]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.2.12) with ESMTPSA id 68032972; Mon, 22 Aug 2011 19:31:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20110707 Thunderbird/5.0 In-Reply-To: <4E528FB6.5010005@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=131.220.15.113; country=DE; region=07; city=Bonn; latitude=50.7333; longitude=7.1000; http://maps.google.com/maps?q=50.7333,7.1000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05FntvUkf - 6d5b8b6d172d - 20110822 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:70817 Archived-At: On 08/22/2011 07:19 PM, Hans Hagen wrote: > > I know that I should refuse to answer questions without a minimal > example ... I'm pretty sure that your students can't use the heat-wave > excuse. You're right, of course, for educational purposes... As for my students: they use the weirdest excuses anyway... > > \startbuffer[example] > > weird > > \stopbuffer > > \startbuffer[weird] > \color[red]{Looks red to me!} > \stopbuffer > > \startxmlsetups xml:mysetups > \xmlsetsetup{#1}{*}{xml:*} > \stopxmlsetups > > \xmlregistersetup{xml:mysetups} > > \startxmlsetups xml:something > \blank \relax [start something] \blank > \xmlflush{#1} > \blank \relax [stop something] \blank > \stopxmlsetups > > \startxmlsetups xml:sometex > \pushcatcodetable > \catcodetable\ctxcatcodes > \getbuffer[\xmlflush{#1}] > \popcatcodetable > \stopxmlsetups > > \starttext > \xmlprocessbuffer{main}{example}{} > \stoptext > > I'll replace \processTEXbuffer by: > > \unexpanded\def\processTEXbuffer > {\dosingleempty\doprocessTEXbuffer} > > \def\doprocessTEXbuffer[#1]% > {\pushcatcodetable > \catcodetable\ctxcatcodes > \getbuffer[#1]% > \popcatcodetable} > > so that you can say: > > \startxmlsetups xml:sometex > \processTEXbuffer[\xmlflush{#1}] > \stopxmlsetups Excellent, it must be less hot in Hasselt then... Thanks for the example, and for the solution! So \processTEXbuffer will end up in the core? All best Thomas ___________________________________________________________________________________ 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 ___________________________________________________________________________________