From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Nested exports - Exporting a "sub.org" file while exporting "main.org" Date: Tue, 14 Sep 2010 18:21:01 +0200 Message-ID: <87y6b42t5e.fsf@gmx.de> References: <4C8F5DD4.3080108@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=38073 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvYGJ-0002Jh-31 for emacs-orgmode@gnu.org; Tue, 14 Sep 2010 12:21:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvYFq-0001oR-AL for emacs-orgmode@gnu.org; Tue, 14 Sep 2010 12:21:14 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:49112 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OvYFp-0001oB-U8 for emacs-orgmode@gnu.org; Tue, 14 Sep 2010 12:21:10 -0400 In-Reply-To: <4C8F5DD4.3080108@gmail.com> (Rainer M. Krug's message of "Tue, 14 Sep 2010 13:34: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: Rainer M Krug Cc: emacs-orgmode Rainer M Krug writes: > Hi > > I want to export a subdocument (sub.org) while exporting a main document > (main.org), but I am getting an > "Args out of range: 0,0" > error message after the sub.org document is exported. > > Am I doing something wrong or is it not possible to have nested exports? Hi Rainer, in Org mode you would rather set up a special publishing project for such a task: (setq org-publish-project-alist '(("main-and-sub" :base-directory "~/org/" :auto-sitemap nil ; NO sitemap for this project !! :recursive t :base-extension "org" :publishing-directory "~/public_html/org/" :publishing-function org-publish-org-to-html ) ("one-more-project" ;;... ))) See also: http://orgmode.org/manual/Publishing.html#Publishing This describes my publishing setup: http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.php Best wishes Sebastian