From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86819 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 14:59:27 +0100 Message-ID: <20140328145927.72ac2bc453b06a9d6563df9e@telefonica.net> References: <20140327094611.df1dcee8dc37c4f8c22f28cd@telefonica.net> <20140328091309.bf6faebdad18606dadcf8315@telefonica.net> <5335392C.3040601@wxs.nl> 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 1396015175 19900 80.91.229.3 (28 Mar 2014 13:59:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Mar 2014 13:59:35 +0000 (UTC) Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 28 14:59:45 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 1WTXJx-0005Lr-K3 for gctc-ntg-context-518@m.gmane.org; Fri, 28 Mar 2014 14:59:45 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E03DD101F3; Fri, 28 Mar 2014 14:59:44 +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 FsMAizA9i9XB; Fri, 28 Mar 2014 14:59:42 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id AA9A9101EB; Fri, 28 Mar 2014 14:59:42 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E835C101EB for ; Fri, 28 Mar 2014 14:59:41 +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 ZHY9zFzX3YEP for ; Fri, 28 Mar 2014 14:59:40 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 3C60A101EA for ; Fri, 28 Mar 2014 14:59:30 +0100 (CET) Original-Received: from smtp.movistar.es (smtp21.acens.net [86.109.99.145]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s2SDxSOG027190 for ; Fri, 28 Mar 2014 14:59:29 +0100 X-CTCH-RefID: str=0001.0A0B0202.53358040.0001, 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 532F599C002CB6C6; Fri, 28 Mar 2014 13:59:28 +0000 In-Reply-To: <5335392C.3040601@wxs.nl> 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.145; 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: 0QLH1XtSA - 8144bf504a85 - 20140328 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:86819 Archived-At: On Fri, 28 Mar 2014 09:56:12 +0100 Hans Hagen ha escrit: > On 3/28/2014 9:13 AM, Xan wrote: > >> 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 > > > > different catcode regimes > > > How can I achieve this results? (numbering line and color basically) > > \startlinenumbering > > etc Many thanks. But \setuplinenumbering[location=intext,prefix=codi] seems to have no effect in \startxmlsetups xml:demo:codi \blank \startlinenumbering\xmlverbatim{#1}\stoplinenumbering \blank \stopxmlsetups the numbers seems that always are inmargin. 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 ___________________________________________________________________________________