From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David A. Gershman" Subject: Need help with HTML export custom postamble Date: Wed, 26 Aug 2015 21:49:09 -0700 Message-ID: <55DE96C5.9000309@dagertech.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------060000090302060609000104" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUp7H-0003ao-Ve for emacs-orgmode@gnu.org; Thu, 27 Aug 2015 00:48:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUp7E-0005sy-PL for emacs-orgmode@gnu.org; Thu, 27 Aug 2015 00:48:47 -0400 Received: from dagertech.net ([64.183.98.170]:55162 helo=mail.dagertech.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUp7E-0005rx-GF for emacs-orgmode@gnu.org; Thu, 27 Aug 2015 00:48:44 -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 9C849A00EE for ; Wed, 26 Aug 2015 21:48:41 -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 This is a multi-part message in MIME format. --------------060000090302060609000104 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hello Everyone, I've searched and read and found several examples of making custom postambles for an HTML export, but I can't seem to find a way to do it all in a local file. First, I'm new to HTML exporting (as some of you remember from my last email). So, I went ahead and inserted a template into my .org file (C-c C-e # html) and noticed "html-postable" was set to 't'. Based on what I read, this means it should take the contents of the variable "org-export-html-postamble-format" and use /that/ for the postamble. However, I set /org-export-html-postamble-format/ in my .emacs file: > (setq org-export-html-postamble-format > '(("en" "

From .emacs

")) > ) ...and in my .org file had: #+OPTIONS: html-postamble:t then I tried #+OPTIONS: html-postamble:auto and also removed it. All 3 times the postamble from my .emacs was not used. Finally, I tried "Local variables"? Never did this before but attempted it and put: > # Local Variables: > # org-html-postamble: t > # org-export-html-postamble-format: "Hello World" > # End: in my .org file and still no luck. Can a custom pre/postamble be specified on a per file basis? FWIW, no, I do not have any /org-publish-project-alist/ specified as this seems to be a "site-based" solution. I'm looking for a page-based solution. TIA! --David --------------060000090302060609000104 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Everyone,

I've searched and read and found several examples of making custom postambles for an HTML export, but I can't seem to find a way to do it all in a local file.

First, I'm new to HTML exporting (as some of you remember from my last email).=C2=A0 So, I went ahead and inserted a template into my .= org file (C-c C-e # html) and noticed "html-postable" was set to 't'.=C2=A0 Based on what I read, this means it should take the contents of the variable "org-export-html-postamble-format" and use that for the postamble.=C2=A0

However, I set org-export-html-postamble-format in my .emacs file:

(setq org-export-html-postamble-format
=C2=A0 '(("en" "<p>From .emacs</p>"))
)
...and in my .org file had:

#+OPTIONS: html-postamble:t

then I tried

#+OPTIONS: html-postamble:auto

and also removed it.=C2=A0 All 3 times the postamble from my .emacs w= as not used.

Finally, I tried "Local variables"?=C2=A0 Never did this before but attempted it and put:

# Local Variables:
# org-html-postamble: t
# org-export-html-postamble-format: "Hello World"
# End:
in my .org file and still no luck.

Can a custom pre/postamble be specified on a per file basis?=C2=A0 FW= IW, no, I do not have any org-publish-project-alist specified as this seems to be a "site-based" solution.=C2=A0 I'm looking for a page-based solution.

TIA!

--David
--------------060000090302060609000104-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas S. Dye Subject: Re: Need help with HTML export custom postamble Date: Wed, 26 Aug 2015 20:19:07 -1000 Message-ID: References: <55DE96C5.9000309@dagertech.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUqXA-0003H2-T4 for emacs-orgmode@gnu.org; Thu, 27 Aug 2015 02:19:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUqX6-0006bq-EK for emacs-orgmode@gnu.org; Thu, 27 Aug 2015 02:19:36 -0400 Received: from gproxy4-pub.mail.unifiedlayer.com ([69.89.23.142]:49480) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ZUqX6-0006Zn-6H for emacs-orgmode@gnu.org; Thu, 27 Aug 2015 02:19:32 -0400 In-reply-to: <55DE96C5.9000309@dagertech.net> 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: "David A. Gershman" Cc: emacs-orgmode@gnu.org > > Finally, I tried "Local variables"? Never did this before but attempted > it and put: > >> # Local Variables: >> # org-html-postamble: t >> # org-export-html-postamble-format: "Hello World" >> # End: > in my .org file and still no luck. After you add this to the .org file, you need to refresh the setup. I do this by moving cursor to the top of the file (with all of the #+ lines) and pressing C-c C-c. You should get a message asking if it is OK to set local variables. Pressing y should set org-html-postamble and org-export-html-postamble-format for that buffer. hth, Tom -- Thomas S. Dye http://www.tsdye.com 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:29:26 -0700 Message-ID: <55E4F166.4050908@dagertech.net> References: <55DE96C5.9000309@dagertech.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------020702080208030206090907" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWZRV-0006VY-QQ for emacs-orgmode@gnu.org; Mon, 31 Aug 2015 20:28:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWZRR-00059Z-Lj for emacs-orgmode@gnu.org; Mon, 31 Aug 2015 20:28:53 -0400 Received: from dagertech.net ([64.183.98.170]:55920 helo=mail.dagertech.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWZRR-00059J-AB for emacs-orgmode@gnu.org; Mon, 31 Aug 2015 20:28:49 -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 5AAA5A02E7 for ; Mon, 31 Aug 2015 17:28:46 -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. --------------020702080208030206090907 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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? On 08/26/2015 11:19 PM, Thomas S. Dye wrote: >> Finally, I tried "Local variables"? Never did this before but attempted >> it and put: >> >>> # Local Variables: >>> # org-html-postamble: t >>> # org-export-html-postamble-format: "Hello World" >>> # End: >> in my .org file and still no luck. > After you add this to the .org file, you need to refresh the setup. I > do this by moving cursor to the top of the file (with all of the #+ > lines) and pressing C-c C-c. You should get a message asking if it is > OK to set local variables. Pressing y should set org-html-postamble and > org-export-html-postamble-format for that buffer. > > hth, > Tom > --------------020702080208030206090907 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable So I finally was able to test out the C-c C-c.=A0 It did ask me if I wanted to apply and I said yes.=A0 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?=A0 You can type
y=A0 -- to apply the local variables list.
n=A0 -- to ignore the local varialbes list.
!=A0 --=A0 to apply.....

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

Thoughts?


On 08/26/2015 11:19 PM, Thomas S. Dye wrote:
Finally, I tried "Local variables"?  Never did this before but attempted
it and put:

# Local Variables:
# org-html-postamble: t
# org-export-html-postamble-format: "Hello World"
# End:
in my .org file and still no luck.
After you add this to the .org file, you need to refresh the setup.  I
do this by moving cursor to the top of the file (with all of the #+
lines) and pressing C-c C-c.  You should get a message asking if it is
OK to set local variables.  Pressing y should set org-html-postamble and
org-export-html-postamble-format for that buffer.

hth,
Tom


--------------020702080208030206090907-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas S. Dye Subject: Re: Need help with HTML export custom postamble Date: Mon, 31 Aug 2015 14:38:12 -1000 Message-ID: References: <55DE96C5.9000309@dagertech.net> <55E4F166.4050908@dagertech.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWZau-0006ET-KM for emacs-orgmode@gnu.org; Mon, 31 Aug 2015 20:38:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWZar-0001T2-Aj for emacs-orgmode@gnu.org; Mon, 31 Aug 2015 20:38:36 -0400 Received: from gproxy6-pub.mail.unifiedlayer.com ([67.222.39.168]:56465) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ZWZar-0001Rn-36 for emacs-orgmode@gnu.org; Mon, 31 Aug 2015 20:38:33 -0400 In-reply-to: <55E4F166.4050908@dagertech.net> 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: "David A. Gershman" Cc: emacs-orgmode@gnu.org 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 just noticed that you're setting org-export-hml-postamble-format, but you probably want html instead of hml. hth, Tom -- Thomas S. Dye http://www.tsdye.com 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-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas S. Dye Subject: Re: Need help with HTML export custom postamble Date: Mon, 31 Aug 2015 15:36:31 -1000 Message-ID: References: <55DE96C5.9000309@dagertech.net> <55E4F166.4050908@dagertech.net> <55E4F578.7040304@dagertech.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWaVE-0001eE-3l for emacs-orgmode@gnu.org; Mon, 31 Aug 2015 21:36:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWaVA-0004l7-TZ for emacs-orgmode@gnu.org; Mon, 31 Aug 2015 21:36:48 -0400 Received: from gproxy10-pub.mail.unifiedlayer.com ([69.89.20.226]:48686) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ZWaVA-0004kp-L3 for emacs-orgmode@gnu.org; Mon, 31 Aug 2015 21:36:44 -0400 In-reply-to: <55E4F578.7040304@dagertech.net> 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: "David A. Gershman" Cc: emacs-orgmode@gnu.org David A. Gershman writes: >> # 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. Are you using an old Org mode, pre 8.0? I believe that's when the old org-export-* variables lost the "export" part. At any rate, the problem appears to be that org-html-postamble-format (in Org mode > 8.0) is an association list, not a string. This works for me using a recent Org mode: # Local Variables: # org-html-postamble: t # eval: (add-to-list 'org-html-postamble-format (quote ("en" "Hello World"))) # End: At least, I get the cons cell added to the association list, and the change is local to the buffer. I didn't try the export part. hth, Tom -- Thomas S. Dye http://www.tsdye.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David A. Gershman" Subject: Re: Need help with HTML export custom postamble [SOLVED] Date: Mon, 31 Aug 2015 18:49:02 -0700 Message-ID: <55E5040E.7060508@dagertech.net> References: <55DE96C5.9000309@dagertech.net> <55E4F166.4050908@dagertech.net> <55E4F578.7040304@dagertech.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42034) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWagS-000484-3b for emacs-orgmode@gnu.org; Mon, 31 Aug 2015 21:48:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWagO-0002gG-Tz for emacs-orgmode@gnu.org; Mon, 31 Aug 2015 21:48:24 -0400 Received: from dagertech.net ([64.183.98.170]:55922 helo=mail.dagertech.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWagO-0002gB-Mi for emacs-orgmode@gnu.org; Mon, 31 Aug 2015 21:48:20 -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 04FD6A02CF for ; Mon, 31 Aug 2015 18:48:19 -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 *argh* I remember that variation of postamble in my readings...didn't think to try it. Thank you!!! I attempted the export as well and it worked as expected. I appreciate your patience! FWIW, yes, I'm on the latest Org (8.3.1) and Emacs 24.4.1 (Debian Jessie). On 08/31/2015 06:36 PM, Thomas S. Dye wrote: > David A. Gershman writes: > >>> # 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. > Are you using an old Org mode, pre 8.0? I believe that's when the old > org-export-* variables lost the "export" part. > > At any rate, the problem appears to be that org-html-postamble-format > (in Org mode > 8.0) is an association list, not a string. > > This works for me using a recent Org mode: > > # Local Variables: > # org-html-postamble: t > # eval: (add-to-list 'org-html-postamble-format (quote ("en" "Hello World"))) > # End: > > At least, I get the cons cell added to the association list, and the > change is local to the buffer. I didn't try the export part. > > hth, > Tom > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Need help with HTML export custom postamble [SOLVED] Date: Tue, 01 Sep 2015 11:19:06 -0400 Message-ID: <87y4gqp3px.fsf@alphaville.usersys.redhat.com> References: <55DE96C5.9000309@dagertech.net> <55E4F166.4050908@dagertech.net> <55E4F578.7040304@dagertech.net> <55E5040E.7060508@dagertech.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWnLE-0000uO-69 for emacs-orgmode@gnu.org; Tue, 01 Sep 2015 11:19:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWnLA-0002vw-Qv for emacs-orgmode@gnu.org; Tue, 01 Sep 2015 11:19:20 -0400 Received: from plane.gmane.org ([80.91.229.3]:40525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWnLA-0002vs-KU for emacs-orgmode@gnu.org; Tue, 01 Sep 2015 11:19:16 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZWnL8-0003I0-6c for emacs-orgmode@gnu.org; Tue, 01 Sep 2015 17:19:14 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Sep 2015 17:19:14 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Sep 2015 17:19:14 +0200 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 "David A. Gershman" writes: > *argh* I remember that variation of postamble in my readings...didn't > think to try it. Thank you!!! > > I attempted the export as well and it worked as expected. I appreciate > your patience! > > FWIW, yes, I'm on the latest Org (8.3.1) and Emacs 24.4.1 (Debian Jessie). > > On 08/31/2015 06:36 PM, Thomas S. Dye wrote: >> David A. Gershman writes: >> >>>> # 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. >> Are you using an old Org mode, pre 8.0? I believe that's when the old >> org-export-* variables lost the "export" part. >> >> At any rate, the problem appears to be that org-html-postamble-format >> (in Org mode > 8.0) is an association list, not a string. >> >> This works for me using a recent Org mode: >> >> # Local Variables: >> # org-html-postamble: t >> # eval: (add-to-list 'org-html-postamble-format (quote ("en" "Hello >> World"))) This is probably more complicated than it needs to be: if you are just setting the postamble, not appending to it, it would be preferable (and simpler) to avoid the eval: # org-html-postamble-format: (quote ("en" "Hello World")) >> # End: Nick