[NTG-context] Quick question about dual output pdf and epub

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Tue Mar 3 19:47:47 CET 2020

On Tue, 3 Mar 2020 19:37:47 +0100
Hans van der Meer <havdmeer at ziggo.nl> 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


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.


More information about the ntg-context mailing list