Formatting

Overview

Formatting options are available for:

  • Documents
  • Chapters
  • Parts

Formatting controls how Documents, Chapters and Parts are:

  • Identified in the Table of Contents
  • Headed in their respective XHTML Resources

Headings are automatically added to XHTML Resources representing Documents, Chapters and Parts during EPUB Generation — unless configured otherwise, in the case of Documents.

Styling (such as font and text alignment) of Headings and Table of Contents entries is controlled through CSS.

Headings, for example, are wrapped in <h2> tags with id and class attributes set to default values.

Read Default CSS for more information on default text styling.

Formatting Settings

Formatting settings are available under the Compilation section of Book Settings.

Click the Edit button to manage your formatting settings.

Document Formatting

To access Document Formatting, click the Document tab of the Formatting popover (also the default tab).

Table of Contents

The format of a Document’s title in the Table of Contents is not customizable. Documents are excluded from numbering to ensure that they do not affect Chapter numbers.

First Page of Document

Controls headings in XHTML Resources that represent Documents.

Heading Format OptionsDescription
Document TitleDocument Title will be added to the Document’s XHTML Resource during EPUB Generation.
NoneNo heading will be added to the Document’s XHTML Resource during EPUB Generation.

Use this option if you wish to:

  • Create your own headings with HTML and CSS
  • Omit headings completely

Chapter Formatting

To access Chapter Formatting, click the Chapters tab of the Formatting popover.

Table of Contents

Controls how your Chapters are identified in the Table of Contents.

Where an option that includes “Chapter Number” is selected, the options under the section titled Numbering in TOC and Heading will be applied.

Title Format OptionsDescription
Chapter Number – Chapter TitleChapter Number and Chapter Title are included with a dash (-) separator.

This is the default format.

Examples

With a “Digits” numbering style and the “Prefix” option enabled:

Chapter 1 - Loomings
Chapter 2 - The Carpet Bag
Chapter 3 - The Spouter Inn


As above, but with the “Prefix” option disabled

1 - Loomings
2 - The Carpet Bag
3 - The Spouter Inn
Chapter Number: Chapter TitleChapter Number and Chapter Title are included with a colon (:) separator.

Examples

With a “Words” numbering style and the “Prefix” option enabled:

Chapter One: Loomings
Chapter Two: The Carpet Bag
Chapter Three: The Spouter Inn


As above, but with the “Prefix” option disabled:

One: Loomings
Two: The Carpet Bag
Three: The Spouter Inn
Chapter Number. Chapter TitleChapter Number and Chapter Title are included with a period (.) separator.

Examples

With a “Roman” numbering style and the “Prefix” option enabled:

Chapter I. Loomings
Chapter II. The Carpet Bag
Chapter III. The Spouter Inn


As above, but with the “Prefix” option disabled:

I. Loomings
II. The Carpet Bag
III. The Spouter Inn
Chapter TitleOnly the Chapter Title will be shown.

Example

Loomings
The Carpet Bag
The Spouter Inn
Chapter NumberOnly the Chapter Number will be shown.

Examples

With a “Digits” numbering style and the “Prefix” option enabled:

Chapter 1
Chapter 2
Chapter 3


As above, but with the “Prefix” option disabled:

1
2
3
First Page of Chapter

Controls the formatting of headings appearing at the top of XHTML Resources that represent Chapters.

Heading Format OptionsDescription
2 lines: Chapter Number and Chapter TitleChapter Number and Chapter Title are added, separated by a line break.

This is the default format.

Examples

With a “Digits” numbering style and the “Prefix” option enabled:

Chapter 1
Loomings


As above, but with the “Prefix” option disabled:

1
Loomings
Chapter Number – Chapter TitleChapter Number and Chapter Title are added with a dash (-) separator.

Examples

With a “Digits” numbering style and the “Prefix” option enabled:

Chapter 1 - Loomings

As above, but with the “Prefix” option disabled:

1 - Loomings
Chapter Number: Chapter TitleChapter Number and Chapter Title are added with a colon (:) separator.

Examples

With a “Words” numbering style and the “Prefix” option enabled:

Chapter One: Loomings

As above, but with the “Prefix” option disabled:

One: Loomings
Chapter Number. Chapter TitleChapter Number and Chapter Title are added with a period (.) separator.

Examples

With a “Roman” numbering style and the “Prefix” option enabled:

Chapter I. Loomings

As above, but with the “Prefix” option disabled:

I. Loomings
Chapter TitleOnly the Chapter Title will be added.

Example

Loomings
Chapter NumberOnly the Chapter Number will be added.

Examples

With a “Digits” numbering style and the “Prefix” option enabled:

Chapter 1

As above, but with the “Prefix” option disabled:

1
NoneNo heading will be added to the Chapter during EPUB Generation.

Use this option if you wish to:

  • Create your own headings with HTML and CSS
  • Omit headings completely
Numbering in TOC and Heading

These settings determine how any First Page of Chapter or Table of Contents options that include “Chapter Number” are processed during EPUB Generation.

Consequently, these settings will be disabled if no selected First Page of Chapter or Table of Contents options include “Chapter Number”.

Style OptionsDescription
DigitsDigits (1, 2, 3 etc.) will be used.

This is the default style for Chapters.
WordsWords (One, Two, Three etc.) will be used.

Note

This is not recommended for Books with large numbers of Chapters.

RomanRoman numerals (I, II, III etc.) will be used.
Prefix OptionsDescription
Prefix numbers with the word “Chapter”When checked, any numbers included in Headings and Table-of-Contents entries for Chapters will include the word “Chapter”.

This is checked by default.

Examples

Chapter 1
Chapter I. Loomings
Chapter One - Loomings

The examples in the sections above illustrate how these settings can be used.

Part Formatting

To access Part Formatting, click the Parts tab of the Formatting popover.

The options for Parts mirror those available for Chapters, except:

  • The default Numbering in TOC and Title Page style is “Words”

Refer to the formatting and numbering options documented above for details.


Related Topics