From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: ebib configuration for org-bibtex Date: Tue, 02 Aug 2011 07:40:38 -1000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoIxU-0001LI-7U for emacs-orgmode@gnu.org; Tue, 02 Aug 2011 13:40:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QoIxR-0001mJ-VL for emacs-orgmode@gnu.org; Tue, 02 Aug 2011 13:40:48 -0400 Received: from oproxy3-pub.bluehost.com ([69.89.21.8]:33806) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QoIxR-0001mF-KS for emacs-orgmode@gnu.org; Tue, 02 Aug 2011 13:40:45 -0400 Received: from cpe-24-94-66-191.hawaii.res.rr.com ([24.94.66.191] helo=potofo-ou) by box472.bluehost.com with esmtpa (Exim 4.76) (envelope-from ) id 1QoIxN-00088u-At for emacs-orgmode@gnu.org; Tue, 02 Aug 2011 11:40:41 -0600 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-mode Aloha all, I'm trying, partially successfully, to configure org-bibtex so it mimics some useful features of ebib. In particular, I'm wanting to add several optional fields that ebib uses. I have this in .emacs: #+begin_src emacs-lisp :tangle yes (dolist (type org-bibtex-types) (push :url (cdr (assoc :optional (cdr type)))) (push :annote (cdr (assoc :optional (cdr type)))) (push :abstract (cdr (assoc :optional (cdr type)))) (push :keywords (cdr (assoc :optional (cdr type)))) (push :file (cdr (assoc :optional (cdr type)))) ) (push (cons :url "A URL for the reference") org-bibtex-fields) (push (cons :annote "Annotation is typically not exported") org-bibtex-fields) (push (cons :abstract "Abstract for annotated bibliography") org-bibtex-fields) (push (cons :keywords "Keywords for sorting with ebib") org-bibtex-fields) (push (cons :file "A local file path used by ebib to open the reference in an appropriate application") org-bibtex-fields) #+end_src Most of it works fine, but the optional :file field doesn't respect its argument. So, the following entry in the Org-mode file: ** Active Documents with Org-mode :PROPERTIES: :TITLE: Active Documents with Org-mode :TYPE: article :AUTHOR: Eric Schulte and Dan Davison :JOURNAL: Computing in Science and Engineering :YEAR: 2011 :VOLUME: 13 :NUMBER: 3 :PAGES: 2--9 :MONTH: May/June :URL: http://www.cs.unm.edu/~eschulte/data/CISE-13-3-SciProg.pdf :FILE: Schulte-Davison-Babel.pdf :CUSTOM_ID: schulte11:_activ_docum_org :END: is exported with org-bibtex like this: @article{schulte11:_activ_docum_org, author = {Eric Schulte and Dan Davison}, title = {Active Documents with Org-mode}, journal = {Computing in Science and Engineering}, year = 2011, file = {/Users/dk/Public/projects/916-rr/rr.org}, url = {http://www.cs.unm.edu/~eschulte/data/CISE-13-3-SciProg.pdf}, volume = 13, number = 3, pages = {2--9}, month = {May/June} } Pressing f in ebib now just takes me back to the Org-mode file, rather than launching a pdf reader on my local copy of the article. Any ideas how I can achieve my goal? All the best, Tom -- Thomas S. Dye http://www.tsdye.com