8000 Refreshing Table of Contents after document generation · Issue #105 · erdos/stencil · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Refreshing Table of Contents after document generation #105
Open
@achempion

Description

@achempion

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0