From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106425 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Re: Quick question about dual output pdf and epub Date: Tue, 3 Mar 2020 19:37:47 +0100 Message-ID: <98ECB190-7548-4CE7-BB15-A8152B59C54B@ziggo.nl> References: <01a4ea1b18a2ebebde35205655430c4377585b9c.camel@out-world.com> <5119fbdb-70da-62dc-cacc-fc3726c4b5d0@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: multipart/mixed; boundary="===============8757604617118526070==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="63607"; mail-complaints-to="usenet@ciao.gmane.io" To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 03 19:38:41 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j9CRF-000GRh-Al for gctc-ntg-context-518@m.gmane-mx.org; Tue, 03 Mar 2020 19:38:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 07DDB18264E; Tue, 3 Mar 2020 19:37:51 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ge0ZQT4T4oMH; Tue, 3 Mar 2020 19:37:50 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 11C24182654; Tue, 3 Mar 2020 19:37:50 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CC3E618264C for ; Tue, 3 Mar 2020 19:37:48 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Sh2zC5NHVAS6 for ; Tue, 3 Mar 2020 19:37:47 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=212.54.42.166; helo=smtpq3.tb.mail.iss.as9143.net; envelope-from=havdmeer@ziggo.nl; receiver= Original-Received: from smtpq3.tb.mail.iss.as9143.net (smtpq3.tb.mail.iss.as9143.net [212.54.42.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id EDDB61861D9 for ; Tue, 3 Mar 2020 19:37:47 +0100 (CET) Original-Received: from [212.54.42.110] (helo=smtp7.tb.mail.iss.as9143.net) by smtpq3.tb.mail.iss.as9143.net with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1j9CQN-00062s-Oo for ntg-context@ntg.nl; Tue, 03 Mar 2020 19:37:47 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ziggo.nl; s=202002corplgsmtpnl; h=To:Date:Subject:From; bh=iDjBPG3l/fW1IAFVvDNZZIHoCHW4+eWO1RLTXQp18Vc=; b=Xz/na60rzS0jzgdtRb0BFbQsL7 eUvRait6XhgWzu/ZMXxuCl4b8FO3ukuGYSncWO32RtQQrlLrX6uruy1xXp9J83gw6TZ/Tb5nHnOcJ SC13r1XQR6P0t2SmX3Zv7WfMvSRj8QohDt3De+h/xRw38i13oke32wT3biLrGlJLFv8NnxE5XUaAX Loh7cWstBxZwUOSrhJ3ArtReBSda+3sV0zBWd7sKL3/E4kbuyyaKQ5PohzlqdPPb+xFPCpigrSr8N xa14vmtUocpepxzwOp1oiOo5BgXIkf6afeo52+hwz5ZS9HS05m0kbaHDv4pNAtoWiluqiO4HbaeZL ybD0mMfw==; Original-Received: from 84-106-134-200.cable.dynamic.v4.ziggo.nl ([84.106.134.200] helo=[192.168.178.20]) by smtp7.tb.mail.iss.as9143.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j9CQN-0001K4-KX for ntg-context@ntg.nl; Tue, 03 Mar 2020 19:37:47 +0100 In-Reply-To: <5119fbdb-70da-62dc-cacc-fc3726c4b5d0@xs4all.nl> X-Mailer: Apple Mail (2.3445.104.11) X-SourceIP: 84.106.134.200 X-Authenticated-Sender: havdmeer@ziggo.nl (via SMTP) X-Ziggo-spambar: / X-Ziggo-spamscore: 0.0 X-Ziggo-spamreport: CMAE Analysis: v=2.3 cv=Ne99K1L4 c=1 sm=1 tr=0 a=wCstmS+ZHA3zSJXjQC+ubA==:17 a=9+rZDBEiDlHhcck0kWbJtElFXBc=:19 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=SS2py6AdgQ4A:10 a=YEMqx4UAAAAA:8 a=Uows8UApAAAA:8 a=MiNTnEJAAAAA:8 a=ACQCx6kCAAAA:8 a=xtERp6CFAAAA:8 a=a3nu-2BBAAAA:8 a=6DTQcyB0gtKR51_OyaMA:9 a=QEXdDO2ut3YA:10 a=RH_GWtz7q01e4n3TIqsA:9 a=NUTNZElRYBO5PK7D:21 a=_W_S_7VecoQA:10 a=V0662LiR8DSfwiDagK97:22 a=oX0v64vK4IwbpfTCMRm2:22 a=LmrbSfiT3hecnSZifb5M:22 a=Sab0UneHBzlWrQDlOuxD:22 a=ekCXXmE-vB8RPiJ3MEZb:22 X-Ziggo-Spam-Status: No X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:106425 Archived-At: --===============8757604617118526070== Content-Type: multipart/alternative; boundary="Apple-Mail=_C68D92E8-4AE1-4F00-AD37-8C676F4C32C3" --Apple-Mail=_C68D92E8-4AE1-4F00-AD37-8C676F4C32C3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 >=20 > and then run with --mode=3Depub I am running with: mtxrun --autogenerate --mode=3Depub --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=3D$HOME/TeX/context-lmtx ; export CONTEXTLMTX CONTEXTCURRENT=3D$CONTEXTLMTX ; export CONTEXTCURRENT MYTEXMFHOME=3D$HOME/TeX/texmf ; export MYTEXMFHOME TEXMF=3D$MYTEXMFHOME:$CONTEXTCURRENT/tex ; export TEXMF PATH=3D$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: >=20 > On 2/28/2020 11:48 AM, Christoph Hinterm=C3=BCller 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). >=20 > \startmode [epub] > .... > \stopmode >=20 > and then run with --mode=3Depub >=20 > Hans >=20 > ----------------------------------------------------------------- > 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! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_C68D92E8-4AE1-4F00-AD37-8C676F4C32C3 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

and then run with --mode=3Depub

I am = running with:
    mtxrun = --autogenerate --mode=3Depub --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=3D$HOME/TeX/context-lmtx ; export = CONTEXTLMTX
CONTEXTCURRENT=3D$CONTEXTLMTX ; export = CONTEXTCURRENT
MYTEXMFHOME=3D$HOME/TeX/texmf ; = export MYTEXMFHOME
TEXMF=3D$MYTEXMFHOME:$CONTEXTCURRENT/tex ; export = TEXMF
PATH=3D$CONTEXTCURRENT/tex/texmf-osx-64/bin:$PA= TH ; 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@xs4all.nl> = wrote:

On 2/28/2020 11:48 AM, Christoph Hinterm=C3=BCller 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=3Depub

Hans

---------------------------------------------------------------= --
=             &n= bsp;           &nbs= p;            =     Hans Hagen | PRAGMA ADE
=             &n= bsp;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
_______________________________________________________________= ____________________

= --Apple-Mail=_C68D92E8-4AE1-4F00-AD37-8C676F4C32C3-- --===============8757604617118526070== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============8757604617118526070==--