[NTG-context] Quick question about dual output pdf and epub
Hans van der Meer
havdmeer at ziggo.nl
Tue Mar 3 21:58:16 CET 2020
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 <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
>
> \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 at 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
> ___________________________________________________________________________________
More information about the ntg-context
mailing list