From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: new org-export-html-preamble Date: Wed, 02 Mar 2011 18:31:17 +0100 Message-ID: <874o7l5t0a.fsf@gnu.org> References: <4D6BCD5F.9030402@roklein.de> <25248.1298910946@alphaville.dokosmarshall.org> <4D6BD420.7090403@roklein.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=54232 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuptW-0005Vb-A9 for emacs-orgmode@gnu.org; Wed, 02 Mar 2011 12:31:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuptV-0000xz-20 for emacs-orgmode@gnu.org; Wed, 02 Mar 2011 12:31:26 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:58438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuptU-0000xv-SH for emacs-orgmode@gnu.org; Wed, 02 Mar 2011 12:31:25 -0500 Received: by wwj40 with SMTP id 40so238319wwj.30 for ; Wed, 02 Mar 2011 09:31:24 -0800 (PST) In-Reply-To: <4D6BD420.7090403@roklein.de> (Robert Klein's message of "Mon, 28 Feb 2011 17:58:08 +0100") 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: Robert Klein Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Hi Robert, Robert Klein 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