On Fri, 28 Mar 2014 09:56:12 +0100 Hans Hagen <pra...@wxs.nl> 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 ___________________________________________________________________________________