From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: Exporting to multiple files Date: Sun, 9 Mar 2014 10:34:53 +0100 Message-ID: <20140309103453.24010dae@aga-netbook> References: <20140309023409.15f5bd11@aga-netbook> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMa8N-0004zZ-7F for emacs-orgmode@gnu.org; Sun, 09 Mar 2014 05:35:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WMa8H-0004RN-JM for emacs-orgmode@gnu.org; Sun, 09 Mar 2014 05:35:03 -0400 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:54618) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMa8H-0004RG-DE for emacs-orgmode@gnu.org; Sun, 09 Mar 2014 05:34:57 -0400 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id CDFA14206D for ; Sun, 9 Mar 2014 10:34:55 +0100 (CET) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PWEz1Jt616O0 for ; Sun, 9 Mar 2014 10:34:55 +0100 (CET) Received: from aga-netbook (99-234.echostar.pl [213.156.99.234]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id A9ACD42066 for ; Sun, 9 Mar 2014 10:34:55 +0100 (CET) In-Reply-To: <20140309023409.15f5bd11@aga-netbook> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Dnia 2014-03-09, o godz. 02:34:09 Marcin Borkowski napisa=C5=82(a): > Hi all, >=20 > I'd like to export an Org-mode file to /multiple/ HTML files. For > instance, I might want to convert all first and second level headings > to files, and third-level headings to

, fourth-level ones to

> inside these files etc. Is that possible? I looked into the docs, > but didn't find anything like this. >=20 > Of course, there's an issue of /naming/ these files. Basing the names > on the text of the heading would be the best thing to have, but it's > not strictly necessary for me - numbers or (as a /very last/ resort) > some kind of SHA hashes might do as well. >=20 > (In fact, I'd like to write a custom HTML exporter based on the HTML > one, so that I'd be fine with some Elisp to do this as opposed to just > setting some variables.) It occurred to me that I could just walk through the file, creating temporary buffers with my subtrees, demote them and export them one by one to HTML. This seems doable (and even not too complicated), but is there a better/simpler way, or has someone already invented that wheel? Best, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University