From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76825 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: back-up.lua; mtx-epub.lua Date: Fri, 08 Jun 2012 23:02:02 +0200 Message-ID: <4FD2684A.4000707@wxs.nl> References: <8E68CF1E-5817-4F6C-B768-3EB03D02F3AE@web.de> <358F662E-23CF-4959-B28E-6DFD9401A11B@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1339189381 30590 80.91.229.3 (8 Jun 2012 21:03:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Jun 2012 21:03:01 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 08 23:03:01 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sd6Kc-0001Y8-0k for gctc-ntg-context-518@m.gmane.org; Fri, 08 Jun 2012 23:02:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5EB8E101E5; Fri, 8 Jun 2012 23:02:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id A2+ODhMxr+tg; Fri, 8 Jun 2012 23:02:51 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6F414101E2; Fri, 8 Jun 2012 23:02:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 41B85101E2 for ; Fri, 8 Jun 2012 23:02:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5Ugh20AgUHuq for ; Fri, 8 Jun 2012 23:02:48 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id EE49B101DD for ; Fri, 8 Jun 2012 23:02:47 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q58L2kJA013941 for ; Fri, 8 Jun 2012 23:02:47 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.101; Original-Received: from [10.100.1.101] (unverified [10.100.1.101]) by pragma-net.nl (SurgeMail 5.3h2) with ESMTP (TLS) id 5642-1713362 for multiple; Fri, 08 Jun 2012 23:02:39 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20120604 Thunderbird/13.0 In-Reply-To: X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=03; city=Hattem; latitude=52.4724; longitude=6.0696; http://maps.google.com/maps?q=52.4724,6.0696&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RHjV2Ljf - cb1a8be7e8b5 - 20120608 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:76825 Archived-At: On 8-6-2012 20:25, Aditya Mahajan wrote: >> Hello all, >> >> I am thinking about the best way to implement the cover image for the >> epub. This is a mandatory requirement to work properly. The cover >> image is not necessarily present in the pdf version of the document >> and it might be the only item where that is true. So I tried to sort >> out the options. >> >> 1) Always take cover.png in the current directory; not very elegant >> 2) add cover=3D{=85} to \setupinteraction; hijacks the pdf interaction m= acro >> 3) add a \setupepub; might be overkill, but maybe more options are >> added later >> 4) ? > > \setupbackend[coverimage=3D{....}] > > Backends other than epub can safely ignore the directive. better is \setupexport (actually, we do have \setupdocument which makes een more sense: (1) take from setupdocument (2) if empty take from setupexport (3) otherwise take from setupinteraction > In one of your earlier threads, you had talked about taking title, > author, etc from setupinteraction. It might be better to take then from > \setupbackend as well (will work for both epub and xhtml backends, > perhaps also for xml). Indeed, I realized that this morning but had not time to look into it = yet. The interaction title is normally a simplified one used for = referencing or document info. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________