I followed your advice and added the setup:
You need \setupbackend[export=yes] in your document.
This, however, does not result in an .epub file but an export directory containing an html and xhtml file (only partially conformant to the equivalent pdf). Can I get the output as an .epub file? Some more changes needed?
On Tue, 3 Mar 2020 19:37:47 +0100 Hans van der Meer
wrote: and then run with --mode=epub
I am running with: mtxrun --autogenerate --mode=epub --script context "$1" but no epub document is generated, just the same result.pdf I get without that mode.
You need
\setupbackend[export=yes]
in your document. When you put the setup above in a "epub" mode you create a epub-document only when you enable the mode which is recommended because it can have side effects for the normal PDF.
To avoid these side effects make an extra ConTeXt run by enabling the mode to get the epub file.
Wolfgang ___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________