Org mode set table of contents level
Table of Contents
1 reference
search toc in the page, and locates:
toc: Toggle inclusion of the table of contents, or set the level limit (org-export-with-toc)
2 why I need it
If the paper has 5 levels of headings, the table of contents will also show
5 levels of headings.
It's ugly, we only need 2 levels in the table of contents.
3 fix
keep the code below to you .emacs, and then restart emacs. Try to export your
org-mode document again, you will get what you want.
(setq org-export-with-toc 2)