【发布时间】:2014-04-07 08:00:38
【问题描述】:
我想知道 org-mode 中是否有任何功能可以使我能够使用秘密结构进行操作,即:我在编辑时可以看到但被视为没有的结构出口时在那里。主要是在我导出为ascii时导入。
示例:
我希望在 .org 文件中这样:
* Normal heading
** Secret heading 1
Some text 1
** Secret heading 2
Some text 2
** Secret heading 3
Some text 3
要导出到这个:
Normal heading
--------------
Some text 1
Some text 2
Some text 3
使标题保密的原因可以是标签、属性或其他任何东西,但秘密标题应该是可折叠的。
编辑:
找到这个解决方案(from here)(我使用的是 org-mode 7.9.3 f。它不起作用。带有 :ignoreheading: 标签的标题仍然显示:
;; 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)
【问题讨论】: