Hi, The following gives an error: \setupbackend[export=yes] \starttext test \stoptext ! LuaTeX error ...minimals/texmf-context/tex/context/base/util-prs.lua:125: bad argument #2 to 'lpegmatch' (string expected, got boolean). system > tex > error on line 0 in file : LuaTeX error ... <empty file> <*> ./test ? Any ideas on how to fix this? Also, I looked at back-exp.mkiv and it appears that xhtml export is possible. If so, what is the command to enable it. (I am guessing \setupexport[export=yes, xhtml=yes] but cannot test it due to the above error). Aditya
On 6-5-2011 3:39, Aditya Mahajan wrote:
\setupbackend[export=yes] \starttext test \stoptext
I'll fix it. You can set an xhtml file as well as some css. \setupbackend[export=yes] \setupbackend[export=yes,xhtml=yes] \setupbackend[export=yes,xhtml=whatever.xhtml] \setupbackend[export=yes,css={whatever.css,somemore.css}] So, you can have dual output: pdf and xhtml. Normally the xml + css will do but if you also want interactivity then you need the xhtml option (adds some 'a' wrappers). I will also add an epub option for producing those epub zip files. I can send you an example (cld-mkvi) if needed that shows an example of css hooked into such output. That manual starts with: \setupbackend [export=cld-mkiv-export.xml, xhtml=cld-mkiv-export.xhtml, css={cld-mkiv-export.css,mathml.css}] There's an article in the eurotex proceedings about these issues. I don't know if Mojca has put the presentation somewhere online. 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 -----------------------------------------------------------------
On Fri, 6 May 2011, Hans Hagen wrote:
On 6-5-2011 3:39, Aditya Mahajan wrote:
\setupbackend[export=yes] \starttext test \stoptext
I'll fix it. You can set an xhtml file as well as some css.
\setupbackend[export=yes] \setupbackend[export=yes,xhtml=yes] \setupbackend[export=yes,xhtml=whatever.xhtml] \setupbackend[export=yes,css={whatever.css,somemore.css}]
Ah, thanks.
So, you can have dual output: pdf and xhtml. Normally the xml + css will do but if you also want interactivity then you need the xhtml option (adds some 'a' wrappers). I will also add an epub option for producing those epub zip files.
That will be great.
I can send you an example (cld-mkvi) if needed that shows an example of css hooked into such output. That manual starts with:
\setupbackend [export=cld-mkiv-export.xml, xhtml=cld-mkiv-export.xhtml, css={cld-mkiv-export.css,mathml.css}]
Please do send the example.
There's an article in the eurotex proceedings about these issues. I don't know if Mojca has put the presentation somewhere online.
I'll try to find that. Aditya
participants (2)
-
Aditya Mahajan
-
Hans Hagen