emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-html-postamble-format and #+DATE: specification in 8.0pre
@ 2013-03-29 14:11 Dieter Wilhelm
  2013-04-03 13:04 ` Alan Schmitt
  0 siblings, 1 reply; 21+ messages in thread
From: Dieter Wilhelm @ 2013-03-29 14:11 UTC (permalink / raw)
  To: emacs-orgmode

Dear list,

I changed the html postamble

org-html-postamble-format is a variable defined in `ox-html.el'.
Its value is
(("en" "<p class=\"author\">Author: %a (%e)</p>\n<p class=\"date\">Date: %d </p>\n<p class=\"creator\">Generated by %c </p>\n")
 ("de" "<p class=\"author\">Autor: %a (%e)</p>\n<p class=\"date\">Datum: %d </p>\n<p class=\"creator\">Generiert von %c </p>\n")
 ("fr" "<p class=\"author\">Auteur: %a (%e)</p>\n<p class=\"date\">Date: %d </p>\n<p class=\"creator\">Generated by %c </p>\n"))

Original value was 
(("en" "<p class=\"author\">Author: %a (%e)</p>\n<p class=\"date\">Date: %d</p>\n<p class=\"creator\">Generated by %c</p>\n<p class=\"xhtml-validation\">%v</p>"))

but now I can't specify a date in the form

#+DATE:  "%Y-%m-%d"

Formerly an empty specification meant the current date, but now in the
preamble the date remains empty.


-- 
Best wishes

H. Dieter Wilhelm
Darmstadt
Germany

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: org-html-postamble-format and #+DATE: specification in 8.0pre
  2013-03-29 14:11 org-html-postamble-format and #+DATE: specification in 8.0pre Dieter Wilhelm
@ 2013-04-03 13:04 ` Alan Schmitt
  2013-04-03 19:21   ` Nicolas Goaziou
  0 siblings, 1 reply; 21+ messages in thread
From: Alan Schmitt @ 2013-04-03 13:04 UTC (permalink / raw)
  To: Dieter Wilhelm; +Cc: emacs-orgmode

Dieter Wilhelm writes:

> Dear list,
>
> I changed the html postamble
>
> org-html-postamble-format is a variable defined in `ox-html.el'.
> Its value is
> (("en" "<p class=\"author\">Author: %a (%e)</p>\n<p class=\"date\">Date: %d </p>\n<p class=\"creator\">Generated by %c </p>\n")
>  ("de" "<p class=\"author\">Autor: %a (%e)</p>\n<p class=\"date\">Datum: %d </p>\n<p class=\"creator\">Generiert von %c </p>\n")
>  ("fr" "<p class=\"author\">Auteur: %a (%e)</p>\n<p class=\"date\">Date: %d </p>\n<p class=\"creator\">Generated by %c </p>\n"))
>
> Original value was 
> (("en" "<p class=\"author\">Author: %a (%e)</p>\n<p class=\"date\">Date: %d</p>\n<p class=\"creator\">Generated by %c</p>\n<p class=\"xhtml-validation\">%v</p>"))
>
> but now I can't specify a date in the form
>
> #+DATE:  "%Y-%m-%d"
>
> Formerly an empty specification meant the current date, but now in the
> preamble the date remains empty.

I'm having the same issue. Did you find a way around it?

Alan

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: org-html-postamble-format and #+DATE: specification in 8.0pre
  2013-04-03 13:04 ` Alan Schmitt
@ 2013-04-03 19:21   ` Nicolas Goaziou
  2013-04-04 21:36     ` Dieter Wilhelm
  2013-04-05  7:17     ` Alan Schmitt
  0 siblings, 2 replies; 21+ messages in thread
From: Nicolas Goaziou @ 2013-04-03 19:21 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: Dieter Wilhelm, emacs-orgmode

Hello,

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

> Dieter Wilhelm writes:
>
>> Dear list,
>>
>> I changed the html postamble
>>
>> org-html-postamble-format is a variable defined in `ox-html.el'.
>> Its value is
>> (("en" "<p class=\"author\">Author: %a (%e)</p>\n<p class=\"date\">Date: %d </p>\n<p class=\"creator\">Generated by %c </p>\n")
>>  ("de" "<p class=\"author\">Autor: %a (%e)</p>\n<p class=\"date\">Datum: %d </p>\n<p class=\"creator\">Generiert von %c </p>\n")
>>  ("fr" "<p class=\"author\">Auteur: %a (%e)</p>\n<p class=\"date\">Date: %d </p>\n<p class=\"creator\">Generated by %c </p>\n"))
>>
>> Original value was 
>> (("en" "<p class=\"author\">Author: %a (%e)</p>\n<p class=\"date\">Date: %d</p>\n<p class=\"creator\">Generated by %c</p>\n<p class=\"xhtml-validation\">%v</p>"))
>>
>> but now I can't specify a date in the form
>>
>> #+DATE:  "%Y-%m-%d"
>>
>> Formerly an empty specification meant the current date, but now in the
>> preamble the date remains empty.
>
> I'm having the same issue. Did you find a way around it?

I didn't try to reproduce the problem, but specifying a format time
string as a DATE value is not possible anymore. You still can provide
a timestamp and tweak `org-export-date-timestamp-format' (or BIND it) to
format it.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: org-html-postamble-format and #+DATE: specification in 8.0pre
  2013-04-03 19:21   ` Nicolas Goaziou
@ 2013-04-04 21:36     ` Dieter Wilhelm
  2013-04-05 13:47       ` Rick Frankel
  2013-04-05 18:43       ` Nicolas Goaziou
  2013-04-05  7:17     ` Alan Schmitt
  1 sibling, 2 replies; 21+ messages in thread
From: Dieter Wilhelm @ 2013-04-04 21:36 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Alan Schmitt, emacs-orgmode

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> Hello,
>
> Alan Schmitt <alan.schmitt@polytechnique.org> writes:
>
>> Dieter Wilhelm writes:
>>
>>> Dear list,
>>>
>>> I changed the html postamble
>>>
>>> org-html-postamble-format is a variable defined in `ox-html.el'.
>>> Its value is
>>> (("en" "<p class=\"author\">Author: %a (%e)</p>\n<p class=\"date\">Date: %d </p>\n<p class=\"creator\">Generated by %c </p>\n")
>>>  ("de" "<p class=\"author\">Autor: %a (%e)</p>\n<p class=\"date\">Datum: %d </p>\n<p class=\"creator\">Generiert von %c </p>\n")
>>>  ("fr" "<p class=\"author\">Auteur: %a (%e)</p>\n<p class=\"date\">Date: %d </p>\n<p class=\"creator\">Generated by %c </p>\n"))
>>>
>>> Original value was 
>>> (("en" "<p class=\"author\">Author: %a (%e)</p>\n<p class=\"date\">Date: %d</p>\n<p class=\"creator\">Generated by %c</p>\n<p class=\"xhtml-validation\">%v</p>"))
>>>
>>> but now I can't specify a date in the form
>>>
>>> #+DATE:  "%Y-%m-%d"
>>>
>>> Formerly an empty specification meant the current date, but now in the
>>> preamble the date remains empty.
>>
>> I'm having the same issue. Did you find a way around it?
>
> I didn't try to reproduce the problem, but specifying a format time
> string as a DATE value is not possible anymore. You still can provide
> a timestamp and tweak `org-export-date-timestamp-format' (or BIND it) to
> format it.

Sorry I don't get it completely.  
I'd like to have as the DATE value the current change time of the file.
You mean that I should set this with the Emacs timestamp facility? Like:

#+DATE: Time-stamp: " "



>
> Regards,

-- 
Best wishes

H. Dieter Wilhelm
Darmstadt
Germany

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: org-html-postamble-format and #+DATE: specification in 8.0pre
  2013-04-03 19:21   ` Nicolas Goaziou
  2013-04-04 21:36     ` Dieter Wilhelm
@ 2013-04-05  7:17     ` Alan Schmitt
  2013-04-05 13:22       ` Rick Frankel
  2013-04-05 18:52       ` Nicolas Goaziou
  1 sibling, 2 replies; 21+ messages in thread
From: Alan Schmitt @ 2013-04-05  7:17 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Dieter Wilhelm, emacs-orgmode

Nicolas Goaziou writes:

> I didn't try to reproduce the problem, but specifying a format time
> string as a DATE value is not possible anymore. You still can provide
> a timestamp and tweak `org-export-date-timestamp-format' (or BIND it) to
> format it.

I have a more serious issue: it seems that '%d' is no longer taken into
account. To reproduce, try exporting the following:

#+BEGIN_SRC org
# -*- org-export-allow-bind-keywords: t -*-

#+TITLE: Testing the date
#+BIND: org-html-postamble-format (("en" "Test %d %a"))

Hello World
#+END_SRC

Alan

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: org-html-postamble-format and #+DATE: specification in 8.0pre
  2013-04-05  7:17     ` Alan Schmitt
@ 2013-04-05 13:22       ` Rick Frankel
  2013-04-05 18:52       ` Nicolas Goaziou
  1 sibling, 0 replies; 21+ messages in thread
From: Rick Frankel @ 2013-04-05 13:22 UTC (permalink / raw)
  To: emacs-orgmode

On 05.04.2013 03:17, Alan Schmitt wrote:
> I have a more serious issue: it seems that '%d' is no longer taken 
> into
> account. To reproduce, try exporting the following:
>
> #+BEGIN_SRC org
> # -*- org-export-allow-bind-keywords: t -*-
>
> #+TITLE: Testing the date
> #+BIND: org-html-postamble-format (("en" "Test %d %a"))
>
> Hello World
> #+END_SRC
>

Try the DATE header argument. Also, if you only want to bind the 
postamble for the current
buffer in only one language, you can bypass the postamble-format alist:


,----
| #+TITLE: Test postamble
| #+DATE: {{{modification-time( %Y-%m-%d)}}}
| #+BIND: org-html-postamble "By %a on %d"
|
| * File was updated on {{{modification-time( %Y-%m-%d)}}}
| - the header date is: {{{date()}}}
`----

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: org-html-postamble-format and #+DATE: specification in 8.0pre
  2013-04-04 21:36     ` Dieter Wilhelm
@ 2013-04-05 13:47       ` Rick Frankel
  2013-04-07 16:48         ` Dieter Wilhelm
  2013-04-05 18:43       ` Nicolas Goaziou
  1 sibling, 1 reply; 21+ messages in thread
From: Rick Frankel @ 2013-04-05 13:47 UTC (permalink / raw)
  To: Dieter Wilhelm; +Cc: Alan Schmitt, emacs-orgmode

On 04.04.2013 17:36, Dieter Wilhelm wrote:
> Nicolas Goaziou <n.goaziou@gmail.com> writes:
>> Alan Schmitt <alan.schmitt@polytechnique.org> writes:
>>
>>> Dieter Wilhelm writes:
>>>
>>> but now I can't specify a date in the form
>>>>
>>>> #+DATE:  "%Y-%m-%d"
>>>>
>>>> Formerly an empty specification meant the current date, but now in 
>>>> the
>>>> preamble the date remains empty.
>>>
>>> I'm having the same issue. Did you find a way around it?
>>
>> I didn't try to reproduce the problem, but specifying a format time
>> string as a DATE value is not possible anymore. You still can 
>> provide
>> a timestamp and tweak `org-export-date-timestamp-format' (or BIND 
>> it) to
>> format it.
>
> Sorry I don't get it completely.
> I'd like to have as the DATE value the current change time of the 
> file.
> You mean that I should set this with the Emacs timestamp facility? 
> Like:
>
> #+DATE: Time-stamp: " "

No, but you can use the modification-time() macro:

,----
| #+TITLE: Test date handling
| #+DATE: {{{modification-time(%Y-%m-%d)}}}
| #+OPTIONS: toc:nil
|
| * File was updated on {{{modification-time(%Y-%m-%dT%H:%M)}}}
| - the header date is: {{{date()}}}
| - the current time is {{{time(%Y-%m-%dT%H:%M)}}}
`----

Which will export (in ascii):

,----
|                           ____________________
|
|                            TEST DATE HANDLING
|
|                               Rick Frankel
|                           ____________________
|
|
|                                2013-04-05
|
|
|
|
|
| File was updated on 2013-04-05T09:41
| ====================================
|
|   - the header date is: 2013-04-05
|   - the current time is 2013-04-05T09:46
`----

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: org-html-postamble-format and #+DATE: specification in 8.0pre
  2013-04-04 21:36     ` Dieter Wilhelm
  2013-04-05 13:47       ` Rick Frankel
@ 2013-04-05 18:43       ` Nicolas Goaziou
  2013-04-06 11:20         ` Dieter Wilhelm
  1 sibling, 1 reply; 21+ messages in thread
From: Nicolas Goaziou @ 2013-04-05 18:43 UTC (permalink / raw)
  To: Dieter Wilhelm; +Cc: Alan Schmitt, emacs-orgmode

Hello,

> Sorry I don't get it completely.  
> I'd like to have as the DATE value the current change time of the file.
> You mean that I should set this with the Emacs timestamp facility? Like:

> #+DATE: Time-stamp: " "

If you're exporting a buffer associated to a file, you may use:

  #+DATE: {{{modification-time(%Y-%m-%d)}}}


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: org-html-postamble-format and #+DATE: specification in 8.0pre
  2013-04-05  7:17     ` Alan Schmitt
  2013-04-05 13:22       ` Rick Frankel
@ 2013-04-05 18:52       ` Nicolas Goaziou
  2013-04-06 15:05         ` Alan Schmitt
  1 sibling, 1 reply; 21+ messages in thread
From: Nicolas Goaziou @ 2013-04-05 18:52 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: Dieter Wilhelm, emacs-orgmode

Hello,

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

> I have a more serious issue: it seems that '%d' is no longer taken into
> account. To reproduce, try exporting the following:
>
> #+BEGIN_SRC org
> # -*- org-export-allow-bind-keywords: t -*-
>
> #+TITLE: Testing the date
> #+BIND: org-html-postamble-format (("en" "Test %d %a"))

>
> Hello World
> #+END_SRC

You didn't specify any date.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: org-html-postamble-format and #+DATE: specification in 8.0pre
  2013-04-05 18:43       ` Nicolas Goaziou
@ 2013-04-06 11:20         ` Dieter Wilhelm
  2013-04-06 12:19           ` Nicolas Goaziou
  0 siblings, 1 reply; 21+ messages in thread
From: Dieter Wilhelm @ 2013-04-06 11:20 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Alan Schmitt, emacs-orgmode

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> Hello,
>
>> Sorry I don't get it completely.  
>> I'd like to have as the DATE value the current change time of the file.
>> You mean that I should set this with the Emacs timestamp facility? Like:
>
>> #+DATE: Time-stamp: " "
>
> If you're exporting a buffer associated to a file, you may use:
>
>   #+DATE: {{{modification-time(%Y-%m-%d)}}}

Thank you for the explanation, I really appreciate that and I'm happy to
learn new possibilities in org.  At first I thought it just a regression
that I had additionally to put in a macro but on the other hand it is
much more precise for my needs then

#+DATE %Y-%m-%d

which gave me in 7.xx only the current time.  So far so good.

#+DATE: {{{modification-time(%Y-%m-%d)}}}

is working when I'm exporting individual files but now when I'm trying
to publish I'm getting:

Generating tree-style sitemap for Die Dünenhof-Seite [15 times]
byte-code: Bad timestamp `((macro (:key modification-time :value {{{modification-time(%Y-%m-%d)}}} :args (%Y-%m-%d) :begin 1 :end 34 :post-blank 0 :parent #0)))'
Error was: (stringp ((macro (:key modification-time :value {{{modification-time(%Y-%m-%d)}}} :args (%Y-%m-%d) :begin 1 :end 34 :post-blank 0 :parent #1))))

Seemingly this macro wreaks havoc with the automatic sitemap
generation...

Thanks

        Dieter


>
> Regards,

-- 
Best wishes

H. Dieter Wilhelm
Darmstadt
Germany

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: org-html-postamble-format and #+DATE: specification in 8.0pre
  2013-04-06 11:20         ` Dieter Wilhelm
@ 2013-04-06 12:19           ` Nicolas Goaziou
  2013-04-06 13:31             ` Maurice
  0 siblings, 1 reply; 21+ messages in thread
From: Nicolas Goaziou @ 2013-04-06 12:19 UTC (permalink / raw)
  To: Dieter Wilhelm; +Cc: Alan Schmitt, emacs-orgmode

Hello,

> #+DATE: {{{modification-time(%Y-%m-%d)}}}
>
> is working when I'm exporting individual files but now when I'm trying
> to publish I'm getting:
>
> Generating tree-style sitemap for Die Dünenhof-Seite [15 times]
> byte-code: Bad timestamp `((macro (:key modification-time :value {{{modification-time(%Y-%m-%d)}}} :args (%Y-%m-%d) :begin 1 :end 34 :post-blank 0 :parent #0)))'
> Error was: (stringp ((macro (:key modification-time :value {{{modification-time(%Y-%m-%d)}}} :args (%Y-%m-%d) :begin 1 :end 34 :post-blank 0 :parent #1))))
>
> Seemingly this macro wreaks havoc with the automatic sitemap
> generation...

Indeed, there's a bug.  Thank you for letting me know.

I have pushed a fix in master branch. Does it solves the problem?


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: org-html-postamble-format and #+DATE: specification in 8.0pre
  2013-04-06 12:19           ` Nicolas Goaziou
@ 2013-04-06 13:31             ` Maurice
  0 siblings, 0 replies; 21+ messages in thread
From: Maurice @ 2013-04-06 13:31 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <n.goaziou@gmail.com> écrivit :

> I have pushed a fix in master branch. Does it solves the problem?

It solves,

Maurice

should practice writing in English to submit the first.

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: org-html-postamble-format and #+DATE: specification in 8.0pre
  2013-04-05 18:52       ` Nicolas Goaziou
@ 2013-04-06 15:05         ` Alan Schmitt
  2013-04-06 17:02           ` Nicolas Goaziou
  0 siblings, 1 reply; 21+ messages in thread
From: Alan Schmitt @ 2013-04-06 15:05 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Dieter Wilhelm, emacs-orgmode

Nicolas Goaziou writes:

> Hello,
>
> Alan Schmitt <alan.schmitt@polytechnique.org> writes:
>
>> I have a more serious issue: it seems that '%d' is no longer taken into
>> account. To reproduce, try exporting the following:
>>
>> #+BEGIN_SRC org
>> # -*- org-export-allow-bind-keywords: t -*-
>>
>> #+TITLE: Testing the date
>> #+BIND: org-html-postamble-format (("en" "Test %d %a"))
>
>>
>> Hello World
>> #+END_SRC
>
> You didn't specify any date.

Ah, I see. What I don't understand is why the default postamble can
display the date, as it's also using %d:

Original value was 
(("en" "<p class=\"author\">Author: %a (%e)</p>\n<p class=\"date\">Date: %d</p>\n<p class=\"creator\">Generated by %c</p>\n<p class=\"xhtml-validation\">%v</p>"))

Alan

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: org-html-postamble-format and #+DATE: specification in 8.0pre
  2013-04-06 15:05         ` Alan Schmitt
@ 2013-04-06 17:02           ` Nicolas Goaziou
  2013-04-06 17:28             ` Alan Schmitt
  0 siblings, 1 reply; 21+ messages in thread
From: Nicolas Goaziou @ 2013-04-06 17:02 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: Dieter Wilhelm, emacs-orgmode

Hello,

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

> Ah, I see. What I don't understand is why the default postamble can
> display the date, as it's also using %d:
>
> Original value was 
> (("en" "<p class=\"author\">Author: %a (%e)</p>\n<p class=\"date\">Date: %d</p>\n<p class=\"creator\">Generated by %c</p>\n<p class=\"xhtml-validation\">%v</p>"))

I cannot reproduce your problem.

With the current Org buffer:

--8<---------------cut here---------------start------------->8---
#+language: en
#+author: Me
#+options: postamble:t author:t date:t
* Headline
  Body
--8<---------------cut here---------------end--------------->8---

I get no date in the (default) postamble.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: org-html-postamble-format and #+DATE: specification in 8.0pre
  2013-04-06 17:02           ` Nicolas Goaziou
@ 2013-04-06 17:28             ` Alan Schmitt
  2013-04-06 18:02               ` Nicolas Goaziou
  0 siblings, 1 reply; 21+ messages in thread
From: Alan Schmitt @ 2013-04-06 17:28 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Dieter Wilhelm, emacs-orgmode

Hello,

Nicolas Goaziou writes:

> I cannot reproduce your problem.
>
> With the current Org buffer:
>
> --8<---------------cut here---------------start------------->8---
> #+language: en
> #+author: Me
> #+options: postamble:t author:t date:t
> * Headline
>   Body
> --8<---------------cut here---------------end--------------->8---
>
> I get no date in the (default) postamble.

Here is the postamble that is generated here:

<div id="postamble" class="status">
<p class="author">Author: Me</p>
<p class="date">Created: 2013-04-06 Sat 19:25</p>
<p class="creator">Generated by <a href="http://orgmode.org">Org</a> mode 8.0-pre in <a href="http://www.gnu.org/software/emacs/">Emacs</a> 24.2.93.1.</p>
<p class="xhtml-validation"><a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a></p>
</div>

It has the date. But there is something weird, in the default option:

(("en" "<p class=\"author\">Author: %a (%e)</p>\n<p class=\"date\">Date: %d</p>\n<p class=\"creator\">Generated by %c</p>\n<p class=\"xhtml-validation\">%v</p>"))

the text is "Date" and not "Created".

Alan

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: org-html-postamble-format and #+DATE: specification in 8.0pre
  2013-04-06 17:28             ` Alan Schmitt
@ 2013-04-06 18:02               ` Nicolas Goaziou
  2013-04-07 21:01                 ` Alan Schmitt
  0 siblings, 1 reply; 21+ messages in thread
From: Nicolas Goaziou @ 2013-04-06 18:02 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: Dieter Wilhelm, emacs-orgmode

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

> Here is the postamble that is generated here:
>
> <div id="postamble" class="status">
> <p class="author">Author: Me</p>
> <p class="date">Created: 2013-04-06 Sat 19:25</p>
> <p class="creator">Generated by <a href="http://orgmode.org">Org</a> mode 8.0-pre in <a href="http://www.gnu.org/software/emacs/">Emacs</a> 24.2.93.1.</p>
> <p class="xhtml-validation"><a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a></p>
> </div>
>
> It has the date.

It isn't the date but the document time stamp (see
`org-export-time-stamp-file').

> But there is something weird, in the default option:
>
> (("en" "<p class=\"author\">Author: %a (%e)</p>\n<p class=\"date\">Date: %d</p>\n<p class=\"creator\">Generated by %c</p>\n<p class=\"xhtml-validation\">%v</p>"))
>
> the text is "Date" and not "Created".

This variable is used iff `org-html-postamble' is set to `t'. You
probably have it set to `auto'.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: org-html-postamble-format and #+DATE: specification in 8.0pre
  2013-04-05 13:47       ` Rick Frankel
@ 2013-04-07 16:48         ` Dieter Wilhelm
  2013-04-07 18:50           ` Nicolas Goaziou
  0 siblings, 1 reply; 21+ messages in thread
From: Dieter Wilhelm @ 2013-04-07 16:48 UTC (permalink / raw)
  To: Rick Frankel; +Cc: Alan Schmitt, emacs-orgmode

Rick Frankel <rick@rickster.com> writes:

> On 04.04.2013 17:36, Dieter Wilhelm wrote:
>> Nicolas Goaziou <n.goaziou@gmail.com> writes:
>>> Alan Schmitt <alan.schmitt@polytechnique.org> writes:
>>>
>>>> Dieter Wilhelm writes:
>>>>
>>>> but now I can't specify a date in the form
>>>>>
>>>>> #+DATE:  "%Y-%m-%d"
>>>>>
>>>>> Formerly an empty specification meant the current date, but now
>>>>> in the
>>>>> preamble the date remains empty.
>>>>
>>>> I'm having the same issue. Did you find a way around it?
>>>
>>> I didn't try to reproduce the problem, but specifying a format time
>>> string as a DATE value is not possible anymore. You still can
>>> provide
>>> a timestamp and tweak `org-export-date-timestamp-format' (or BIND
>>> it) to
>>> format it.
>>
>> Sorry I don't get it completely.
>> I'd like to have as the DATE value the current change time of the
>> file.
>> You mean that I should set this with the Emacs timestamp facility?
>> Like:
>>
>> #+DATE: Time-stamp: " "
>
> No, but you can use the modification-time() macro:

Thank you very much, practically to the same time Nicolas G. pointed
this out as well and I had some issues with the html-preamble, so I
didn't reply.  But as an aside: Is there a place in worg, in the
documentation, a lisp file where these wonderful macros are to be found?

--
     Dieter


> ,----
> | #+TITLE: Test date handling
> | #+DATE: {{{modification-time(%Y-%m-%d)}}}
> | #+OPTIONS: toc:nil
> |
> | * File was updated on {{{modification-time(%Y-%m-%dT%H:%M)}}}
> | - the header date is: {{{date()}}}
> | - the current time is {{{time(%Y-%m-%dT%H:%M)}}}
> `----
>
> Which will export (in ascii):
>
> ,----
> |                           ____________________
> |
> |                            TEST DATE HANDLING
> |
> |                               Rick Frankel
> |                           ____________________
> |
> |
> |                                2013-04-05
> |
> |
> |
> |
> |
> | File was updated on 2013-04-05T09:41
> | ====================================
> |
> |   - the header date is: 2013-04-05
> |   - the current time is 2013-04-05T09:46
> `----
>

-- 
Best wishes

H. Dieter Wilhelm
Darmstadt
Germany

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: org-html-postamble-format and #+DATE: specification in 8.0pre
  2013-04-07 16:48         ` Dieter Wilhelm
@ 2013-04-07 18:50           ` Nicolas Goaziou
  2013-04-07 21:56             ` Dieter Wilhelm
  0 siblings, 1 reply; 21+ messages in thread
From: Nicolas Goaziou @ 2013-04-07 18:50 UTC (permalink / raw)
  To: Dieter Wilhelm; +Cc: Rick Frankel, emacs-orgmode, Alan Schmitt

Dieter Wilhelm <dieter@duenenhof-wilhelm.de> writes:

> Thank you very much, practically to the same time Nicolas G. pointed
> this out as well and I had some issues with the html-preamble, so I
> didn't reply.  But as an aside: Is there a place in worg, in the
> documentation, a lisp file where these wonderful macros are to be
> found?

See "Macro replacement" in Org documentation.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: org-html-postamble-format and #+DATE: specification in 8.0pre
  2013-04-06 18:02               ` Nicolas Goaziou
@ 2013-04-07 21:01                 ` Alan Schmitt
  2013-04-07 21:04                   ` Nicolas Goaziou
  0 siblings, 1 reply; 21+ messages in thread
From: Alan Schmitt @ 2013-04-07 21:01 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Dieter Wilhelm, emacs-orgmode

Nicolas Goaziou writes:

> It isn't the date but the document time stamp (see
> `org-export-time-stamp-file').

I see, sorry for the confusion.

>> But there is something weird, in the default option:
>>
>> (("en" "<p class=\"author\">Author: %a (%e)</p>\n<p class=\"date\">Date: %d</p>\n<p class=\"creator\">Generated by %c</p>\n<p class=\"xhtml-validation\">%v</p>"))
>>
>> the text is "Date" and not "Created".
>
> This variable is used iff `org-html-postamble' is set to `t'. You
> probably have it set to `auto'.

It is set to `auto'. I thought the #+options: postamble:t line would
change this.

Thanks again for the explanation.

Alan

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: org-html-postamble-format and #+DATE: specification in 8.0pre
  2013-04-07 21:01                 ` Alan Schmitt
@ 2013-04-07 21:04                   ` Nicolas Goaziou
  0 siblings, 0 replies; 21+ messages in thread
From: Nicolas Goaziou @ 2013-04-07 21:04 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: Dieter Wilhelm, emacs-orgmode

Hello,

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

> It is set to `auto'. I thought the #+options: postamble:t line would
> change this.

I was caught by this too. IIRC, it's #+options: html-postamble:t


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: org-html-postamble-format and #+DATE: specification in 8.0pre
  2013-04-07 18:50           ` Nicolas Goaziou
@ 2013-04-07 21:56             ` Dieter Wilhelm
  0 siblings, 0 replies; 21+ messages in thread
From: Dieter Wilhelm @ 2013-04-07 21:56 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Rick Frankel, emacs-orgmode, Alan Schmitt

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> Dieter Wilhelm <dieter@duenenhof-wilhelm.de> writes:
>
>> Thank you very much, practically to the same time Nicolas G. pointed
>> this out as well and I had some issues with the html-preamble, so I
>> didn't reply.  But as an aside: Is there a place in worg, in the
>> documentation, a lisp file where these wonderful macros are to be
>> found?
>
> See "Macro replacement" in Org documentation.

$ make docs

was my friend, thanks for the pointer, Stupid me, didn't realise that
the documentation is also advancing for 8.0pre...

This is a great help. But:

dieter@urmel:/appl/org-mode$ make info
make -C doc info
make[1]: Entering directory `/appl/org-mode/doc'
make[1]: Nothing to be done for `info'.

The info documentation is not yet working?

-- 
Best wishes

H. Dieter Wilhelm
Darmstadt
Germany

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2013-04-07 21:57 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-29 14:11 org-html-postamble-format and #+DATE: specification in 8.0pre Dieter Wilhelm
2013-04-03 13:04 ` Alan Schmitt
2013-04-03 19:21   ` Nicolas Goaziou
2013-04-04 21:36     ` Dieter Wilhelm
2013-04-05 13:47       ` Rick Frankel
2013-04-07 16:48         ` Dieter Wilhelm
2013-04-07 18:50           ` Nicolas Goaziou
2013-04-07 21:56             ` Dieter Wilhelm
2013-04-05 18:43       ` Nicolas Goaziou
2013-04-06 11:20         ` Dieter Wilhelm
2013-04-06 12:19           ` Nicolas Goaziou
2013-04-06 13:31             ` Maurice
2013-04-05  7:17     ` Alan Schmitt
2013-04-05 13:22       ` Rick Frankel
2013-04-05 18:52       ` Nicolas Goaziou
2013-04-06 15:05         ` Alan Schmitt
2013-04-06 17:02           ` Nicolas Goaziou
2013-04-06 17:28             ` Alan Schmitt
2013-04-06 18:02               ` Nicolas Goaziou
2013-04-07 21:01                 ` Alan Schmitt
2013-04-07 21:04                   ` Nicolas Goaziou

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).