[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-devel] [PATCH] Re: Feature request: Ref TeX, access the "file" B
From: |
Myles |
Subject: |
[AUCTeX-devel] [PATCH] Re: Feature request: Ref TeX, access the "file" BibTeX field for use with org-mode |
Date: |
Tue, 19 Jun 2012 13:01:05 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Allow access to the 'file' field, and split it to give the relative path (for
zotero).
diff --git a/lisp/reftex-cite.el b/lisp/reftex-cite.el
index e1d2e92..f6adbcd 100644
--- a/lisp/reftex-cite.el
+++ b/lisp/reftex-cite.el
@@ -1063,8 +1063,10 @@ While entering the regexp, completion on knows citation
keys is possible.
((= l ?T) (reftex-abbreviate-title
(reftex-get-bib-field "title" entry)))
((= l ?v) (reftex-get-bib-field "volume" entry))
- ((= l ?y) (reftex-get-bib-field "year" entry)))))
-
+ ((= l ?y) (reftex-get-bib-field "year" entry))
+ ;; zotero path to the (pdf) file
+ ((= l ?z) (nth 1 (split-string
+ (reftex-get-bib-field "file" entry) ":"))))))
(if (string= rpl "")
(setq b (match-beginning 2) e (match-end 2))
(setq b (match-beginning 3) e (match-end 3)))