Re: [O] new org-export-html-preamble

2011-03-02 Thread Bastien
Hi Robert,

Robert Klein rokl...@roklein.de writes:

 I think you just need to change

:preamble my preamble

 to

:html-preamble my preamble

 and similarly for postamble, so no elisp necessary.

Yes, that's it.

 Your suggestion works, but I had to polish my escapes in the format string,
 e.g.
 width=\20\%\
 now has to be
 width=\20\%%\

 because of the format-spec function used instead of org-replace-escapes.

 Probably will have to be careful with the sitemap also; there was a patch
 on Feb. 11, which also uses format-spec.

I've added explanations on how to escape the % character in such
variables, thanks for spotting this.

-- 
 Bastien

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[O] new org-export-html-preamble

2011-02-28 Thread Robert Klein

Hi everyone,

does anyone have by chance a working example of the 
org-export-html-preamble, introduced on February, 10?


Up to now I used

   :preamble my preamble

Now I'm lost in not knowing lisp enough.

Thank you very much for your help!

Robert

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [O] new org-export-html-preamble

2011-02-28 Thread Nick Dokos
Robert Klein rokl...@roklein.de wrote:

 Hi everyone,
 
 does anyone have by chance a working example of the
 org-export-html-preamble, introduced on February, 10?
 
 Up to now I used
 
:preamble my preamble
 
 Now I'm lost in not knowing lisp enough.
 
 Thank you very much for your help!
 

I think you just need to change

  :preamble my preamble

to

  :html-preamble my preamble

and similarly for postamble, so no elisp necessary.

Nick

PS. ...but I have not tried it.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [O] new org-export-html-preamble

2011-02-28 Thread Robert Klein

On 28.02.2011 17:35, Nick Dokos wrote:

Robert Kleinrokl...@roklein.de  wrote:


Hi everyone,

does anyone have by chance a working example of the
org-export-html-preamble, introduced on February, 10?

Up to now I used

:preamble my preamble

Now I'm lost in not knowing lisp enough.

Thank you very much for your help!



I think you just need to change

   :preamble my preamble

to

   :html-preamble my preamble

and similarly for postamble, so no elisp necessary.

Nick

PS. ...but I have not tried it.


Hi Nick,

thanks for the help.  Actually I probably had a typo at first and 
descended into lisp then.


Your suggestion works, but I had to polish my escapes in the format 
string, e.g.

width=\20\%\
now has to be
width=\20\%%\

because of the format-spec function used instead of org-replace-escapes.

Probably will have to be careful with the sitemap also; there was a 
patch on Feb. 11, which also uses format-spec.


Thanks again and best regards
Robert


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode