[NTG-context] \starttyping while processing XML causing error

Xan dxpublica at telefonica.net
Fri Mar 28 09:13:09 CET 2014


> 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


More information about the ntg-context mailing list