Kaushal Modi <kaushal.m...@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