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={…} to \setupinteraction; hijacks the pdf interaction macro
3) add a \setupepub; might be overkill, but maybe more options are
added later
4) ?

\setupbackend[coverimage={....}]

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 the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to