Commit a3003044 authored by Julie Blanc's avatar Julie Blanc

update toc cross references + table of content

parent 0ed982e7
# Table of content
In the part, we discuss how to build a table of content with script and the function `target-counter()`.
All the files (scripts, CSS, HTML exemples) of this part to create a table of content are available on gitlab: [https://gitlab.pagedmedia.org/tools/experiments/tree/master/table-of-content](https://gitlab.pagedmedia.org/tools/experiments/tree/master/table-of-content).
## Build the element of the table of content
## Build the elements of the table of content
First, to have a table of content, you need to make HTML lists of the reveleant titles of your document and link to the unique identifier of this element. This part can be done with your own tool/generator but here is an exemple of a script to generate a table of content:
......
......@@ -85,6 +85,18 @@
* Priority of @page rules
## Part 8: Cross references [ [link](https://gitlab.pagedmedia.org/tools/pagedjs-documentation/blob/master/Part08_cross-references.md) ]
* Link targeted
* target-counter()
* target-text()
* Debug
## Part 9: Table of content [ [link](https://gitlab.pagedmedia.org/tools/pagedjs-documentation/blob/master/Part09_Table-of-content.md) ]
* Build the elements of the table of content
* Generate page numbers
* Style the table of content
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment