auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] adding datestamp to reftex-set-cite-format


From: Karl Voit
Subject: Re: [AUCTeX] adding datestamp to reftex-set-cite-format
Date: Wed, 8 Jun 2011 15:02:06 +0200
User-agent: slrn/0.9.9 (Linux)

* Sylvain ROUSSEAU <address@hidden> wrote:
> hi,

Hi!

> apparently, reftex-format-citation needs a string as a format.

I thought so.

> Advising that function seems to work!
>
> (defadvice reftex-format-citation (before eval-citation-format)
>   (setq format (eval format)))
>
> and just drop the lambda insert thing ;)
>
> (?h . (concat "* %l - %t\n:PROPERTIES:\n:Created: "
>     (format-time-string (org-time-stamp-format t t))
>     "\n:Custom_ID: %l\n:END:\n[[papers:%l][%l-pdf]] [[bib:%l][%
> l-bib]]"))

Wow, this works actually. Thank you!

Although there is one small issue with the solution above: it
results in a so called »inactive timestamp« which is surrounded by
square brackets »[...]«. See also [1].

My world would be perfect if there would be an »active timestamp«
surrounded by inequality signs »<...>«

Is this a major hack or do you know this change too?

Thanks again!

  1. http://orgmode.org/manual/Timestamps.html#Timestamps
-- 
Karl Voit

Hallo, mein Name ist Web 2.0. Gib mir dein Adressbuch und lass mich Emails lesen




reply via email to

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