From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Export to org? Date: Wed, 29 Jul 2009 20:41:13 -0400 Message-ID: <87y6q7roie.fsf@gollum.intra.norang.ca> References: <20090729233146.GS21974@hplhtang> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWJi2-0005ae-Ic for emacs-orgmode@gnu.org; Wed, 29 Jul 2009 20:41:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWJhz-0005ZP-1e for emacs-orgmode@gnu.org; Wed, 29 Jul 2009 20:41:26 -0400 Received: from [199.232.76.173] (port=42561 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWJhy-0005ZK-Us for emacs-orgmode@gnu.org; Wed, 29 Jul 2009 20:41:22 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:55884) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MWJhy-0005bV-Lz for emacs-orgmode@gnu.org; Wed, 29 Jul 2009 20:41:22 -0400 Received: from cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com ([99.239.148.180] helo=mail.norang.ca) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1MWJhv-000824-0A for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 00:41:19 +0000 In-Reply-To: <20090729233146.GS21974@hplhtang> (Hsiu-Khuern Tang's message of "Wed\, 29 Jul 2009 16\:31\:47 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" Hsiu-Khuern Tang writes: > Hi, > > Is there an easy way to export an org file to another org file, stripping away > any subtrees that are tagged "noexport" or marked as comments? The idea is to > discard anything that is also ignored by the other export formats, such as > HTML. I would find this a useful feature to have, for example, for > distributing Org files to other people without showing subtrees that are still > works-in-progress. Hi, org-publish handles this now. An entry like this: :publishing-function (org-publish-org-to-html org-publish-org-to-org) in my org-publish-project-alist. This produces both a .html and a .org file from the original .org file. Any comments and subtrees marked with a noexport tag will not be included in the exported org file. More details on my complete setup is here: http://doc.norang.ca/org-mode.html#PublishingProjects HTH, Bernt