From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David A. Gershman" Subject: Re: Need help with HTML export custom postamble Date: Mon, 31 Aug 2015 17:46:48 -0700 Message-ID: <55E4F578.7040304@dagertech.net> References: <55DE96C5.9000309@dagertech.net> <55E4F166.4050908@dagertech.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------020602020507060907090809" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWZiF-0008QD-2Q for emacs-orgmode@gnu.org; Mon, 31 Aug 2015 20:46:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWZiB-0004Rp-Cj for emacs-orgmode@gnu.org; Mon, 31 Aug 2015 20:46:10 -0400 Received: from dagertech.net ([64.183.98.170]:55921 helo=mail.dagertech.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWZiB-0004Re-1J for emacs-orgmode@gnu.org; Mon, 31 Aug 2015 20:46:07 -0400 Received: from [192.168.233.104] (unknown [192.168.176.200]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.dagertech.net (Postfix) with ESMTPSA id 496C2A02CF for ; Mon, 31 Aug 2015 17:46:05 -0700 (PDT) In-Reply-To: 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 This is a multi-part message in MIME format. --------------020602020507060907090809 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit On 08/31/2015 05:38 PM, Thomas S. Dye wrote: > Aloha David, > > David A. Gershman writes: > >> So I finally was able to test out the C-c C-c. It did ask me if I >> wanted to apply and I said yes. When I exported the file, my postamble >> (as specified in the variable) was /not/ shown...it was still the default. >> >> Strangely, when I did C-c C-c, Emacs came back with this: >> >>> The local variables list in syllabus.org >>> contains values that may not be safe (*). >>> Do you want to apply it? You can type >>> y -- to apply the local variables list. >>> n -- to ignore the local varialbes list. >>> ! -- to apply..... >>> >>> * org-html-postamble : t >>> * org-export-hml-postamble-format : "Hello World" >> Notice the *'*'* warning not to be safe. But the source .org file is >> with '#' as it should be (seen further below). >> >> Thoughts? > Yes, Emacs asks about safe local variables. I read about this once in > the Emacs manual and concluded that my use cases were all safe, so I > just type "y". I suspect you're in the same boat, but you might want to > read the relevant section of the Emacs manual to be certain. I, too, typed 'y' with no luck; and yeah, my use cases are safe as well. > > I just noticed that you're setting org-export-hml-postamble-format, but > you probably want html instead of hml. > > hth, > Tom > Sorry, that must have been a typo when transposing it into email (Emacs didn't let me highlight to copy the text while the question was in the buffer). The actual .org file /is/ 'html'. So by typing 'y', I'd expect to see "Hello World" in my postamble...correct? My seeing the default is still an error then. Just to make sure all is understood, here is the entire .org file (content shortened): > # Last Updated: "2015-08-31 17:44:42" > #+OPTIONS: html-link-use-abs-url:nil > #+OPTIONS: html-preamble:t html-scripts:nil html-style:t > #+OPTIONS: html5-fancy:nil toc:nil num:nil > #+HTML_DOCTYPE: xhtml-strict > #+HTML_CONTAINER: div > #+HTML_HEAD: > #+HTML_HEAD_EXTRA: > #+AUTHOR: D. Gershman > #+CREATOR: Emacs > 24.4.1 (Org mode 8.3.1) > #+TITLE: CS 380 Syllabus > #+LANGUAGE: en > > > * David A. Gershman, CISSP > Office hours here > > * Course Description > Network architectures and standards. Layers and protocols. Circuit > switching, packet switching and routing. Client-server > concepts. Network security. Web computing. Privacy, intellectual > property rights and acceptable use. 4 > lectures/problem-solving. Prerequisites: CS 241 and CS 264 with > grades of C or better, or consent of instructor. > > > # Local Variables: > # org-html-postamble: t > # org-export-html-postamble-format: "Hello World" > # End: Either typing C-c C-c, or just opening the file will ask me about the variables. I answer 'y', but still get the default postamble. Thanks. --------------020602020507060907090809 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable

On 08/31/2015 05:38 PM, Thomas S. Dye wrote:
Aloha David,

David A. Gershman <gershman@dagertech.net> writes:

So I finally was able to test out the C-c C-c.  It=
 did ask me if I
wanted to apply and I said yes.  When I exported the file, my postamble
(as specified in the variable) was /not/ shown...it was still the default=
.

Strangely, when I did C-c C-c, Emacs came back with this:

The local variables list in syllabus.org
contains values that may not be safe (*).
Do you want to apply it?  You can type
y  -- to apply the local variables list.
n  -- to ignore the local varialbes list.
!  --  to apply.....

   * org-html-postamble : t
   * org-export-hml-postamble-format : "Hello World"
Notice the *'*'* warning not to be safe.  But the =
source .org file is
with '#' as it should be (seen further below).

Thoughts?
Yes, Emacs asks about safe local variables.  I read about this once in
the Emacs manual and concluded that my use cases were all safe, so I
just type "y".  I suspect you're in the same boat, but you might want to
read the relevant section of the Emacs manual to be certain.
I, too, typed 'y' with no luck; and yeah, my use cases are safe as well.

I just noticed that you're setting org-export-hml-postamble-format, but
you probably want html instead of hml.

hth,
Tom

Sorry, that must have been a typo when transposing it into email (Emacs didn't let me highlight to copy the text while the question was in the buffer).=A0=A0 The actual .org file is 'html'.

So by typing 'y', I'd expect to see "Hello World" in my postamble...correct?=A0 My seeing the default is still an error then.=

Just to make sure all is understood, here is the entire .org file (content shortened):

# Last Updated: "2015-08-31 17:44:42= "
#+OPTIONS: html-link-use-abs-url:nil
#+OPTIONS: html-preamble:t html-scripts:nil html-style:t
#+OPTIONS: html5-fancy:nil toc:nil num:nil
#+HTML_DOCTYPE: xhtml-strict
#+HTML_CONTAINER: div
#+HTML_HEAD:
#+HTML_HEAD_EXTRA:
#+AUTHOR: D. Gershman
#+CREATOR: <a href=3D"http://www.gnu.org/software/emacs/">Emacs<= ;/a> 24.4.1 (<a href=3D"http://orgmode.org">Org</a> mode 8.3.1)
#+TITLE: CS 380 Syllabus
#+LANGUAGE: en


* David A. Gershman, CISSP
=A0 Office hours here

* Course Description
=A0 Network architectures and standards. Layers and protocols. Circuit
=A0 switching, packet switching and routing. Client-server
=A0 concepts. Network security. Web computing. Privacy, intellectual
=A0 property rights and acceptable use. 4
=A0 lectures/problem-solving. Prerequisites: CS 241 and CS 264 with
=A0 grades of C or better, or consent of instructor.=A0 =A0


# Local Variables:
# org-html-postamble: t
# org-export-html-postamble-format: "Hello World"
# End:

Either typing C-c C-c, or just opening the file will ask me about the variables.=A0 I answer 'y', but still get the default postamble.<= br>
Thanks.

--------------020602020507060907090809--