From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86805 Path: news.gmane.org!not-for-mail From: Xan Newsgroups: gmane.comp.tex.context Subject: Re: \starttyping while processing XML causing error Date: Fri, 28 Mar 2014 09:13:09 +0100 Message-ID: <20140328091309.bf6faebdad18606dadcf8315@telefonica.net> References: <20140327094611.df1dcee8dc37c4f8c22f28cd@telefonica.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1395994397 24345 80.91.229.3 (28 Mar 2014 08:13:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Mar 2014 08:13:17 +0000 (UTC) Cc: mailing list for ConTeXt users To: Xan Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 28 09:13:27 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WTRup-0001ti-KV for gctc-ntg-context-518@m.gmane.org; Fri, 28 Mar 2014 09:13:27 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F2ACF101F5; Fri, 28 Mar 2014 09:13:26 +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 4cNXuPQmQEE0; Fri, 28 Mar 2014 09:13:25 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 03F96101EB; Fri, 28 Mar 2014 09:13:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BFD24101EB for ; Fri, 28 Mar 2014 09:13:23 +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 CzN8JjzPaROo for ; Fri, 28 Mar 2014 09:13:22 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 30903101EA for ; Fri, 28 Mar 2014 09:13:12 +0100 (CET) Original-Received: from smtp.movistar.es (smtp22.acens.net [86.109.99.146]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s2S8DA87031764 for ; Fri, 28 Mar 2014 09:13:11 +0100 X-CTCH-RefID: str=0001.0A0B0209.53352F16.005C, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-Spam: Unknown Original-Received: from rulot (81.32.88.229) by smtp.movistar.es (8.6.117.05) (authenticated as dxpublica) id 53205A14008A155C; Fri, 28 Mar 2014 08:13:10 +0000 In-Reply-To: <20140327094611.df1dcee8dc37c4f8c22f28cd@telefonica.net> X-Mailer: Sylpheed 3.3.1 (GTK+ 2.24.22; i686-pc-linux-gnu) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=86.109.99.146; country=ES; latitude=40.0000; longitude=-4.0000; http://maps.google.com/maps?q=40.0000,-4.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06LGUdb6C - 3bbe676dc5e8 - 20140328 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86805 Archived-At: > On 3/27/2014 9:46 AM, Xan wrote: > > \starttext > > > > A > > \xmlprocessfile{demo}{./dades.xml}{} > > B > > \stoptext > > \startxmlsetups xml:demo:code > \blank > \start \ttx > \xmlverbatim{#1} > \stop > \blank > \stopxmlsetups First of all, thank you very much, Hans. But why can't I use \defineframedtext[framedcode][strut=yes,offset=2mm,width=7cm,align=right] \definetyping[code][numbering=line,bodyfont=small,before={\startframedcode},after={\stopframedcode}] \setuplinenumbering[location=intext] \setuptyping[option=color] startxmlsetups xml:demo:codi \blank \startcode\xmlverbatim{#1}\stopcode \blank \stopxmlsetups How can I achieve this results? (numbering line and color basically) Thanks, Xan ___________________________________________________________________________________ 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 ___________________________________________________________________________________