4

tex4ebook includes the cover as the first page of the book. However, the Kindle automatically includes the cover as the first page, getting the cover from the OPF file. The result is a duplicate cover page. (Section 3.2.3 of the Kindle Publishing Guidelines says "Internal Cover Must Not Appear Twice").

Is there a way to specify the cover image so that it goes into the OPF file, but not into the HTML? Thanks!

3

You can use trick I showed you earlier to include file with \special{t4ht+@File: filename}. You won't use \CoverImage command this way, so you will also need to make some additional configurations:

\Preamble{xhtml}
\special{t4ht+@File: cover.jpg}
\Configure{CoverMimeType}{image/jpeg}
\CoverMetadata{cover.jpg}
\begin{document}
\EndPreamble

Use \Configure{CoverMimeType} only if the cover image isn't in png format

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.