From: Kaushal Modi <kaushal.modi@gmail.com>
To: Nick Dokos <ndokos@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: Cannot get the EXPORT_FILE_NAME override to work
Date: Thu, 04 May 2017 17:02:51 +0000 [thread overview]
Message-ID: <CAFyQvY2AAgp1ykXjAj6kSJKSqiu0u+kuyjCUV1LeMBoPAs3P9g@mail.gmail.com> (raw)
In-Reply-To: <871ss44lud.fsf@alphaville.usersys.redhat.com>
[-- Attachment #1: Type: text/plain, Size: 3867 bytes --]
On Thu, May 4, 2017 at 12:41 PM Nick Dokos <ndokos@gmail.com> wrote:
> That does not work: you have to set #+EXPORT_FILE_NAME: foo for that.
>
That works.
But the node property should also have worked:
In (org) Export settings:
When exporting only a subtree, each of the previous keywords(4) can
be overridden locally by special node properties. These begin with
‘EXPORT_’, followed by the name of the keyword they supplant, unless the
keyword already beging with ‘EXPORT_’. For example, ‘DATE’ and
‘EXPORT_FILE_NAME’ keywords become, respectively, ‘EXPORT_DATE’ and
‘EXPORT_FILE_NAME’ properties.
> 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).
>
I tried with narrowing and that works.
=====
#+TITLE: Test overriding of export file name
# Below works
#+EXPORT_FILE_NAME: baz
* Heading 1
:PROPERTIES:
:EXPORT_FILE_NAME: foo
:END:
# Above override does not work
I want to name the exported file as =foo.=(something). If I export to HTML,
it should be named =foo.html=.
#+EXPORT_FILE_NAME: hd2
* Heading 2
Stuff in heading 2
=====
I narrowed down to
=====
#+EXPORT_FILE_NAME: hd2
* Heading 2
Stuff in heading 2
=====
And that exported to hd2.html.. But this does not fit my requirement.. I
need to specify the export file name to be different for different
subtrees. So that publishing the whole project "eless-all" would put stuff
in their correct files in one go:
(setq org-publish-project-alist
`(;; HTML
("eless-html"
:base-directory ,eless-root-dir
:with-tags nil
:exclude-tags ("noexport" "readme" "wiki")
:publishing-function org-html-publish-to-html
:publishing-directory ,eless-doc-dir)
;; Info
("eless-info"
:base-directory ,eless-root-dir
:with-tags nil
:exclude-tags ("noexport" "readme" "wiki")
:publishing-function org-texinfo-publish-to-texinfo
:publishing-directory ,eless-doc-dir
:completion-function my/org-texinfo-publish-to-info)
;; eless script
("eless-tangle"
:base-directory ,eless-root-dir
:publishing-function org-babel-tangle-publish
:publishing-directory ,eless-root-dir)
;; README.md
("eless-readme"
:base-directory ,eless-root-dir
:with-toc nil
:with-tags nil
:select-tags ("readme") ;Cannot have hyphens in tags!
:publishing-function org-gfm-publish-to-gfm
:publishing-directory ,eless-root-dir
:completion-function eless/readme-completion-fn)
;; CONTRIBUTING.md
("eless-contributing"
:base-directory ,eless-root-dir
:with-toc nil
:with-tags nil
:select-tags ("contributing") ;Cannot have hyphens in tags!
:publishing-function org-gfm-publish-to-gfm
:publishing-directory ,eless-root-dir
:completion-function eless/contributing-completion-fn)
;; Wiki Pages
("eless-wiki-tcsh"
:base-directory ,eless-root-dir
:with-toc nil
:with-tags nil
:select-tags ("wikitcsh") ;Cannot have hyphens in tags!
:publishing-function org-gfm-publish-to-gfm
:publishing-directory ,eless-wiki-dir
:completion-function eless/wiki-tcsh-completion-fn)
("eless-wiki"
:components ("eless-wiki-tcsh"))
("eless-all-docs"
:components ("eless-html" "eless-info"
"eless-readme" "eless-contributing" "eless-wiki"))
("eless-all"
:components ("eless-all-docs" "eless-tangle"))))
--
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 5946 bytes --]
next prev parent reply other threads:[~2017-05-04 17:03 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
2017-05-04 17:02 ` Kaushal Modi [this message]
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=CAFyQvY2AAgp1ykXjAj6kSJKSqiu0u+kuyjCUV1LeMBoPAs3P9g@mail.gmail.com \
--to=kaushal.modi@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=ndokos@gmail.com \
/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).