I am wondering if there is any functionality in org mode that can make me work with a secret structure, that is: a structure that I can see when I edit, but it is treated as if it were not there when exporting . This mainly imports when I export to ascii.
Example:
I would like this in a .org file:
* Normal heading
** Secret heading 1
Some text 1
** Secret heading 2
Some text 2
** Secret heading 3
Some text 3
To export to this:
Normal heading
--------------
Some text 1
Some text 2
Some text 3
What makes secret headers such as a tag, property, or something else, but secret headers must be collapsible.
Edit:
Found this solution (from here) (I am using org-mode 7.9.3 f. This does not work. Headers with the tag: ignoreheading: are still displayed:
;; backend aware export preprocess hook
(defun sa-org-export-preprocess-hook ()
"My backend aware export preprocess hook."
(save-excursion
(when (eq org-export-current-backend 'latex)
;; ignoreheading tag for bibliographies and appendices
(let* ((tag "ignoreheading"))
(org-map-entries (lambda ()
(delete-region (point-at-bol) (point-at-eol)))
(concat ":" tag ":"))))))
(add-hook 'org-export-preprocess-hook 'sa-org-export-preprocess-hook)