From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: external setup file for org-html-preamble? Date: Sun, 9 Feb 2014 16:35:03 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b5d3610f38e1704f1fffe98 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCc1q-0002UP-I3 for emacs-orgmode@gnu.org; Sun, 09 Feb 2014 16:35:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCc1p-0000eF-3N for emacs-orgmode@gnu.org; Sun, 09 Feb 2014 16:35:06 -0500 Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]:52707) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCc1o-0000Z6-SU for emacs-orgmode@gnu.org; Sun, 09 Feb 2014 16:35:05 -0500 Received: by mail-pa0-f49.google.com with SMTP id hz1so5303489pad.8 for ; Sun, 09 Feb 2014 13:35:03 -0800 (PST) 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: org-mode --047d7b5d3610f38e1704f1fffe98 Content-Type: text/plain; charset=ISO-8859-1 Hello, I'm exporting my org-mode files to HTML. I've been using: # Local Variables: # org-html-preamble: # End: to insert a custom HTML preamble and postamble for my org files for HTML export. Just now for simplicity, I'm trying to move the preamble and postamble to an external setup file. In my org-mode file, I now have #+SETUPFILE: "setup.org" and my setup.org file looks like this: http://ix.io/apQ However, when I try to export to HTML, I get "Invalid format string" Can anyone spot the problem in my setup file? http://ix.io/apQ Thanks! --047d7b5d3610f38e1704f1fffe98 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello,

I'm exporting my org-mode fi= les to HTML. I've been using:=A0

# Local = Variables:=A0
# org-html-preamble:
# End:=A0<= /div>

to insert a custom HTML preamble and postamble for my o= rg files for HTML export.=A0

Just now for simplici= ty, I'm trying to move the preamble and postamble to an external setup = file.=A0

In my org-mode file, I now have

#+SETUPFILE: "setup.org"<= /div>

and my setup.or= g file looks like this:=A0http://ix.io/apQ=

However, when I try to export to HTML, I get "Inva= lid format string"

Can anyone spot the proble= m in my setup file?=A0http://ix.io/apQ

Thanks!



--047d7b5d3610f38e1704f1fffe98-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: external setup file for org-html-preamble? Date: Sun, 09 Feb 2014 23:33:30 +0100 Message-ID: <87y51jncg5.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCcw8-00080j-UH for emacs-orgmode@gnu.org; Sun, 09 Feb 2014 17:33:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCcw3-0007Gv-NK for emacs-orgmode@gnu.org; Sun, 09 Feb 2014 17:33:16 -0500 Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:33944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCcw3-0007Gq-G1 for emacs-orgmode@gnu.org; Sun, 09 Feb 2014 17:33:11 -0500 Received: by mail-wi0-f169.google.com with SMTP id e4so2213838wiv.4 for ; Sun, 09 Feb 2014 14:33:10 -0800 (PST) In-Reply-To: (Peter Salazar's message of "Sun, 9 Feb 2014 16:35:03 -0500") 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: Peter Salazar Cc: org-mode Hello, Peter Salazar writes: > Just now for simplicity, I'm trying to move the preamble and postamble to > an external setup file. > > In my org-mode file, I now have > > #+SETUPFILE: "setup.org" > > and my setup.org file looks like this: http://ix.io/apQ > > However, when I try to export to HTML, I get "Invalid format string" > > Can anyone spot the problem in my setup file? http://ix.io/apQ You need to escape "%" in the first BIND value. See `org-html-preamble-format' docstring. Regards, -- Nicolas Goaziou From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: Re: external setup file for org-html-preamble? Date: Sun, 9 Feb 2014 23:56:21 -0500 Message-ID: References: <87y51jncg5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b33d0ca31dc4e04f2062964 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCiuu-0007TC-10 for emacs-orgmode@gnu.org; Sun, 09 Feb 2014 23:56:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCiut-00035R-0r for emacs-orgmode@gnu.org; Sun, 09 Feb 2014 23:56:23 -0500 Received: from mail-pb0-x22d.google.com ([2607:f8b0:400e:c01::22d]:57250) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCius-00035N-Pi for emacs-orgmode@gnu.org; Sun, 09 Feb 2014 23:56:22 -0500 Received: by mail-pb0-f45.google.com with SMTP id un15so5764862pbc.4 for ; Sun, 09 Feb 2014 20:56:21 -0800 (PST) In-Reply-To: <87y51jncg5.fsf@gmail.com> 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: Nicolas Goaziou Cc: org-mode --047d7b33d0ca31dc4e04f2062964 Content-Type: text/plain; charset=ISO-8859-1 Yes! That was exactly it! Thank you. On Sun, Feb 9, 2014 at 5:33 PM, Nicolas Goaziou wrote: > Hello, > > Peter Salazar writes: > > > Just now for simplicity, I'm trying to move the preamble and postamble to > > an external setup file. > > > > In my org-mode file, I now have > > > > #+SETUPFILE: "setup.org" > > > > and my setup.org file looks like this: http://ix.io/apQ > > > > However, when I try to export to HTML, I get "Invalid format string" > > > > Can anyone spot the problem in my setup file? http://ix.io/apQ > > You need to escape "%" in the first BIND value. See > `org-html-preamble-format' docstring. > > > Regards, > > -- > Nicolas Goaziou > --047d7b33d0ca31dc4e04f2062964 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Yes! That was exactly it! Thank you.=A0




On Sun, Feb 9, 2014 at 5:33 PM, Nicolas Goaziou <<= a href=3D"mailto:n.goaziou@gmail.com" target=3D"_blank">n.goaziou@gmail.com= > wrote:
Hello,

Peter Salazar <cycleofsong@gmai= l.com> writes:

> Just now for simplicity, I'm trying to move the preamble and posta= mble to
> an external setup file.
>
> In my org-mode file, I now have
>
> #+SETUPFILE: "setu= p.org"
>
> and my setup.org fi= le looks like this: http://i= x.io/apQ
>
> However, when I try to export to HTML, I get "Invalid format stri= ng"
>
> Can anyone spot the problem in my setup file? http://ix.io/apQ

You need to escape "%" in the first BIND value. See
`org-html-preamble-format' docstring.


Regards,

--
Nicolas Goaziou

--047d7b33d0ca31dc4e04f2062964-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: external setup file for org-html-preamble? Date: Mon, 10 Feb 2014 10:10:34 +0100 Message-ID: <87a9dz9vud.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCmtV-0003CK-VA for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 04:11:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCmtQ-00085X-1k for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 04:11:13 -0500 Received: from rs249.mailgun.us ([209.61.151.249]:50552) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCmtP-00085S-T2 for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 04:11:07 -0500 In-Reply-To: (Peter Salazar's message of "Sun, 9 Feb 2014 16:35:03 -0500") 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: Peter Salazar Cc: org-mode Hi Peter, Peter Salazar writes: > However, when I try to export to HTML, I get "Invalid format string" You need to replace "%" with "%%" in the preamble string. HTH, -- Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: Re: external setup file for org-html-preamble? Date: Mon, 10 Feb 2014 16:41:48 -0500 Message-ID: References: <87a9dz9vud.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b33d07af2367a04f2143495 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCybv-00087a-M3 for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 16:41:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCybu-0002CJ-Pk for emacs-orgmode@gnu.org; Mon, 10 Feb 2014 16:41:51 -0500 In-Reply-To: <87a9dz9vud.fsf@bzg.ath.cx> 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: Bastien Cc: org-mode --047d7b33d07af2367a04f2143495 Content-Type: text/plain; charset=ISO-8859-1 Yes! That solved it. Thank you! On Mon, Feb 10, 2014 at 4:10 AM, Bastien wrote: > Hi Peter, > > Peter Salazar writes: > > > However, when I try to export to HTML, I get "Invalid format string" > > You need to replace "%" with "%%" in the preamble string. > > HTH, > > -- > Bastien > --047d7b33d07af2367a04f2143495 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Yes! That solved it. Thank you!


On Mon, Feb 10, 2014 at 4:10 AM, B= astien <bzg@gnu.org> wrote:
Hi Peter,

Peter Salazar <cycleofsong@gmai= l.com> writes:

> However, when I try to export to HTML, I get "Invalid format stri= ng"

You need to replace "%" with "%%" in the preamble= string.

HTH,

--
=A0Bastien

--047d7b33d07af2367a04f2143495--