From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: Exporting an org-file to multiple html pages Date: Mon, 31 Aug 2015 13:43:58 +0200 Message-ID: <8737yzk7i9.fsf@mbork.pl> References: <87wpwblq45.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWNVW-0002CN-1a for emacs-orgmode@gnu.org; Mon, 31 Aug 2015 07:44:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWNVS-0007U5-0w for emacs-orgmode@gnu.org; Mon, 31 Aug 2015 07:44:13 -0400 Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:34254) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWNVR-0007TE-PX for emacs-orgmode@gnu.org; Mon, 31 Aug 2015 07:44:09 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id EF4186F2005 for ; Mon, 31 Aug 2015 13:44:07 +0200 (CEST) Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eU4tu06O3zoo for ; Mon, 31 Aug 2015 13:44:05 +0200 (CEST) Received: from localhost (103-115.echostar.pl [213.156.103.115]) by mail.mojserwer.eu (Postfix) with ESMTPSA id C84F56F2003 for ; Mon, 31 Aug 2015 13:44:05 +0200 (CEST) In-reply-to: <87wpwblq45.fsf@iki.fi> 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 On 2015-08-31, at 12:16, Jarmo Hurri wrote: > Greetings. > > I am writing a relatively extensive document in org, and I am currently > trying to figure out how to split the exported html into multiple html > pages. > > Is publishing along the lines of this tutorial still the best way to do > it? > > http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html > > In other words, do I need to split one org file into multiple org files > and then build the links between them manually? That is, is there no way > to automatically have top level "chapters" split into pages with links > between chapters? Does this help? https://github.com/mbork/org-one-to-many Its purpose is to split an Org file into many pieces (either giving a level, or marking the headlines to be split with a :split: tag), modifying internal links so that they still point to the same places (even though in different files). Then you can export these files individually to HTML. I think splitting the Org file is a better idea than splitting the produced HTML file: it seems both easier and maybe more versatile (you are not restricted to HTML then). Notice that if you have some configs (like #+OPTIONS etc.), it might be a good idea to move them to a separate heading marked with :config: and :noexport: tags. The entry point is the =org-one-to-many= function. It currently lacks proper documentation, but see its docstring for some help. Also, feel free to ask me. Currently, the .el file lacks a proper header, too - I'll add it later (maybe even today). > Thanks! > > Jarmo Hth, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University