* Bug in export with \definehighlight
@ 2011-10-11 3:40 Aditya Mahajan
2011-10-12 2:43 ` Aditya Mahajan
0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2011-10-11 3:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug in export with \definehighlight
2011-10-11 3:40 Bug in export with \definehighlight Aditya Mahajan
@ 2011-10-12 2:43 ` Aditya Mahajan
2011-10-12 3:26 ` Aditya Mahajan
0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2011-10-12 2:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
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.
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug in export with \definehighlight
2011-10-12 2:43 ` Aditya Mahajan
@ 2011-10-12 3:26 ` Aditya Mahajan
2011-10-12 8:15 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2011-10-12 3:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug in export with \definehighlight
2011-10-12 3:26 ` Aditya Mahajan
@ 2011-10-12 8:15 ` Hans Hagen
0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2011-10-12 8:15 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 12-10-2011 05:26, Aditya Mahajan wrote:
> 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.
I've added mono/type, sans/sanserif and serif parsing (in next beta).
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-10-12 8:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-11 3:40 Bug in export with \definehighlight Aditya Mahajan
2011-10-12 2:43 ` Aditya Mahajan
2011-10-12 3:26 ` Aditya Mahajan
2011-10-12 8:15 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).