From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [ANN] org-bibtex.el --- convert between Org headings and bibtex entries Date: Wed, 20 Apr 2011 13:59:54 -0600 Message-ID: <87oc401xta.fsf@gmail.com> References: <87y6357q81.fsf@gmail.com> <027A8D96-05AB-452C-87D3-85D90D24AFB1@tsdye.com> <8739ldawcf.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCdrB-0005GQ-Pu for emacs-orgmode@gnu.org; Wed, 20 Apr 2011 16:18:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCdrA-00043z-C8 for emacs-orgmode@gnu.org; Wed, 20 Apr 2011 16:18:37 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:44455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCdrA-00043n-0U for emacs-orgmode@gnu.org; Wed, 20 Apr 2011 16:18:36 -0400 Received: by pvg4 with SMTP id 4so829113pvg.0 for ; Wed, 20 Apr 2011 13:18:35 -0700 (PDT) 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: Matt Lundin Cc: Org Mode Matt Lundin writes: > "Thomas S. Dye" writes: > >> This could be very useful and a significant enhancement to Org-mode >> for note taking. With it, library time can be spent almost entirely >> within Org-mode, capturing bibliographic information and taking >> reading notes. It feels like the right level of functionality-- >> lightweight and easy to use, with lots of prompting material. >> >> I created an entry with org-bibtex-create and then another with org- >> bibtex-read/write. When I ran org-bibtex, only the second entry was >> exported. Also, the org-bibtex-read/write process mangled the bibtex >> entry a bit, so the resulting .bib file wasn't useful. Note the >> addition of {} around the publisher and year, and the truncation of >> multi-line entries. > > Just as with auto-generated keys, I wonder whether some of these > problems might be remedied by plugging into existing bibtex-mode > functions, especially bibtex-parse-entry and the bibtex string cleanup > functions. I am always amazed by the ability of bibtex-mode to do the > right thing when cleaning up entries (e.g., remove delimiters from > dates, string abbreviations, etc.). > Ah, this is a great suggestions and I wish I had thought to look for existing support before rolling my own versions of these functions. org-bibtex is now using both of the functions you mentioned above to good effect. > > Also, it might be nice to allow a way to one's existing bibtex entry > type and field definitions---i.e., bibtex-entry-field-alist. > It shouldn't be difficult to add items to the two defvars used by org-bibtex to manage bibtex entries, namely bibtex-types and bibtex-fields Best -- Eric > > Best, > Mat > -- Eric Schulte http://cs.unm.edu/~eschulte/