3 Mar
2020
3 Mar
'20
6:47 p.m.
On Tue, 3 Mar 2020 19:37:47 +0100
Hans van der Meer
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