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 11:38:48 +0000 (UTC) Message-ID: References: <87d1x6rh9f.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfnpF-0001kx-VH for emacs-orgmode@gnu.org; Sat, 26 Sep 2015 07:39:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfnpC-00033a-Op for emacs-orgmode@gnu.org; Sat, 26 Sep 2015 07:39:33 -0400 Received: from plane.gmane.org ([80.91.229.3]:60850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfnpC-00031i-ID for emacs-orgmode@gnu.org; Sat, 26 Sep 2015 07:39:30 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zfnoz-0006OE-0D for emacs-orgmode@gnu.org; Sat, 26 Sep 2015 13:39:17 +0200 Received: from 85-168-246-97.rev.numericable.fr ([85.168.246.97]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Sep 2015 13:39:16 +0200 Received: from fabrice.popineau by 85-168-246-97.rev.numericable.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Sep 2015 13:39:16 +0200 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 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