File last modified on August 18, 2022

Epub Types

All content sections should have an epub:type reference EPUB 3 Structural Semantics Vocabulary.

All XHTML files should have a matter type, example:

Front Matter

Example if a front matter file for a preface named PJ01_frontmatter07.xhtml. File named PJ01_frontmatter07_preface.xhtml is also acceptable. Notice the added pagebreak, example:

html
1
<body epub:type="frontmatter">
2
<section epub:type="preface">
3
<a epub:type="pagebreak" id="pagexiii" title="xiii"></a>
4
<!-- Rest of Code -->
5
</section>
6
</body>

If a type cannot be found for the front matter the type can be applied to te section. A good use case for this is an endorsement, example:

html
1
<body>
2
<section epub:type="frontmatter">
3
<a epub:type="pagebreak" id="pagexi" title="xi"></a>
4
<!-- Rest of Code -->
5
</section>
6
</body>

Body Matter

Example for a chapter file named PJ02_chapter05.xhtml that would be for chapter 5. First page where the chapter starts uses the pagebreak and after the chapter ends there is a white page in the PDF, page286 example:

html
1
<body epub:type="bodymatter">
2
<section epub:type="chapter">
3
<a epub:type="pagebreak" id="page249" title="249"></a>
4
<!-- Content -->
5
<a epub:type="pagebreak" id="page286" title="286"></a>
6
</section>
7
</body>

Back Matter

Example for an index named PJ03_backmatter05.xhtml but PJ03_backmatter05_index.xhtml is acceptable:

html
1
<body epub:type="backmatter">
2
<section epub:type="index">
3
<a epub:type="pagebreak" id="page641" title="641"></a>
4
<!-- Content -->
5
</section>
6
</body>
Last build: Thursday, 08/18/2022, 01:01:08 AM