When using Org-mode to create beamer presentation it is possible to set the property of a heading such that the exported heading is not shown but only its contents. For instance
I found a simple solution for Emacs 24.4.1 and Org-mode 8.2.10 on Debian Jessie that removes tagged headlines before processing, so it removes their structure nodes too, not only the text.
;; ignore_heading tag in Org mode, based on the manual and func docs
(defun ignored-headlines-removal (backend)
"Remove all headlines with tag ignore_heading in the current buffer.
BACKEND is the export back-end being used, as a symbol."
(org-map-entries
(lambda () (delete-region (point) (progn (forward-line) (point))))
"ignore_heading"))
(add-hook 'org-export-before-parsing-hook 'ignored-headlines-removal)
I didn't make it export backend specific as it does not need to be. I also used the ignore_heading
tag to make sure the ignoreheading
tag in beamer export retains its function.
Here is how I discovered it:
ignore_heading
tag.org-map-entries
function (by typing C-h f org-map-entries RET
in Emacs) and found out its optional second argument MATCH
is an agenda-style match string that can match tags too.This experience once again showed me that Emacs truly is an extensible self-documenting editor. RTFM FTW!