I have been experimenting with including a publisher logo on the title page of a book. I couldn't find any exact examples of how to do this, so I ended up using the following code in the title page file based on standard image inclusion and the general advice in the electric-book docs:
{{ creator }}
{:.title-page-author}
{% include image file="xxx-logo.png" alt="xxx logo" %}
{:.title-page-logo}
{{ publisher }}
{:.title-page-publisher}
I can get good results with this when I produce screen PDF output (after some fiddling with the logo size and the amount of padding in the logo file around the logo itself). However when I create web output or epub output the logo is not centered, as are the author name and publisher, but rather is left-aligned.
I also tried the alternative code
{% include image file="xxx-logo.png" alt="xxx logo" class= ".title-page-logo" %}
This does result in the logo being properly centered in the epub and web output, and I can get the logo to appear at a reasonable size in the web output. However, in the screen PDF output the logo is too large and is too high on the page for my liking. In the epub output the logo is also too large for my taste, large enough that it forces an extra page to be displayed for the title page.
Do you all have any recommendations or guidelines for how best to include a publisher logo and have it look reasonable in all three output formats (PDF, web, and EPUB)?
Or is this something I'm going to need to tweak the underlying JS or CSS code to get output to my liking? For example, I notice that _sass/partials/_web-title-pages.scss and _sass/partials/_epub-title-pages.scss don't include an explicit "text-align: center;" in the definition of the .title-page-logo class, as does _sass/partials/_print-title-pages.scss (which I presume is used for screen PDF output as well). Should they?
I have been experimenting with including a publisher logo on the title page of a book. I couldn't find any exact examples of how to do this, so I ended up using the following code in the title page file based on standard image inclusion and the general advice in the electric-book docs:
I can get good results with this when I produce screen PDF output (after some fiddling with the logo size and the amount of padding in the logo file around the logo itself). However when I create web output or epub output the logo is not centered, as are the author name and publisher, but rather is left-aligned.
I also tried the alternative code
This does result in the logo being properly centered in the epub and web output, and I can get the logo to appear at a reasonable size in the web output. However, in the screen PDF output the logo is too large and is too high on the page for my liking. In the epub output the logo is also too large for my taste, large enough that it forces an extra page to be displayed for the title page.
Do you all have any recommendations or guidelines for how best to include a publisher logo and have it look reasonable in all three output formats (PDF, web, and EPUB)?
Or is this something I'm going to need to tweak the underlying JS or CSS code to get output to my liking? For example, I notice that _sass/partials/_web-title-pages.scss and _sass/partials/_epub-title-pages.scss don't include an explicit "text-align: center;" in the definition of the .title-page-logo class, as does _sass/partials/_print-title-pages.scss (which I presume is used for screen PDF output as well). Should they?