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
Copy file name to clipboardExpand all lines: src/jupyter_contrib_nbextensions/nbextensions/toc2/README.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,15 @@ The toc2 extension enables to collect all running headers and display them in a
10
10
#### Second demo:
11
11

12
12
13
-
The table of contents is automatically updated when modifications occur in the notebook. The toc window can be moved and resized. It can be docked as a sidebar or dragged from the sidebar into a floating window. The table of contents can be collapsed or the window can be completely hidden. The navigation menu can be enabled/disabled via the nbextensions configuration utility. It can also be resized. The position, dimensions, and states (that is 'collapsed' and 'hidden' states) are remembered (actually stored in the notebook's metadata) and restored on the next session. Headers can be skipped from being inserted in the toc by adding the html tag "<aclass='tocSkip'>" at the end of the header line; eg in
13
+
The table of contents is automatically updated when modifications occur in the notebook. The toc window can be moved and resized. It can be docked as a sidebar or dragged from the sidebar into a floating window. The table of contents can be collapsed or the window can be completely hidden. The navigation menu can be enabled/disabled via the nbextensions configuration utility. It can also be resized. The position, dimensions, and states (that is 'collapsed' and 'hidden' states) are remembered (actually stored in the notebook's metadata) and restored on the next session.
14
+
15
+
There is a configurable option to skip h1 headers from the ToC, to allow their use as a notebook
16
+
title. However, this cause issues in latex exports, where h1 are converted to sections.
17
+
Alternatively, headers of any level can be omitted from being the toc by adding an html tag with the
18
+
css class `tocSkip` at the end of the header line; e.g. as in
19
+
14
20
```
15
-
## title <a class='tocSkip'>"
21
+
## title <a class="tocSkip">
16
22
```
17
23
18
24
The toc window also provides two links in its header for further functionalities:
@@ -108,5 +114,5 @@ This option requires the IPython kernel and is not present with other kernels.
108
114
- Updated README to please @KadeG in #871
109
115
-@hiiwave, april 2017.
110
116
- Support customization of background, fonts, border and highlighting colors in the toc window and navigation menus with PR [#969](https://github.com/ipython-contrib/jupyter_contrib_nbextensions/pull/969)
111
-
-@louisabraham, @jcb91 July 2017. Add support for skipping h1 headings,
112
-
enabling their use as unnumbered notebook titles
117
+
-@jfbercher, @louisabraham, @jcb91 July 2017. Add support for skipping h1
118
+
headings, enabling their use as unnumbered notebook titles
0 commit comments