emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Giovanni Ridolfi <giovanni.ridolfi@yahoo.it>, emacs-orgmode@gnu.org
Cc: nicholas.dokos@hp.com
Subject: Re: Override export filename
Date: Tue, 02 Nov 2010 14:35:08 -0400	[thread overview]
Message-ID: <9487.1288722908@alphaville.usa.hp.com> (raw)
In-Reply-To: Message from Aidan Gauland <aidalgol@no8wireless.co.nz> of "Wed, 03 Nov 2010 07:04:58 +1300." <20101102180457.GA15179@neko>

Aidan Gauland <aidalgol@no8wireless.co.nz> wrote:

> On Tue, Nov 02, 2010 at 04:44:11PM +0100, Giovanni Ridolfi wrote:
> > Aidan Gauland <aidalgol@no8wireless.co.nz> 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

  parent reply	other threads:[~2010-11-02 18:35 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-02  9:08 Override export filename Aidan Gauland
2010-11-02 15:44 ` Giovanni Ridolfi
2010-11-02 18:04   ` Aidan Gauland
     [not found]     ` <aidalgol@no8wireless.co.nz>
2010-11-02 18:35       ` Nick Dokos [this message]
2010-11-05  0:57         ` Aidan Gauland
2011-03-19  1:33       ` org-publish not publishing changed files Nick Dokos
2011-03-19  2:19         ` Suvayu Ali
2011-03-20 11:30           ` David Maus
2011-03-20 11:47             ` Suvayu Ali
2011-03-22  2:00         ` Aidan Gauland
2011-03-22  6:18           ` Nick Dokos
2011-03-22  7:32             ` Aidan Gauland
2011-03-22 14:17               ` Nick Dokos
2011-04-01 19:56                 ` Aidan Gauland
  -- strict thread matches above, loose matches on Subject: below --
2011-03-19  1:16 Aidan Gauland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9487.1288722908@alphaville.usa.hp.com \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=giovanni.ridolfi@yahoo.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).