Module packages.resilient.tableofcontents
Re-implementation of the tableofcontents package for re·sil·ient.
Following the resilient styling paradigm. Hooks are removed and replaced by styles, allowing for a fully customizable TOC
Info:
- Copyright: (c) 2021-2025 Omikhkeia / Didier Willis
- License: MIT
Class packages.resilient.tableofcontents
package:_init (options) | (Constructor) Initialize the package. |
package:moveTocNodes () | Move the TOC nodes collected on this page to the global TOC. |
package:writeToc () | Write the TOC data to the .toc file. |
package:readToc () | Read the TOC data from the .toc file, if it exists. |
package:registerCommands () | (Override) Register all commands provided by this package. |
package:registerStyles () | (Override) Register all styles provided by this package. |
Class packages.resilient.tableofcontents
The "resilient.tableofcontents" package Extends packages.resilient.base.
- package:_init (options)
-
(Constructor) Initialize the package.
Parameters:
- options table Package options
- package:moveTocNodes ()
-
Move the TOC nodes collected on this page to the global TOC.
Called at the end of each page.
- package:writeToc ()
-
Write the TOC data to the .toc file.
Called at the end of the document processing.
- package:readToc ()
- Read the TOC data from the .toc file, if it exists.
- package:registerCommands ()
- (Override) Register all commands provided by this package.
- package:registerStyles ()
- (Override) Register all styles provided by this package.