Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional cover image inclusion #134

Open
claell opened this issue Jul 31, 2024 · 2 comments
Open

Optional cover image inclusion #134

claell opened this issue Jul 31, 2024 · 2 comments

Comments

@claell
Copy link

claell commented Jul 31, 2024

I saw that a cover image can be included with the \coverimage{} command.

Some publishers require it to be included in the EPUB.

However, other publishers don't require it, and I think it might lead to double covers in the end result.

As some publishers have different requirements for the EPUBs in general (like EPUB version), I start different runs of tex4ebook on the same LaTeX file to create the output.

To still be able to rely on the same LaTeX file, some switch to include or not include the image in different runs of tex4ebook might be useful. Or can the cover image possibly be passed directly from the command line if needed?

@claell
Copy link
Author

claell commented Jul 31, 2024

I didn't really try to always add a cover image, though. Maybe that won't give the negative side effects as I thought. Will report back on that.

@michal-h21
Copy link
Owner

In this case, I would use the \CoverMetadata{filename} command in the configuration file. It doesn't include the cover image in the flow of the ebook file, but reader systems will use it in the bookshelf view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants