emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Outut file name by backend
@ 2015-09-25  4:56 Fabrice Popineau
  2015-09-25  9:16 ` Rasmus
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Popineau @ 2015-09-25  4:56 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 264 bytes --]

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 ?

Best regards,

Fabrice

[-- Attachment #2: Type: text/html, Size: 442 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Outut file name by backend
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Rasmus @ 2015-09-25  9:16 UTC (permalink / raw)
  To: emacs-orgmode

Fabrice Popineau <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?

-- 
Together we'll stand, divided we'll fall

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Outut file name by backend
  2015-09-25  9:16 ` Rasmus
@ 2015-09-26 11:38   ` Fabrice Popineau
  2015-09-26 15:16     ` Fabrice Popineau
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Popineau @ 2015-09-26 11:38 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Outut file name by backend
  2015-09-26 11:38   ` Fabrice Popineau
@ 2015-09-26 15:16     ` Fabrice Popineau
  0 siblings, 0 replies; 4+ messages in thread
From: Fabrice Popineau @ 2015-09-26 15:16 UTC (permalink / raw)
  To: emacs-orgmode@gnu.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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-09-26 15:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

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).