From: Fabrice Popineau <fabrice.popineau@gmail.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Outut file name by backend
Date: Sat, 26 Sep 2015 17:16:03 +0200 [thread overview]
Message-ID: <CAFgFV9Ogum0zPmtAMVhK3EpeQ97oZ7EF7RnDSKSnR5n8Tjky4w@mail.gmail.com> (raw)
In-Reply-To: <loom.20150926T133309-683@post.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1714 bytes --]
I must add that there is one difference between my setup and ox-publish : I
use PROPERTIES to
parametrize my exports in several ways. I create several html pages and pdf
files from subtrees.
These pages need some navigation to be defined and I collect it by scanning
the org file. I assemble the menu for the
pages from this information. I'm not sure I could do that with ox-publish.
It seems that if the pub-dir variable is bound at the time of export, then
it is taken into account as
the export dir. However I find it by reading the code. I expect that it is
something that could change
over time.
Fabrice
2015-09-26 13:38 GMT+02:00 Fabrice Popineau <fabrice.popineau@gmail.com>:
> Rasmus <rasmus <at> gmx.us> writes:
>
> >
> > Fabrice Popineau <fabrice.popineau <at> gmail.com> writes:
> >
> > > Hi,
> > >
> > > Could it be made possible that the output file name when exporting
> be
> > > chosen by backend ?
> > > Something like :
> > >
> > > :EXPORT_FILE_NAME: (by-backend (latex "PDFL2A/pdf/pdl2a.tex) (html
> > > "PDFL2A/projets.html"))
> > >
> > > Am I missing another option here ?
> >
> > Could you use ox-publish?
>
> Possibly yes, I'm not sure.
>
> Actually, I find it easier to write a couple of elisp functions to
> export a bunch of org files as a web site. I handle my courses material
> this way. I have web pages (ox-html), slides (ox-reveal) and pdf files
> (ox-latex). Sometimes I would like to produce both a pdf file and an
> html file from the same org subtree.
>
> When I will have time, I'll take a look at ox-publish again. In the
> meantime, I think that it would be more flexible to allow the exported
> filename to be computed. OTOH, it is unsafe/unsecure.
>
> Fabrice
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 2562 bytes --]
prev parent reply other threads:[~2015-09-26 15:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-25 4:56 Outut file name by backend Fabrice Popineau
2015-09-25 9:16 ` Rasmus
2015-09-26 11:38 ` Fabrice Popineau
2015-09-26 15:16 ` Fabrice Popineau [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFgFV9Ogum0zPmtAMVhK3EpeQ97oZ7EF7RnDSKSnR5n8Tjky4w@mail.gmail.com \
--to=fabrice.popineau@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.