From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70815 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: arbitrary tex-code in xml? Date: Mon, 22 Aug 2011 18:02:14 +0200 Message-ID: <4E527D86.3050705@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 1314028961 20226 80.91.229.12 (22 Aug 2011 16:02:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Aug 2011 16:02:41 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 22 18:02:36 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 1QvWxO-0008Qo-TA for gctc-ntg-context-518@m.gmane.org; Mon, 22 Aug 2011 18:02:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 498F4CAF03; Mon, 22 Aug 2011 18:02:33 +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 Cg+086yRBok3; Mon, 22 Aug 2011 18:02:29 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C02F2CAECB; Mon, 22 Aug 2011 18:02:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3B796CAECB for ; Mon, 22 Aug 2011 18:02:28 +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 AY+TJgRSw-2m for ; Mon, 22 Aug 2011 18:02:17 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id E0493CAE56 for ; Mon, 22 Aug 2011 18:02:16 +0200 (CEST) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p7MG2F9e012664 for ; Mon, 22 Aug 2011 18:02:16 +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 68028080 for ntg-context@ntg.nl; Mon, 22 Aug 2011 18:02:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20110707 Thunderbird/5.0 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: 0aFns2gh6 - 29a3955ffe39 - 20110822 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:70815 Archived-At: Hi all, must be the heat here in Germany - I'm all out of ideas, and I have no example yet. Maybe someone can help: is it possible to define an xml setup that will run arbitrary tex code? Something like this (obviously pseudo-code): in a TeX file MyInputs.tex which will be loaded at runtime, I have: \startTEXbuffer[mybuffer] \color[red]{Hello World!} \stopTEXbuffer in the xml, I have mybuffer and in the setups \input MyInputs \startxmlsetups xml:gettexbuffer \getTEXbuffer[\xmlflush{#1}] \stopxmlsetups I tried with simple \startbuffer[mybuffer] ... \getbuffer[mybuffer], but the result is that the TeX code is typeset verbatim, not processed (problem of catcodes?). Any takers before I pull myself together and try to come up with an example? Thanks! 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 ___________________________________________________________________________________