\def\numeroLigneCode#1{\inframed[width=fit,strut=yes,frame=off,rightframe=on]{\switchtobodyfont[9pt]#1}}
\definetyping[code][numbering=line,page=yes,bodyfont=9pt,before={%
\begingroup%
\setuplinenumbering[location=text,align=left,style=\tt,command=\numeroLigneCode,distance=-.5em,width=2em]%
},after={\endgroup},tab=2]
\starttext
\startcode
one
two
three
\stopcode
\stoptext
The result is that the option "command=\numeroLigneCode" is oddly ignored.
If I put the command "\setuplinenumbering[location=text,align=left,style=\tt,command=\numeroLigneCode,distance=-.5em,width=2em]" outside of the definition of the verbatim zone "code", it works.
This behavior seems rather strange and when it collides with using verbatim zone enclosed in "framedtext", it leads to two line numbering overwriting each other.
regards,
Pierre-François.
Hello,
I've got some strange behavior with verbatim text :
<PastedGraphic-1.png>
The lines of the verbatim text got two different numbering that overwrite each other.
I think that I've read something about this but I don't find it in the mail archive.
If I remember correctly, there is a bug into the line number routine when you use a verbatim text into a column set with the paragraph command and when the verbatim text is enclosed into a frame.
Regards,
Pierre-François.
--
Universite de Limoges, Laboratoire XLIM | Tel : 06 28 18 03 38
123 av Albert Thomas | Mrs. Peel, we're needed...
87060 Limoges CEDEX - FRANCE | The Avengers.
___________________________________________________________________________________
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-contextwebpage :
http://www.pragma-ade.nl /
http://tex.aanhet.netarchive :
http://foundry.supelec.fr/projects/contextrev/wiki :
http://contextgarden.net___________________________________________________________________________________
--
Universite de Limoges, Laboratoire XLIM | Tel : 06 28 18 03 38
123 av Albert Thomas | Mrs. Peel, we're needed...
87060 Limoges CEDEX - FRANCE | The Avengers.