From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Org mode release 6.04 Date: Tue, 27 May 2008 08:26:46 +0200 Message-ID: <38F473BC-063F-4CD1-AAFC-25FA9214A67E@uva.nl> References: <874p8lny3p.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K0se2-0002mP-0Q for emacs-orgmode@gnu.org; Tue, 27 May 2008 02:26:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K0se1-0002la-9U for emacs-orgmode@gnu.org; Tue, 27 May 2008 02:26:49 -0400 Received: from [199.232.76.173] (port=33147 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0se1-0002lR-6A for emacs-orgmode@gnu.org; Tue, 27 May 2008 02:26:49 -0400 Received: from mx20.gnu.org ([199.232.41.8]:58515) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K0se0-00041D-MG for emacs-orgmode@gnu.org; Tue, 27 May 2008 02:26:48 -0400 Received: from korteweg.uva.nl ([146.50.98.70]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K0se0-0006u2-0k for emacs-orgmode@gnu.org; Tue, 27 May 2008 02:26:48 -0400 In-Reply-To: <874p8lny3p.fsf@gmail.com> 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: Daniel Clemente Cc: Org-mode Mode Sure, this is really quite simple now (untested): (defun org-publish-all-top-level-trees () (interactive) (save-excursion (save-restriction (widen) (goto-char (point-min)) (unless (outline-next-heading) (error "No headings in this file")) (while (not (eobp)) (outline-mark-subtree) (org-export-as-html nil 'hidden) (condition-case nil (outline-forward-same-level 1) (error (goto-char (point-max))))))) A better implementation would be to find headlines which have an EXPORT_FILE_NAME property and export only those.... HTH - Carsten On May 26, 2008, at 12:44 PM, Daniel Clemente wrote: > >> #+OPTIONS: skip:nil >> * Computer Tricks >> :PROPERTIES: >> :EXPORT_FILE_NAME: ct.html >> :EXPORT_TITLE: Steve's collected computer tricks >> :EXPORT_OPTIONS: h:2 toc:nil >> :END: >> > > This is a neat feature; thanks, Carsten! Now org will make possible > to use a single .org file to hold several files, each one in one > section. I find this very useful since I'm working with a lot of > small files with lots of links among them. Having them in a single > org file makes moving through them a lot easier. > Could a single export command be used to go through the main file > and export each section with to its particular output file? > > > Thanks, > > Daniel