From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hsiu-Khuern Tang Subject: Re: Re: Export to org? Date: Wed, 29 Jul 2009 22:44:57 -0700 Message-ID: <20090730054457.GW21974@hplhtang> References: <20090729233146.GS21974@hplhtang> <87y6q7roie.fsf@gollum.intra.norang.ca> Reply-To: Hsiu-Khuern Tang 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 1MWOS0-0007qH-4t for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 01:45:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWORv-0007q5-Gn for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 01:45:11 -0400 Received: from [199.232.76.173] (port=51167 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWORv-0007q2-6m for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 01:45:07 -0400 Received: from gundega.hpl.hp.com ([192.6.19.190]:58074) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MWORu-0006Ng-BQ for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 01:45:06 -0400 Received: from mailhub-pa1.hpl.hp.com (mailhub-pa1.hpl.hp.com [15.25.115.25]) by gundega.hpl.hp.com (8.14.3/8.14.1/HPL-PA Relay) with ESMTP id n6U5ium6015182 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 29 Jul 2009 22:44:57 -0700 (PDT) Received: from hplhtang.hpl.hp.com (hplhtang.hpl.hp.com [15.4.92.39]) by mailhub-pa1.hpl.hp.com (8.14.3/8.14.3/HPL-PA Hub) with ESMTP id n6U5iu6f026357 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 29 Jul 2009 22:44:56 -0700 Received: from htang by hplhtang.hpl.hp.com with local (Exim 4.69) (envelope-from ) id 1MWORl-00088k-IS for emacs-orgmode@gnu.org; Wed, 29 Jul 2009 22:44:57 -0700 Content-Disposition: inline In-Reply-To: <87y6q7roie.fsf@gollum.intra.norang.ca> 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 * On Thu 12:41AM +0000, 30 Jul 2009, Bernt Hansen (bernt@norang.ca) wrote: > 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 This is exactly what I was looking for. I must have skipped the chapter on publishing in the Org manual. Thanks a lot for the pointers! -- Best, Hsiu-Khuern.