From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulf Stegemann Subject: Re: Exporting to single LaTeX file and multiple HTML files Date: Mon, 10 May 2010 10:21:33 +0200 Message-ID: References: <87hbmjwngv.wl%dmaus@ictsoc.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1OBOUj-0005N6-3L for emacs-orgmode@gnu.org; Mon, 10 May 2010 04:37:45 -0400 Received: from [140.186.70.92] (port=52102 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBOUK-0002Ao-A2 for emacs-orgmode@gnu.org; Mon, 10 May 2010 04:37:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OBOTo-0008Hr-4e for emacs-orgmode@gnu.org; Mon, 10 May 2010 04:37:19 -0400 Received: from lo.gmane.org ([80.91.229.12]:57075) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBOTn-0008HY-R7 for emacs-orgmode@gnu.org; Mon, 10 May 2010 04:36:48 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OBOFE-00085n-Ih for emacs-orgmode@gnu.org; Mon, 10 May 2010 10:21:44 +0200 Received: from london.zeitform.net ([146.140.213.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 May 2010 10:21:44 +0200 Received: from ulf-news by london.zeitform.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 May 2010 10:21:44 +0200 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: emacs-orgmode@gnu.org Hi David, Eric, all, David Maus wrote: > The function below could be a starting point of a more general > functionality: It takes a file and splits copys all headlines with a > certain level to a separate output file. Eric Schulte wrote: > Possibly one of these... > - http://eschulte.github.com/babel-dev/publish.html > - http://orgmode.org/worg/org-tutorials/org-jekyll.php thank you both for the pointers, they all look interesting and I'll have a closer look at it soon. Originally, I've asked the question because of a forthcoming project with a rather large documentation where I'd like to advocate org as documentation system. However, since the whole thing has been postponed, the matter is less pressing. Nevertheless, I think that having a functionality to split files on export would be a nice improvement of org mode. If I would really need this some day, I'd probably write something to achieve it but certainly not in elisp as it would take me far too long due to lack of skill. I'd rather go for a ruby, perl or even shell script for post-processing the export. However, such post-processing would certainly not be the very best solution, an implementation in elisp would be much better. Regarding the split criteria, I'd say that splitting by section level is probably the most common case, although keeping track of the section numbering may pose a problem as David has already mentioned. Splitting by tag may be also useful. Ideally, section level or tag could be defined as export option. As said, the topic has been currently put on hold for me, but I'd nevertheless appreciate any hints and pointers regarding it. Ulf