From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Re: Publishing subsections of an orgmode file (HTML) Date: Mon, 13 Jul 2009 09:38:09 -0500 Message-ID: <87fxd01wdq.fsf@fastmail.fm> References: 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 1MQMd8-0006q1-TG for emacs-orgmode@gnu.org; Mon, 13 Jul 2009 10:35:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MQMd3-0006dg-NM for emacs-orgmode@gnu.org; Mon, 13 Jul 2009 10:35:45 -0400 Received: from [199.232.76.173] (port=58666 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQMd3-0006dQ-EK for emacs-orgmode@gnu.org; Mon, 13 Jul 2009 10:35:41 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:41062) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MQMd3-0005Q0-4u for emacs-orgmode@gnu.org; Mon, 13 Jul 2009 10:35:41 -0400 In-Reply-To: (Ben's message of "Mon, 13 Jul 2009 14:59:54 +0100") 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: Ben Cc: emacs-orgmode@gnu.org Ben writes: > I think that's my first post here and I would like first of all to > thank you all for your amazing work. Welcome! > > My first question is: How can I publish a subsection of one of these > files as a webpage (and this subsection only)? I occasionally do that > manually with C-c C-e [R] export-region, which export the subsection > as a HTML page in an Emacs buffer. What I would like to do is to put a > comment in the org file subsection to set the HTML 'target' location > page such as > > * Topic A > ** Things to do [...] (private) > ** Interesting Notes I would like to publish > #+THIS_REGION_TARGET_FILE=~/public_html/myfile.html You can specify the target file for an exported region using the property EXPORT_FILE_NAME. E.g. --8<---------------cut here---------------start------------->8--- * Topic A :PROPERTIES: :EXPORT_FILE_NAME: ~/public_html/myfile.html :END: ** Things to do [...] (private) ** Interesting Notes I would like to publish --8<---------------cut here---------------end--------------->8--- You'll need to select the tree with C-c @ before exporting for this to work. See this section of the manual for more information: http://orgmode.org/manual/Export-options.html Best, Matt