[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Excluding just heading from export

From: Matt Lundin
Subject: [Orgmode] Re: Excluding just heading from export
Date: Sat, 06 Feb 2010 09:22:35 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux)

Paul Mead <address@hidden> writes:

> is there any way of excluding just a heading from export, whilst exporting
> the text below it in the usual way? If I use :noexport: it does what it
> says in the documentation - prevents the entire subtree from exporting.
> For my current work though, I'd like to use headings to rough out a
> structure write notes - noexport is fine for this. Then in each section
> I want to export the final 'written up' version. I can separate those
> with different headings, but don't want the headings to show up in the
> exported text.
> Example:
> * Essay title
> ** Notes on paragraph 1  :noexport:
> These are notes which I want to remain hidden, including the heading
> ** Paragraph 1
> This is the text I want to see exported, but I don't want the heading

One hack would be to use an export hook to remove headings with a
particular tag. E.g.,

--8<---------------cut here---------------start------------->8---
(defvar my-org-export-remove-heading-tag "killtag")

(defun my-org-export-remove-headings-with-tag ()
  (while (re-search-forward (concat ":" my-org-export-remove-heading-tag ":") 
nil t)
--8<---------------cut here---------------end--------------->8---


reply via email to

[Prev in Thread] Current Thread [Next in Thread]