From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Klein Subject: Re: new org-export-html-preamble Date: Mon, 28 Feb 2011 17:58:08 +0100 Message-ID: <4D6BD420.7090403@roklein.de> References: <4D6BCD5F.9030402@roklein.de> <25248.1298910946@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=42713 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pu6QI-00018S-GS for emacs-orgmode@gnu.org; Mon, 28 Feb 2011 11:58:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pu6QH-0005wX-A4 for emacs-orgmode@gnu.org; Mon, 28 Feb 2011 11:58:14 -0500 Received: from moutng.kundenserver.de ([212.227.17.9]:64109) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pu6QG-0005wR-U0 for emacs-orgmode@gnu.org; Mon, 28 Feb 2011 11:58:13 -0500 In-Reply-To: <25248.1298910946@alphaville.dokosmarshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org On 28.02.2011 17:35, Nick Dokos wrote: > Robert Klein 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