![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Tue, 11 Oct 2011, Aditya Mahajan wrote:
On Mon, 10 Oct 2011, Aditya Mahajan wrote:
Compiling the following document
~~~ \definehighlight [object] [style=mono]
\setupbackend [export=yes]
\starttext \object{test} \stoptext ~~~
gives
backend > export > saving xml data in 'test.export backend > export > saving css image definitions in 'test-images.css backend > export > saving css style definitions in 'test-styles.css ! LuaTeX error bad argument #3 to '?' (value expected).
system > tex > error on line 0 in file : LuaTeX error ...
<empty file>
<*> ./test \stoptext
Quick workaround: use \definestartstop instead of \definehighlight.
The "bug" is with xml.css.fontspecification function that does not handle style=mono (or sans and serif for that matter). The proper solution is to convert from context font specification into html font specification for all styles. Aditya