From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Cannot get the EXPORT_FILE_NAME override to work Date: Thu, 04 May 2017 12:40:10 -0400 Message-ID: <871ss44lud.fsf@alphaville.usersys.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6Jnk-00039X-20 for emacs-orgmode@gnu.org; Thu, 04 May 2017 12:40:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d6Jng-0000XV-U0 for emacs-orgmode@gnu.org; Thu, 04 May 2017 12:40:24 -0400 Received: from [195.159.176.226] (port=44023 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d6Jng-0000Wq-NL for emacs-orgmode@gnu.org; Thu, 04 May 2017 12:40:20 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1d6JnY-0004a2-8B for emacs-orgmode@gnu.org; Thu, 04 May 2017 18:40:12 +0200 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" To: emacs-orgmode@gnu.org Kaushal Modi 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