From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: zotero (or mendeley) integration with org Date: Sat, 02 Apr 2011 09:19:23 -0400 Message-ID: <87y63s7pus.fsf@fastmail.fm> References: <26045.1301154464@rgc.damtp.cam.ac.uk> <87aageppnf.fsf@fastmail.fm> <87ipv2cryn.fsf@lw-wireless-pittnet-40-144.wireless.pitt.edu> <8739m6oyqf.fsf@fastmail.fm> <87wrjfaw11.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=35362 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q60jg-0007rN-Kb for emacs-orgmode@gnu.org; Sat, 02 Apr 2011 09:19:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q60jf-0001HW-E8 for emacs-orgmode@gnu.org; Sat, 02 Apr 2011 09:19:28 -0400 Received: from out3.smtp.messagingengine.com ([66.111.4.27]:58568) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q60jf-0001HR-A6 for emacs-orgmode@gnu.org; Sat, 02 Apr 2011 09:19:27 -0400 In-Reply-To: (Alan E. Davis's message of "Sat, 2 Apr 2011 11:40:56 +1000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Alan E. Davis" Cc: Stephen Eglen , emacs-orgmode@gnu.org "Alan E. Davis" writes: > Is it possible to use org babel to extract bibtex entries from file of > notes to a *.bib file?=C2=A0 > Yes, you can use babel's tangling facilities to extract bibtex entries enclosed in source blocks. #+begin_src bibtex :tangle history.bib @InCollection{levi2001_microhistory, author =3D {Levi, Giovanni}, title =3D {On Microhistory}, editor =3D {Peter Burke}, booktitle =3D {New Perspectives on Historical Writing}, address =3D {University Park, PA}, publisher =3D {Penn State Press}, year =3D 2001, } #+end_src Calling org-babel-tangle-file will put this entry in the file history.bib. > The stumbling point for me in saving bibtex sources is I don't see a > way to use the file as a bibtex *.bib file so as to use that as the > direct source for the publication.=C2=A0 Perhaps this could be automated > with babel? There are a few other routes.=20 1. Bibtex discards anything outside of an entry so you could symlink your org file to something with a bib extension (e.g., notes.org -> notes.bib) and simply point latex/bibtex to that file. 2. You could instruct emacs to edit bib files with orgmode and use babel and source blocks to enter items (add-to-list 'auto-mode-alist=20 '("\\.\\(org\\|bib\\)$" . org-mode)) 3. AFAICT, reftex is blissfully indifferent to non-bibtex data, so you could use reftex to query your org files for citation keys. Then, you could use reftex to generate a proper bib file with all entries cited in your paper. Best, Matt