emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Fabrice Popineau <fabrice.popineau@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Outut file name by backend
Date: Sat, 26 Sep 2015 11:38:48 +0000 (UTC)	[thread overview]
Message-ID: <loom.20150926T133309-683@post.gmane.org> (raw)
In-Reply-To: 87d1x6rh9f.fsf@gmx.us

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

  reply	other threads:[~2015-09-26 11:39 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 [this message]
2015-09-26 15:16     ` Fabrice Popineau

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=loom.20150926T133309-683@post.gmane.org \
    --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 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).