From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Override export filename Date: Tue, 02 Nov 2010 14:35:08 -0400 Message-ID: <9487.1288722908@alphaville.usa.hp.com> References: <83aalrg27o.fsf@yahoo.it> <20101102180457.GA15179@neko> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=58545 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDLhQ-0001mC-26 for emacs-orgmode@gnu.org; Tue, 02 Nov 2010 14:35:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDLhO-0001wi-In for emacs-orgmode@gnu.org; Tue, 02 Nov 2010 14:35:11 -0400 Received: from g4t0016.houston.hp.com ([15.201.24.19]:46295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDLhO-0001wZ-D0 for emacs-orgmode@gnu.org; Tue, 02 Nov 2010 14:35:10 -0400 In-Reply-To: Message from Aidan Gauland of "Wed, 03 Nov 2010 07:04:58 +1300." <20101102180457.GA15179@neko> 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: Giovanni Ridolfi , emacs-orgmode@gnu.org Cc: nicholas.dokos@hp.com Aidan Gauland wrote: > On Tue, Nov 02, 2010 at 04:44:11PM +0100, Giovanni Ridolfi wrote: > > Aidan Gauland writes: > > > > Is there an export option to specify the name of the file to which to > > > export the org file? > > > for documents: > > #+TITLE: > > This doesn't seem to allow me to specify the filename. For example, > the file... > > #+TITLE: bar.goo > > * A heading > foo foo > > ..is exported (as HTML) to foo.html, not bar.goo. > If you just need a different extension, I think this works: --8<---------------cut here---------------start------------->8--- #+BIND: org-export-html-extension "goo" * foo foo * bar bar --8<---------------cut here---------------end--------------->8--- and there might be a higher-level way to do that too; e.g. if you are publishing a project, you can set the :html-extension property, but that is probably going to affect more than the one file. Also, I don't know of a way to change the base filename however, and cursory examination of the code leads me to believe that it is not possible currently. HTH, Nick