Org export: explain why 5 levels of headings good
This commit is contained in:
parent
abf9231625
commit
e25f9e0673
12
config.org
12
config.org
|
@ -6702,9 +6702,21 @@ set palette defined ( 0 '%s',\
|
|||
#+end_src
|
||||
*** Exporting
|
||||
**** General settings
|
||||
By default Org only exports the first three levels of headings as ... headings.
|
||||
This is rather unfortunate as my documents frequently stray far beyond three
|
||||
levels of depth. The two main formats I care about exporting to are LaTeX and
|
||||
HTML. When using an =article= class, LaTeX headlines go from =\section=,
|
||||
=\subsection=, =\subsubsection=, and =\paragraph= to =\subgraph= --- /five/ levels.
|
||||
HTML5 has six levels of headings (=<h1>= to =<h6>=), but first level Org headings
|
||||
get exported as =<h2>= elements --- leaving /five/ usable levels.
|
||||
|
||||
As such, it would seem to make sense to recognise the first /five/ levels of Org
|
||||
headings when exporting.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(setq org-export-headline-levels 5) ; I like nesting
|
||||
#+end_src
|
||||
|
||||
I'm also going to make use of an item in =ox-extra= so that I can add an =:ignore:=
|
||||
tag to headings for the content to be kept, but the heading itself ignored
|
||||
(unlike =:noexport:= which ignored both heading and content). This is useful when
|
||||
|
|
Loading…
Reference in New Issue