Skip to content
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

自動生成される目次に、原稿中の見出しを含めてほしい #254

Closed
yamasy1549 opened this issue Feb 17, 2022 · 1 comment · Fixed by #484
Closed

自動生成される目次に、原稿中の見出しを含めてほしい #254

yamasy1549 opened this issue Feb 17, 2022 · 1 comment · Fixed by #484
Milestone

Comments

@yamasy1549
Copy link
Member

toc: true 自動生成した目次には、出版物を構成する各原稿の title だけが含まれるようになっています。
https://docs.vivliostyle.org/#/ja/vivliostyle-cli#%E7%9B%AE%E6%AC%A1%E3%81%AE%E4%BD%9C%E6%88%90

実際の本作りでは、原稿の中にある h1h2 などの見出しを目次に含めたいことが多いと思いますが、そのためには、現状は自分で(手動で)目次を作る必要があります。そこで、目次自動作成機能で、h1h2 などの見出しを目次に含められるとよい思います。どのレベルの見出しまで含めるかも指定できるとうれしいです。

@deadcoder0904
Copy link

deadcoder0904 commented Oct 21, 2022

this is what i need as well. i need at least h2.

how do i create table of contents manually with h2?

edit: found https://docs.vivliostyle.org/#/vivliostyle-cli#creating-table-of-contents-yourself but i think using unified with remark-toc would be better. idk if there's docs to using unified.

can't find it. plz let me know if i can use unified for book generated with npm create book my-book command :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants