From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Re: Exporting to multiple files Date: Thu, 13 Mar 2014 14:11:06 +0100 Message-ID: References: <20140309023409.15f5bd11@aga-netbook> <20140309103453.24010dae@aga-netbook> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e01634a3acc59de04f47cb0f2 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WO5Q1-0002qT-32 for emacs-orgmode@gnu.org; Thu, 13 Mar 2014 09:11:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WO5Pz-0001rK-TJ for emacs-orgmode@gnu.org; Thu, 13 Mar 2014 09:11:29 -0400 Received: from mail-ea0-x22e.google.com ([2a00:1450:4013:c01::22e]:36692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WO5Pz-0001qJ-Gb for emacs-orgmode@gnu.org; Thu, 13 Mar 2014 09:11:27 -0400 Received: by mail-ea0-f174.google.com with SMTP id f15so476513eak.19 for ; Thu, 13 Mar 2014 06:11:26 -0700 (PDT) In-Reply-To: <20140309103453.24010dae@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: Marcin Borkowski Cc: "emacs-orgmode@gnu.org" --089e01634a3acc59de04f47cb0f2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable You could have a look at o-blog for example. It does something which is not too far from what you want (IIUC). It does it in a way similar to what you describe. Regards, Fabrice 2014-03-09 10:34 GMT+01:00 Marcin Borkowski : > Dnia 2014-03-09, o godz. 02:34:09 > Marcin Borkowski napisa=C5=82(a): > > > Hi all, > > > > 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. > > > > 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. > > > > (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, > > -- > Marcin Borkowski > http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski > Adam Mickiewicz University > > --=20 Fabrice Popineau ----------------------------- SUPELEC D=C3=A9partement Informatique 3, rue Joliot Curie 91192 Gif/Yvette Cedex Tel direct : +33 (0) 169851950 Standard : +33 (0) 169851212 ------------------------------ --089e01634a3acc59de04f47cb0f2 Content-Type: text/html; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable
You could have a look at o-blog for example. It does somet= hing which is not too far from what you want (IIUC).
It does it in a wa= y similar to what you describe.

Regards,

Fabrice


2014-03-09 10:34 GMT+01:00 Marcin Borkowski <mbor= k@wmi.amu.edu.pl>:
Dnia 2014-03-09, o godz. 02:34:09
Marcin Borkowski <mbork@wmi.amu.= edu.pl> napisa=B3(a):

> Hi all,
>
> I'd like to export an Org-mode file to /multiple/ HTML files. =A0F= or
> instance, I might want to convert all first and second level headings<= br> > to files, and third-level headings to <h1>, fourth-level ones to= <h2>
> inside these files etc. =A0Is that possible? =A0I looked into the docs= ,
> but didn't find anything like this.
>
> Of course, there's an issue of /naming/ these files. =A0Basing 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.
>
> (In fact, I'd like to write a custom HTML exporter based on the HT= ML
> 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. =A0This seems doable (and even not too complicated), but is there a better/simpler way, or has someone already invented that wheel?

Best,

--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University




--
= Fabrice Popineau
-----------------------------
SUPELEC
<= div>D=E9partement Informatique
3, rue Joliot Curie
9119= 2 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950
Standard : +33 (0) 169851212<= /div>
------------------------------

--089e01634a3acc59de04f47cb0f2--