emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-time-stamp in latex buffer
@ 2017-07-28 12:39 Uwe Brauer
  2017-07-28 13:38 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Brauer @ 2017-07-28 12:39 UTC (permalink / raw)
  To: emacs-orgmode



Hi

I changed by org-time-stamp-custom-formats
to 



org-time-stamp-custom-formats is a variable defined in ‘org.el’.
Its value is ("«%d-%m-%Y %a»" . "«%d-%m-%Y %a %H:%M»")
Original value was 
("<%m/%d/%y %a>" . "<%m/%d/%y %a %H:%M>")


And indeed in an org buffer this format is used. However when I try to
use org-time-stamp in a latex buffer the string
<2017-07-28 Fr>
is inserted which does not respect my new setting.

What is wrong?

Thanks

Uwe Brauer 

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

* Re: org-time-stamp in latex buffer
  2017-07-28 12:39 org-time-stamp in latex buffer Uwe Brauer
@ 2017-07-28 13:38 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2017-07-28 13:38 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

Uwe Brauer <oub@mat.ucm.es> writes:

> org-time-stamp-custom-formats is a variable defined in ‘org.el’.
> Its value is ("«%d-%m-%Y %a»" . "«%d-%m-%Y %a %H:%M»")
> Original value was 
> ("<%m/%d/%y %a>" . "<%m/%d/%y %a %H:%M>")
>
>
> And indeed in an org buffer this format is used. However when I try to
> use org-time-stamp in a latex buffer the string
> <2017-07-28 Fr>
> is inserted which does not respect my new setting.
>
> What is wrong?

Custom format time are applied during fontification time. The major mode
you're using in your LaTeX document doesn't know about Org fontification
rules.

You may want to add some rules to font lock there.

Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2017-07-28 13:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-28 12:39 org-time-stamp in latex buffer Uwe Brauer
2017-07-28 13:38 ` 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).