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]



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

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.

If your question is of interest to others as well, please add an entry to the 

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

Reply via email to