ePUB+Kindle: Page Template

<< Click to Display Table of Contents >>

Navigation:  Reference > Project Configuration Settings > Publishing Options > eBooks: ePUB+Kindle >

ePUB+Kindle: Page Template

The ePUB 3.0 and Kindle/Mobi formats supports a customizable page template. The format is HTML, and you can change the layout of the pages for your eBooks by editing the page template in this section.

Don't try to lay out eBooks like normal HTML pages!

The Kindle and ePUB formats are designed to be like a real printed book and they only support very limited HTML layout capabilities. Don't try to include JavaScript and navigation commands – that would just make your book invalid and it will never work.

Remember also that the pages on eBook readers are effectively very small. Basically, you should aim for simple, free-flowing paragraphs with images between the paragraphs.

Page content HTML code:

The HTML code for your pages is generated automatically by Help+Manual from the topics in your project and inserted in the template by the <%TOPIC_TEXT%> variable.

Keywords element:

Don't delete or replace the element containing the eBooks,eBooks ePUB, TOC template,ePUB,ePUB TOC template variable. This is required to enable Help+Manual to insert valid index keywords in your pages.

CSS styles and stylesheets:

By default Help+Manual references the CSS stylesheet generated from the styles defined in your project in this page, using the <%STYLESHEET%> variable in the head section of the template. Don't delete this! If you do, none of the styles defined in your project will be used!

In almost all cases, the formatting of your page content should be controlled entirely by the styles defined in your project. You can add your own inline CSS styles in the template or a reference to your own CSS stylesheet file if you like, but these should only be used for page layout.

If you use your own stylesheet file, just add it to the baggage files section of your project and it will be exported automatically.