notebookinator icon indicating copy to clipboard operation
notebookinator copied to clipboard

✨ Links to headings in Table of Contents

Open PA055 opened this issue 1 year ago • 0 comments
trafficstars

Requested Feature

Use the #link feature of typst in the TOC so clicking an entry will bring you to the specified entry

  • automatically generate a reference for each entry that is documented so users can reference the entry in the notebook

Current Implementation

N/A

Motivation

This would make the notebook seem more professional and help with navigation as the notebooks get larger.

Possible Implementations and Alternatives

In each theme, create a reference which by default is the title with the spaces replaced by underscores, but can be changed by an argument (this would be in the create-entry function) and in the TOC component we wrap every item in a link. I will create a PR if your interested in adding this

PA055 avatar Nov 10 '24 18:11 PA055