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

Hans van der Meer havdmeer at ziggo.nl
Tue Mar 3 19:37:47 CET 2020

> 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.

In .bashrc using:
# The current version of the ConTeXt luametatex in use:
PATH=$CONTEXTCURRENT/tex/texmf-osx-64/bin:$PATH ; export PATH

Log shows: ConTeXt  ver: 2019.10.02 12:53 MKIV beta  fmt: 2019.10.2

I am doing something wrong here?

dr. Hans van der Meer

> On 28 Feb 2020, at 12:07, Hans Hagen <j.hagen at xs4all.nl> wrote:
> On 2/28/2020 11:48 AM, Christoph Hinterm├╝ller wrote:
>> Hi
>> Hust not to miss something or mess up every thing.
>> Can i setup my document preamble such that i can without any switching
>> create pdf and epub output at the same time.
>> Want to provide my lecture notes in pdf and epub format.
>> In other words does it have any side effects on pdf output, if i put
>> \setuptoutput command preparing document for xhtml/epub output in my
>> document preamble/main document?
>> Or would i have to enclose this in some \ifelse conditional block? If
>> is there a possibility to control condition from mtxrun command line?
> Currently it is created at the same time but it runs slower. Indeed using some mode makes sense because you might also want to have a different layout (the simpler, the less possible side effects, actually when doing epub or export using some very large page also makes sense as then there can be less interference of page breaks and so).
> \startmode [epub]
>  ....
> \stopmode
> and then run with --mode=epub
> Hans
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200303/8b23e4e6/attachment.htm>

More information about the ntg-context mailing list