Re: [O] running some elisp code when exporting a given file

2013-09-06 Thread Eric Schulte
Alan Schmitt writes: > n.goaz...@gmail.com writes: > >> Hello, >> >> Alan Schmitt writes: >> >>> I would like to inline a css when exporting a file to html, but I don't >>> know how to tell org-mode to set the variable org-html-head from within >>> the file. >>> >>> Here is what I tried: I added

Re: [O] running some elisp code when exporting a given file

2013-09-05 Thread Alan Schmitt
mylesengl...@gmail.com writes: > Hi Alan, > > Alan Schmitt writes: > >> Is there a way to have arbitrary code stored in the file being exported >> being evaluated before an export? > > I think you can use org-export-before-processing-hook for this. Thank you for the suggestion. My question would

Re: [O] running some elisp code when exporting a given file

2013-09-05 Thread Alan Schmitt
n.goaz...@gmail.com writes: > Hello, > > Alan Schmitt writes: > >> I would like to inline a css when exporting a file to html, but I don't >> know how to tell org-mode to set the variable org-html-head from within >> the file. >> >> Here is what I tried: I added the following block at the beginni

Re: [O] running some elisp code when exporting a given file

2013-09-05 Thread Nicolas Goaziou
Hello, Alan Schmitt writes: > I would like to inline a css when exporting a file to html, but I don't > know how to tell org-mode to set the variable org-html-head from within > the file. > > Here is what I tried: I added the following block at the beginning of my > file: > > #+BEGIN_SRC emacs-l

Re: [O] running some elisp code when exporting a given file

2013-09-05 Thread Myles English
Hi Alan, Alan Schmitt writes: > Is there a way to have arbitrary code stored in the file being exported > being evaluated before an export? I think you can use org-export-before-processing-hook for this. """ 12.13 Advanced configuration Hooks - Two hooks are

[O] running some elisp code when exporting a given file

2013-09-05 Thread Alan Schmitt
Hello, I would like to inline a css when exporting a file to html, but I don't know how to tell org-mode to set the variable org-html-head from within the file. Here is what I tried: I added the following block at the beginning of my file: --8<---cut here---start-