How do you remove numbering from headers when exporting from org-mode?

EmacsOrg Mode

Emacs Problem Overview


The basic org-mode headers

* Heading
** Sub-heading
* Another Heading

get converted to html like this

  1. Heading

1.2 Sub-heading

  1. Another Heading

(but imagine them larger and in h1 h2 fonts and sizes). How do you turn this off so that the headings are not numbered in the output html?

Emacs Solutions


Solution 1 - Emacs

Oleg's answer allows you to disable section numbering for all exports at all times. However if you only want to disable numbering on export for a single file you can use the following:

#+OPTIONS: num:nil

If you want to limit it to only a certain depth you can replace nil with an integer specifying up to which headline you want the numbers to appear. For example #+options: num:1 would turn your sample into:

1. Heading

   Sub-Heading

2. Another Heading

See Export Setting for the details and other export options that can be set on a per-file basis.
See HTML Specific Settings for HTML specific ones.

Solution 2 - Emacs

You can customize the org-mode.

M-x customize-mode

org-mode

Then you choose Org Export/Org Export General/Org Export With Section Numbers

As an alternative put the following in your .emacs

(setq org-export-with-section-numbers nil)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionemishView Question on Stackoverflow
Solution 1 - EmacsJonathan Leech-PepinView Answer on Stackoverflow
Solution 2 - EmacsOleg PavlivView Answer on Stackoverflow