Hi, When using verbatim text (for source code) in mkiv:
"Line numbers in the text" as well as /BTEX … /ETEX (for colors) don't work. It is fine using mkii. Attached the two minimal examples. Adam
\setupcolors[state=start] \starttext %% SC colors %% \definecolor [SCwhite] [r=1.0, g=1.0, b=1.0] \definecolor [SCblack] [r=0.0, g=0.0, b=0.0] \definecolor [SCblue] [r=0.0, g=0.0, b=0.75] \definecolor [SCred] [r=0.75, g=0.0, b=0.0] \definecolor [SCgrey] [r=0.376, g=0.376, b=0.376] \definecolor [SCgreen] [r=0.0, g=0.45, b=0.0] \definecolor[cirmaBlue] [r=.0,g=.2,b=.6] \defineframedtext [framedSC] [framecolor=cirmaBlue, strut=yes, offset=2mm, width=local, align=right] \definetyping[SC][option=commands, tab=2,numbering=line, before={\startframedSC}, after={\stopframedSC}] \startSC /BTEX{\color[SCred] //// an example starting with a comment}/ETEX /BTEX{\color[SCgrey] ``this is a string''}/ETEX .postln ; /BTEX{\color[SCgreen] \letterbackslash aSymbol}/ETEX ; /BTEX{\color[SCblue] ThisClassDoesNotExists}/ETEX ; \stopSC \stoptext
\starttext \defineframedtext [framedcode] [strut=yes, offset=2mm, width=7cm, align=right] \definetyping[code][numbering=line, bodyfont=small, before={\startframedcode}, after={\stopframedcode}] \setuplinenumbering[location=intext] \startcode This is the first line This is a rather long line that is wrapped, so look how the line numbering is done Another line Last line after an empty line \stopcode \stoptext
___________________________________________________________________________________ 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 ___________________________________________________________________________________