You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable to define a number to begin numbering with.
Useful to continue numbering over several chapters defined in separated notebooks. This should be preserved while exporting with jupyter nbconvert --to html_with_toc FILE or using toc2.tpl template. This addresses #1245 of @fmaussion
there is no new option in the extension configuration tab: however, I added a "base_numbering": 2, option in the notebook's toc section manually for each file and this worked fine. Altogether I'm not sure to understand if a general option is the good way to do this, since this numbering is very notebook specific.
the rendering in the notebook is good:
however the rendering in html is strange: the ToC entry is fine, but the sidebar toc and the titles are still keeping their old numbering. See:
Maybe it's only me though (I don't know if I have to update something else after changing the code as you show in your PR).
Sorry...
I mixed myself with the screenshots. First one was an attempt to change numbering by the nbextension configuration tab.
Actually, I ended with updating the base_numberper notebook (click on the ToC settings icon on the toc window/sidebar) -- see below. I also update the PR description above.
@fmaussion
Rendering after conversion loads the toc2.js in the github repo.
This will be only available after the PR is merged. This explains why the rendering in html in not fully updated (the toc2_cell is embedded in the notebook itself while the rest -- sidebar, numbering is computed by the toc2.js script)
Any chance this can get merged before Sunday? If not it's OK, I'll just have to deal with it: my lecture starts next week and I can still use some workarounds for now.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable to define a number to begin numbering with.
Useful to continue numbering over several chapters defined in separated notebooks. This should be preserved while exporting with
jupyter nbconvert --to html_with_toc FILEor usingtoc2.tpltemplate. This addresses #1245 of @fmaussion