* An HTML Export Observation
@ 2011-03-15 5:30 Scott Randby
2011-03-15 5:49 ` Nick Dokos
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Scott Randby @ 2011-03-15 5:30 UTC (permalink / raw)
To: emacs-orgmode
When I look at the "Org Export HTML Group" for customization, I get the
following:
Org Export Html Validation Link: Show Value
State: UNINITIALIZED, you should not see this.
Link to HTML validation service.
Org Export Html With Timestamp: Hide Value Toggle off (nil)
State: UNINITIALIZED, you should not see this.
If non-nil, write timestamp into the exported HTML text. More
The other variables in this group are also uninitialized. The other org
export groups (such as "Org Export LaTeX") do not contain uninitialized
variables. Why is it that the variables I need the most do not work?
Scott Randby
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: An HTML Export Observation
2011-03-15 5:30 An HTML Export Observation Scott Randby
@ 2011-03-15 5:49 ` Nick Dokos
2011-03-15 12:01 ` [PATCH] Move org-export-html group definition to fix uninitialized customs Manuel Giraud
2011-03-15 13:14 ` An HTML Export Observation Bastien
2 siblings, 0 replies; 10+ messages in thread
From: Nick Dokos @ 2011-03-15 5:49 UTC (permalink / raw)
To: Scott Randby; +Cc: nicholas.dokos, emacs-orgmode
Scott Randby <srandby@gmail.com> wrote:
> When I look at the "Org Export HTML Group" for customization, I get the
> following:
>
> Org Export Html Validation Link: Show Value
> State: UNINITIALIZED, you should not see this.
> Link to HTML validation service.
>
> Org Export Html With Timestamp: Hide Value Toggle off (nil)
> State: UNINITIALIZED, you should not see this.
> If non-nil, write timestamp into the exported HTML text. More
>
> The other variables in this group are also uninitialized. The other org
> export groups (such as "Org Export LaTeX") do not contain uninitialized
> variables. Why is it that the variables I need the most do not work?
>
I can't answer that question, but if you care to try, the following should
work as a temporary solution, until all this is cleared up: add
(setq org-export-html-postamble "<p class=\"author\">Author: %a (%e)</p>\n<p class=\"date\">Date: %d</p>\n<p class=\"creator\">Generated by %c</p>\n")
to your .emacs and either restart emacs or evaluate the form (place the
cursor after the closing paren and press `C-x C-e'); then export
normally. In principle, I think this should work with a file option, but
a few minutes of experimentation have not brought any happiness.
See the documentation for the variable org-export-html-postamble-format
for the %X escapes:
,----
| %a stands for the author.
| %e stands for the email(s).
| %d stands for the date.
| %c will be replaced by information about Org/Emacs.
| %v will be replaced by `org-export-html-validation-link'.
|
| If you need to use a "%" character, you need to escape it
| like that: "%%".
`----
As for your previous email re. @<b>, the very latest git seems to have
fixed that problem.
But there is obviously some churn in the HTML export area. Your
idea about going back to 7.4 might be the way to go for a little
while until all this is cleared up.
Nick
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH] Move org-export-html group definition to fix uninitialized customs.
2011-03-15 5:30 An HTML Export Observation Scott Randby
2011-03-15 5:49 ` Nick Dokos
@ 2011-03-15 12:01 ` Manuel Giraud
2011-03-15 13:17 ` Bastien
2011-03-15 13:14 ` An HTML Export Observation Bastien
2 siblings, 1 reply; 10+ messages in thread
From: Manuel Giraud @ 2011-03-15 12:01 UTC (permalink / raw)
To: emacs-orgmode; +Cc: Manuel Giraud
---
lisp/org-exp.el | 5 +++++
lisp/org-html.el | 5 -----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 34f101d..2cd4289 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -134,6 +134,11 @@ This is without condition, so even subtrees inside that carry one of the
:group 'org-export-general
:type '(repeat (string :tag "Tag")))
+(defgroup org-export-html nil
+ "Options specific for HTML export of Org-mode files."
+ :tag "Org Export HTML"
+ :group 'org-export)
+
;; FIXME: rename, this is a general variable
(defcustom org-export-html-expand t
"Non-nil means for HTML export, treat @<...> as HTML tag.
diff --git a/lisp/org-html.el b/lisp/org-html.el
index d9f34ef..a17b044 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -36,11 +36,6 @@
(declare-function org-id-find-id-file "org-id" (id))
(declare-function htmlize-region "ext:htmlize" (beg end))
-(defgroup org-export-html nil
- "Options specific for HTML export of Org-mode files."
- :tag "Org Export HTML"
- :group 'org-export)
-
(defcustom org-export-html-footnotes-section "<div id=\"footnotes\">
<h2 class=\"footnotes\">%s: </h2>
<div id=\"text-footnotes\">
--
1.7.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] Move org-export-html group definition to fix uninitialized customs.
2011-03-15 12:01 ` [PATCH] Move org-export-html group definition to fix uninitialized customs Manuel Giraud
@ 2011-03-15 13:17 ` Bastien
2011-03-15 14:28 ` Manuel Giraud
0 siblings, 1 reply; 10+ messages in thread
From: Bastien @ 2011-03-15 13:17 UTC (permalink / raw)
To: Manuel Giraud; +Cc: emacs-orgmode
Hi Manuel,
did that patch fix the problem for you?
There was a problem with the custom type definition of the variable
`org-export-html-protect-char-alist', and AFAIU that caused Scott's
problem. I fixed this.
I think org-html.el is the right place for declaring the Org Export Html
customization group -- I'm curious to understand why your patch would
have fixed Scott's issue.
Thanks!
--
Bastien
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Move org-export-html group definition to fix uninitialized customs.
2011-03-15 13:17 ` Bastien
@ 2011-03-15 14:28 ` Manuel Giraud
2011-03-15 14:44 ` Bastien
0 siblings, 1 reply; 10+ messages in thread
From: Manuel Giraud @ 2011-03-15 14:28 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
Bastien <bzg@altern.org> writes:
> Hi Manuel,
>
> did that patch fix the problem for you?
Hi Bastien,
Just re-check and yes it fixes the problem for me. I tried with "emacs
-Q", add org path to load-path, (require 'org) and M-x customize-group.
My patch was applied on top of:
--8<---------------cut here---------------start------------->8---
commit f8c627a44b65b081b1ca0668081dc7fefd70c002
Author: Nicolas Goaziou <n.goaziou@gmail.com>
Date: Mon Mar 14 23:36:19 2011 +0100
org-list: fix parsing of counters
* lisp/org-list.el (org-list-parse-list): fixed regexp.
--8<---------------cut here---------------end--------------->8---
> I think org-html.el is the right place for declaring the Org Export Html
> customization group -- I'm curious to understand why your patch would
> have fixed Scott's issue.
I have to say that I don't understand too. I've just mimic what is done
for org-export-xml group and others. Anyway, if yours is ok discard
mine.
--
Manuel Giraud
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Move org-export-html group definition to fix uninitialized customs.
2011-03-15 14:28 ` Manuel Giraud
@ 2011-03-15 14:44 ` Bastien
0 siblings, 0 replies; 10+ messages in thread
From: Bastien @ 2011-03-15 14:44 UTC (permalink / raw)
To: Manuel Giraud; +Cc: emacs-orgmode
Hi Manuel,
Manuel Giraud <manuel.giraud@univ-nantes.fr> writes:
> I have to say that I don't understand too. I've just mimic what is done
> for org-export-xml group and others. Anyway, if yours is ok discard
> mine.
Actually, the org-export-xml is unused, I just removed it.
Other group (like org-export-icalendar) are defined in org-icalendar.el.
Thanks,
--
Bastien
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: An HTML Export Observation
2011-03-15 5:30 An HTML Export Observation Scott Randby
2011-03-15 5:49 ` Nick Dokos
2011-03-15 12:01 ` [PATCH] Move org-export-html group definition to fix uninitialized customs Manuel Giraud
@ 2011-03-15 13:14 ` Bastien
2011-03-15 15:25 ` Scott Randby
2 siblings, 1 reply; 10+ messages in thread
From: Bastien @ 2011-03-15 13:14 UTC (permalink / raw)
To: Scott Randby; +Cc: emacs-orgmode
Hi Scott,
Scott Randby <srandby@gmail.com> writes:
> When I look at the "Org Export HTML Group" for customization, I get the
> following:
>
> Org Export Html Validation Link: Show Value
> State: UNINITIALIZED, you should not see this.
> Link to HTML validation service.
>
> Org Export Html With Timestamp: Hide Value Toggle off (nil)
> State: UNINITIALIZED, you should not see this.
> If non-nil, write timestamp into the exported HTML text. More
>
> The other variables in this group are also uninitialized. The other org
> export groups (such as "Org Export LaTeX") do not contain uninitialized
> variables. Why is it that the variables I need the most do not work?
There was a typo in the definition of the custom type of
`org-export-html-protect-char-alist'. I just fixed this. Please
confirm you don't have this error again.
Thanks!
--
Bastien
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: An HTML Export Observation
2011-03-15 13:14 ` An HTML Export Observation Bastien
@ 2011-03-15 15:25 ` Scott Randby
2011-03-15 15:53 ` Bastien
0 siblings, 1 reply; 10+ messages in thread
From: Scott Randby @ 2011-03-15 15:25 UTC (permalink / raw)
To: emacs-orgmode
On 03/15/2011 09:14 AM, Bastien wrote:
> Hi Scott,
>
> Scott Randby <srandby@gmail.com> writes:
>
>> When I look at the "Org Export HTML Group" for customization, I get the
>> following:
>>
>> Org Export Html Validation Link: Show Value
>> State: UNINITIALIZED, you should not see this.
>> Link to HTML validation service.
>>
>> Org Export Html With Timestamp: Hide Value Toggle off (nil)
>> State: UNINITIALIZED, you should not see this.
>> If non-nil, write timestamp into the exported HTML text. More
>>
>> The other variables in this group are also uninitialized. The other org
>> export groups (such as "Org Export LaTeX") do not contain uninitialized
>> variables. Why is it that the variables I need the most do not work?
>
> There was a typo in the definition of the custom type of
> `org-export-html-protect-char-alist'. I just fixed this. Please
> confirm you don't have this error again.
Almost everything is fixed now. The variables in the "Org Export HTML
Group" work as they should, and the @<tag> issue is fixed. Thanks to
everyone for their help. But there is one remaining issue -- I can't get
timestamps in the postamble.
First, I am using org-mode release_7.5.41.g187b.
In my document, I have the following:
#+OPTIONS: H:3 num:nil skip:nil toc:t author:t timestamp:t email:t creator:t
I looked through the export variables for anything that mentioned
timestamps and the following now appears in my .emacs:
'(org-export-html-with-timestamp t)
'(org-export-time-stamp-file t)
'(org-export-with-timestamps t)
But when I do C-c C-e h on the document, the author, email, and creator
appear in the postamble, but no timestamp.
I can get the timestamp if I put the following in my .emacs (following
the instructions given by Nick Dokos):
(setq org-export-html-postamble "<p class=\"author\">Author: %a
(%e)</p>\n<p class=\"date\">Date: %d</p>\n<p class=\"creator\">Generated
by %c</p>\n")
However, I would rather have the above in my document instead of my
.emacs, but Nick says he can't get that to work. I saw in the manual
that one may set up a project and publish it. Then one could set the
:html-postamble option for the project, but I don't have time right now
to learn how to set up a project.
Scott Randby
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-03-15 17:05 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-15 5:30 An HTML Export Observation Scott Randby
2011-03-15 5:49 ` Nick Dokos
2011-03-15 12:01 ` [PATCH] Move org-export-html group definition to fix uninitialized customs Manuel Giraud
2011-03-15 13:17 ` Bastien
2011-03-15 14:28 ` Manuel Giraud
2011-03-15 14:44 ` Bastien
2011-03-15 13:14 ` An HTML Export Observation Bastien
2011-03-15 15:25 ` Scott Randby
2011-03-15 15:53 ` Bastien
2011-03-15 16:31 ` Scott Randby
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).