> > 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: CONTEXTLMTX=$HOME/TeX/context-lmtx ; export CONTEXTLMTX CONTEXTCURRENT=$CONTEXTLMTX ; export CONTEXTCURRENT MYTEXMFHOME=$HOME/TeX/texmf ; export MYTEXMFHOME TEXMF=$MYTEXMFHOME:$CONTEXTCURRENT/tex ; export TEXMF 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 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@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 > ___________________________________________________________________________________