emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Cannot get the EXPORT_FILE_NAME override to work
Date: Thu, 04 May 2017 12:40:10 -0400	[thread overview]
Message-ID: <871ss44lud.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: CAFyQvY0n1SQ+oV_vCn+9u9P8T=2mhwKrrMCxbe_+reC9PseutA@mail.gmail.com

Kaushal Modi <kaushal.modi@gmail.com> writes:

> Hello,
>
> I am trying to use the EXPORT_FILE_NAME property for the first time, but it is not working.
>
> Here is the MWE:
>
> ===== override-export-file-name.org =====
> #+TITLE: Test overriding of export file name
>
> * Heading 1
> :PROPERTIES:
> :EXPORT_FILE_NAME: foo
> :END:
> I want to name the exported file as =foo.=(something). If I export to HTML, it should be named =foo.html
> =.
> =====
>
> I am using emacs and org version built from master today.
>
> Attempt 1: Export the whole file using C-c C-e h h. But override-export-file-name.html gets created
> instead of foo.html.
>
That does not work: you have to set #+EXPORT_FILE_NAME: foo for that.

> Attempt 2: Select just the Heading 1 subtree, narrow to it, and export that using C-c C-e h h. Again
> override-export-file-name.html gets created instead of foo.html.
>

I don't know how narrowing interacts with export but the following

   C-c C-e C-s h h

works (assuming you are in the correct subtree at the time).

> So when does the EXPORT_FILE_NAME property work? What am I doing wrong?
>
> Thanks.
>
> --
>
> Kaushal Modi
>

-- 
Nick

  parent reply	other threads:[~2017-05-04 16:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-04 15:30 Cannot get the EXPORT_FILE_NAME override to work Kaushal Modi
2017-05-04 15:36 ` Kaushal Modi
2017-05-04 16:40 ` Nick Dokos [this message]
2017-05-04 17:02   ` Kaushal Modi
2017-05-04 17:33     ` Nick Dokos
2017-05-04 18:28       ` Kaushal Modi
2017-05-04 19:56         ` Kaushal Modi

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=871ss44lud.fsf@alphaville.usersys.redhat.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).