From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yujie Wen Subject: How to specify complex HTML pre/postamble in the Org file? Date: Fri, 4 Oct 2013 18:13:03 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b15ac2348942804e7e78cea Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS2Nf-0006P4-91 for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 06:13:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VS2Nd-0003jS-L3 for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 06:13:07 -0400 Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]:42781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS2Nd-0003jD-DZ for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 06:13:05 -0400 Received: by mail-pa0-f43.google.com with SMTP id hz1so3913179pad.30 for ; Fri, 04 Oct 2013 03:13:03 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org Mode" --047d7b15ac2348942804e7e78cea Content-Type: text/plain; charset=ISO-8859-1 Hi, I am just wondering how to specify some complex HTML pre/postamble contents in the Org file. As the document saying, HTML pre/postamble contents can be given by either setting string values to emacs variables org-html-preamble/postamble, or setting #+OPTIONS: html-preamble/postamble:. I prefer the pre/postamble contents being specified in the same Org file, so I tried "#+OPTIONS: html-preamble/postamble". It works fine until the contents became a HTML string that contains double quote marks, which cause a parse error during exporting. I tried some escaping like: #+OPTION: html-preamble: "

Headings

" but it didn't solve the parse error. Any suggestion on specifying HTML pre/postamble contents within the same Org file? Regards, Yujie --047d7b15ac2348942804e7e78cea Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

= =A0 I am just wondering how to specify some complex HTML pre/postamble cont= ents in the Org file.

=A0 As the document saying, HTML pre/po= stamble contents can be given by either setting string values to emacs vari= ables org-html-preamble/postamble, or setting #+OPTIONS: html-preamble/post= amble:.

=A0 I prefer the pre/postamble contents being specified in the sa= me Org file, so I tried "#+OPTIONS: html-preamble/postamble". It = works fine until the contents became a HTML string that contains double quo= te marks, which cause a parse error during exporting. I tried some escaping= like:

#+OPTION: html-preamble: "<p align=3D\"right\"&= gt;Headings</p>"

but it didn't solve the parse = error.

=A0 Any suggestion on specifying HTML pre/postamble con= tents within the same Org file?

Regards,
Yujie
--047d7b15ac2348942804e7e78cea--