From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Re: Outut file name by backend Date: Sat, 26 Sep 2015 17:16:03 +0200 Message-ID: References: <87d1x6rh9f.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113d2202724b230520a7f2ee Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfrD7-0006SZ-8O for emacs-orgmode@gnu.org; Sat, 26 Sep 2015 11:16:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfrD5-0007HA-Pa for emacs-orgmode@gnu.org; Sat, 26 Sep 2015 11:16:25 -0400 Received: from mail-oi0-x22c.google.com ([2607:f8b0:4003:c06::22c]:35258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfrD5-0007GN-Kd for emacs-orgmode@gnu.org; Sat, 26 Sep 2015 11:16:23 -0400 Received: by oiww128 with SMTP id w128so71764897oiw.2 for ; Sat, 26 Sep 2015 08:16:23 -0700 (PDT) In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" --001a113d2202724b230520a7f2ee Content-Type: text/plain; charset=UTF-8 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 : > Rasmus gmx.us> writes: > > > > > Fabrice Popineau 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 > > > > --001a113d2202724b230520a7f2ee Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I must add that there is one difference between my setup a= nd ox-publish : I use PROPERTIES to=C2=A0
parametrize my exports in sev= eral ways. I create several html pages and pdf files from subtrees.=C2=A0
These pages need some navigation to be defined and I collect it by= scanning the org =C2=A0file. I assemble the menu for the
pages f= rom 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=C2=A0
over time.

Fabrice

2015-09-= 26 13:38 GMT+02:00 Fabrice Popineau <fabrice.popineau@gmail.com>:
Rasmus <rasmus <at&g= t; gmx.us> writes:

>
> Fabrice Popineau <fabrice.popineau <at>
gmail.com> writes:
>
> > Hi,
> >
> > Could it be made possible that the output file name when exportin= g
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=C2=A0 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




--001a113d2202724b230520a7f2ee--