auctex-devel
[Top][All Lists]
Advanced

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

[AUCTeX-devel] Feature request: RefTeX, access the "file" BibTeX field f


From: Myles
Subject: [AUCTeX-devel] Feature request: RefTeX, access the "file" BibTeX field for use with org-mode
Date: Mon, 18 Jun 2012 14:40:38 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Hi,

Would somebody please consider changing (at least) reftex-format-citation to
allow access to the "file = {}" field in a BibTeX file?

This would be useful for improving co-usage of two very apps: Zotero and emacs
org-mode, towards the goal of bibliography management.

Currently it is possible to export a bib file and attached (pdf) files from
Zotero, with the "file" field including a relative path to the actual (pdf) 
file:

  file = {npont.pdf:files/5/npont.pdf:application/pdf}

This could be used for inserting a heading and link to the file in an org-mode
document, containing notes on a collection of papers:

(reftex-set-cite-format
          '((?h . "** %t\n:PROPERTIES:\n:Custom_ID: 
%l\n:END:\n[[papers:%z][%l]]")))
((unload-feature 'reftex-cite )

I think this could be as easy as changing reftex-format-citation to include:

 ;; zotero path to the (pdf) file
 ((= l ?z) (reftex-get-bib-field "file" entry))

...plus extracting the path from the field.

An almost identical request, from a slightly different angle, was made in
September 2011 but it appears to have fizzled out inconclusively:

 http://comments.gmane.org/gmane.emacs.auctex.devel/2662

Thanks,

Myles




reply via email to

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