Page cover

Formatting Table of Contents

It is possible to format the generated Table of Contents with custom stylesheets. Read more about it here.

Table of Contents selectors

Description
CSS selector
Type
Variable (#)
Example

The table of content area

table-of-contents

class

none

.page.table-of-contents { color: red }

Define a hierarchy level

cex-toc-container-level-#

class

The hierarchical level of the container

.hierarchical .cex-toc-container-level-1 { margin-left: 20px; }

In case of a hierarchical export add a level

cex-toc-container

class

none

.hierarchical .cex-toc-container { margin-left: 20px; }

All elements on the hierarchical level

cex-toc-item-level-#

class

The hierarchical level of the item

.cex-toc-item-level-2 { font-weight: bold; }

All elements

cex-toc-item

class

none

.cex-toc-item { text-decoration: line-through; }

A page row in the Table of Contents

cex-toc-ref-to-page

class

none

.cex-toc-ref-to-page { text-decoration: line-through; }

A header row in the Table of Contents

cex-toc-ref-to-header

class

none

.cex-toc-ref-to-header { text-decoration: line-through; }

The original header level

cex-toc-original-header-#

class

The original header level

.cex-toc-original-header-1 { font-size: 16px; }

The header level in the printed Table of Contents

cex-toc-normalized-header-#

class

The generated header level after header optimization

.cex-toc-normalized-header-2{ font-size: 14px; }

The ID of each Table of Content rows

cex-toc-level-#-#-#

id

The generated numbering of the row

#cex-toc-level-1-2-3 { border: 1px solid; }

Description
CSS selector
Type
Variable
Usage example

Page level

page-title-lvl-#

class

The hierarchical level of the page.

.page-title-lvl-0 { color: red }

Headers level on the page

toc-header-#

class

The hierarchical level of the header.

.toc-header-0 { color: red }

The HTML syntax of a Table of Contents

Last updated

Was this helpful?