From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: ePub and Org mode Date: Sat, 19 Feb 2011 22:46:02 +0100 Message-ID: <4D603A1A.9020601@christianmoe.com> References: <20110219202502.decc3e3e.alantyree@gmail.com> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=42334 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PquaO-0003u3-9t for emacs-orgmode@gnu.org; Sat, 19 Feb 2011 16:43:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PquaN-0003lT-6F for emacs-orgmode@gnu.org; Sat, 19 Feb 2011 16:43:28 -0500 Received: from mars.hitrost.net ([91.185.211.18]:27130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PquaN-0003jL-0g for emacs-orgmode@gnu.org; Sat, 19 Feb 2011 16:43:27 -0500 In-Reply-To: <20110219202502.decc3e3e.alantyree@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: Alan L Tyree Cc: emacs-orgmode@gnu.org Hi, I agree exporting 'chapters' in a single Org document to separate html files would be a nice option to have. Pending someone writing an export function for this, you could - post-process the HTML with one of the scripts out there for splitting up web pages, like htsplit available on CPAN; - or go the Org -> DocBook -> `chunked' HTML route? But just out of curiosity, why would you like this for the purpose of making an ePub book? Are you using a tool that requires it? (Unlike, e.g., Calibre, which takes a single HTML file as input, with TOC built from e.g. H2 as chapter headings.) Yours, Christian On 2/19/11 10:25 AM, Alan L Tyree wrote: > Greetings from Down Under, > I am constructing an ePub formatted book. It came to me in plain text and I have formatted in org-mode. > > It is easy to export to XHTML, the first step in ePub construction, but I would like every chapter to be a separate file. It is easy enough to do this with a macro or a simple function (even though I am no elisp guru). Is there an export function that does this? I didn't see it in the docs and I don't see anything about it doing a Google search. > > What would really be nice, is a single command to create the ePub file. > > Any help appreciated. > > Cheers, > Alan >