[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX] adding datestamp to reftex-set-cite-format
From: |
Karl Voit |
Subject: |
[AUCTeX] adding datestamp to reftex-set-cite-format |
Date: |
Tue, 7 Jun 2011 19:31:29 +0200 |
User-agent: |
slrn/0.9.9 (Linux) |
Hi!
I need a datestamp (for »now«) in a new reftex entry.
»C-c h« should result in such an entry:
,----[ the new entry ]
| * Nakamoto2009 - Bitcoin: A Peer-to-Peer Electronic Cash System
| :PROPERTIES:
| :Custom_ID: Nakamoto2009
| :CREATED: <2011-06-06 Mon 12:31>
| :END:
| [[papers:Nakamoto2009][Nakamoto2009-pdf]]
`----
I got that far that I can generate this but without the datestamp
after »:CREATED:«:
,----[ current definition ]
| (reftex-set-cite-format
| '((?b . "[[bib:%l][%l-bib]]")
| (?n . "[[notes:%l][%l-notes]]")
| (?p . "[[papers:%l][%l-pdf]]")
| (?t . "%t")
| (?h . "* %l - %t\n:PROPERTIES:\n:Created: %U\n:Custom_ID:
%l\n:END:\n[[papers:%l][%l-pdf]]")))
`----
»%U« does not provide anything at all. Adding a command to insert a
timestamp does not work either and results only in a normal reftex
reference (probably being the fallback result when facing
problems?):
,----[ another test ]
| (?h . (concat "* %l - %t\n:PROPERTIES:\n:Created: "
| '(lambd() (insert (format-time-string (org-time-stamp-format t t))))
| "\n:Custom_ID: %l\n:END:\n[[papers:%l][%l-pdf]] [[bib:%l][%l-bib]]") )
`----
Is there a way to enable this timestamp?
Background: I am trying to do reference management with reftex and
org-mode[1] according to the ideas mentioned on [2]. It'd very cool
if I got the »this reference was added on ...« information too.
1. http://orgmode.org
2.
http://tincman.wordpress.com/2011/01/04/research-paper-management-with-emacs-org-mode-and-reftex/
--
Karl Voit
- [AUCTeX] adding datestamp to reftex-set-cite-format,
Karl Voit <=