[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Outut file name by backend
From: |
Fabrice Popineau |
Subject: |
Re: [O] Outut file name by backend |
Date: |
Sat, 26 Sep 2015 11:38:48 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
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