takluyver / bookbook

Tools to use a collection of notebooks as 'chapters'
MIT License
99 stars 24 forks source link

Generate table of content #18

Open ragrawal opened 5 years ago

ragrawal commented 5 years ago

Is there a way to generate table of content and add to each generate chapter.

takluyver commented 5 years ago

If you don't see it there by default, there's probably nothing built in. If you're going to Latex, you might be able to use a custom template to tell latex to build a table of contents from the headings collected by bookbook.

fmaussion commented 5 years ago

I've set-up something like this to generate these notes: https://fabienmaussion.info/scientific_programming

It uses the notebook TOC extension but requires some changes to bookbook (see https://github.com/takluyver/bookbook/pull/13)

Note that maybe this is all much easier with Jupyter Book: https://jupyter.org/jupyter-book/intro.html (I haven't tried it yet)