vivliostyle-cli icon indicating copy to clipboard operation
vivliostyle-cli copied to clipboard

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

Open yamasy1549 opened this issue 3 years ago • 1 comments

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 などの見出しを目次に含められるとよい思います。どのレベルの見出しまで含めるかも指定できるとうれしいです。

yamasy1549 avatar Feb 17 '22 08:02 yamasy1549

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 :)

deadcoder0904 avatar Oct 21 '22 06:10 deadcoder0904