erdos / erdos/stencil

Refreshing Table of Contents after document generation

Open
#105 6 comments 2 reactions 0 assignees View on GitHub
cross-references
Dominant language
Clojure
Stars
132
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Screen Shot 2022-01-20 at 12 59 45

**Is your feature request related to a problem? Please describe.**
You can create a document with multiple headings and then use a docx feature called "Table of Contents" which will display table of contents based on those headings.

In LIbreOffice it's located here: Insert -> Table of Contents and Index -> Table of Contents, Index or Bibliography...
If you change the headings, you can regenerate table of contents in with Tools -> Update -> Update all

Some headings & sections in stencil can be hidden with if clause, which means table of contents becomes outdated.

**Describe the solution you'd like**
It would be nice to make stencil refresh table of contents after document gets compiled.

**Describe alternatives you've considered**
It's possible to resolve this issue manually by introducing additional step in the rendering process, by running virtualized libreoffice and asking it to refresh the contents.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.