Skip to content

Table of Contents with the NovelWriter HTML format #1548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Tracked by #1269
AlanDunaway opened this issue Oct 22, 2023 · 1 comment
Open
Tracked by #1269

Table of Contents with the NovelWriter HTML format #1548

AlanDunaway opened this issue Oct 22, 2023 · 1 comment
Labels
build tool Component: Exports or the build tool enhancement Enhancement: New feature or improvement planned Note: Feature planned for a later release

Comments

@AlanDunaway
Copy link

Reference issue #1545

How can we create a table of contents in the HTML file NovelWriter exports? For example, I'd like to have tags in chapters, when I click the link in the ToC, it would jump to the chapter I want.
Like:

#! Book title
Author
Table of contents
Chapter 1(link)
Chapter 2(link)
...
Chapter 1(jump to this if user clicks the link)

@AlanDunaway AlanDunaway added the enhancement Enhancement: New feature or improvement label Oct 22, 2023
@vkbo
Copy link
Owner

vkbo commented Mar 21, 2024

I've just added code to the build tool to generate an outline of the manuscript, which will be displayed on the Manuscript Build tool dialog. This generated outline can also be used for this purpose, so it's a step closer. See #1765 and #1768.

The question now is how to know where to insert it in the manuscript. I guess it would make sense to add a [TOC] in the text where it is to be inserted.

@vkbo vkbo mentioned this issue Mar 21, 2024
28 tasks
@vkbo vkbo added build tool Component: Exports or the build tool planned Note: Feature planned for a later release labels Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build tool Component: Exports or the build tool enhancement Enhancement: New feature or improvement planned Note: Feature planned for a later release
Projects
None yet
Development

No branches or pull requests

2 participants