emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] New exporter: no custom timestamps


From: Jambunathan K
Subject: Re: [O] New exporter: no custom timestamps
Date: Tue, 18 Sep 2012 00:19:50 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

> Hello everybody,
>
> I am not able to export with custiom timestamps with the new
> exporter. 

`org-translate-time' expects "<>" and "[]" to be passed to it.

I am not sure whether (all) the exporters should be changed or just the
API needs to be fixed.

    ,----
    | *** Welcome to IELM ***  Type (describe-mode) for help.
    | ELISP> org-display-custom-times
    | t
    | ELISP> org-time-stamp-custom-formats
    | ("<%d/%m/%Y %A>" . "<%d/%m/%Y %A %H:%M>")
    | 
    | ELISP> (setq T '(timestamp
    |     (:type inactive :value "2012-09-17 lun" :range-end nil)))
    | (timestamp
    |  (:type inactive :value "2012-09-17 lun" :range-end nil))
    | 
    | ELISP> (org-translate-time (org-element-property :value T))
    | "2012-09-17 lun"
    | ELISP> (org-translate-time (format "[%s]" (org-element-property :value 
T)))
    | "[17/09/2012 Monday]"
    | ELISP> 
    `----

> file:
> ---------------------------
> * [2012-09-17 lun]
> ** [2013-04-28 dom] sunday
> * COMMENT s
> # Local Variables:
> # org-display-custom-times: t
> # org-time-stamp-custom-formats: ("<%d/%m/%Y %A>" . "<%d/%m/%Y %A %H:%M>")
> # End:
> ----------------------

Use #+BIND:

> If I open the file the local variables are set. I toggle the timestamp format 
>
> C-c C-x C-t and C-c C-e H exports to HTML with my custom timestamp in
> the headline:
>
> <h2 id="sec-1"><span class="section-number-2">1</span> <span
> class="timestamp-wrapper"> <span class="timestamp">17/09/2012
> lunedì</span></span></h2>
>
> Whereas with the new exporter
>
> M-x org-export-dispatch h H
>
> I get the ISO format:
> <h2 id="sec-1"><span class="section-number-2">1</span> <span
> class="timestamp-wrapper"><span class="timestamp">2012-09-17
> lun</span></span></h2>
>
> cheers,
> Giovanni
>
>
>

-- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]