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
+11-2Lines changed: 11 additions & 2 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:
@@ -34,6 +40,7 @@ The initial configuration can be given using the IPython-contrib nbextensions fa
34
40
- Widening the display area to fit the browser window (may be useful with sidebar option; default: true)
35
41
- The numbering of headers (true by default)
36
42
- Moving header title and menus on the left (default: true)
43
+
- Skipping h1 headers, useful if you want to use h1 as unnumbered notebook title (default: false)
37
44
- Customization of highlighting the title of currently selected/running sections.
38
45
- Customization of background, fonts, border and highlighting colors in the toc window and navigation menus (as third demo).
39
46
@@ -107,3 +114,5 @@ This option requires the IPython kernel and is not present with other kernels.
107
114
- Updated README to please @KadeG in #871
108
115
-@hiiwave, april 2017.
109
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)
117
+
-@jfbercher, @louisabraham, @jcb91 July 2017. Add support for skipping h1
118
+
headings, enabling their use as unnumbered notebook titles
0 commit comments