From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Re: zotero (or mendeley) integration with org Date: Sat, 02 Apr 2011 14:37:01 +0100 Message-ID: <87y63sai6a.fsf@ucl.ac.uk> 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 Return-path: Received: from [140.186.70.92] (port=51894 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q610m-0000yS-0B for emacs-orgmode@gnu.org; Sat, 02 Apr 2011 09:37:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q610l-0005wW-1t for emacs-orgmode@gnu.org; Sat, 02 Apr 2011 09:37:07 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:54390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q610k-0005wN-Ro for emacs-orgmode@gnu.org; Sat, 02 Apr 2011 09:37:07 -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: 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? > > 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. Perhaps this could be automated with babel? Would tangling do what you want? Seems to work for me: --8<---------------cut here---------------start------------->8--- #+babel: :tangle hens.bib * heat exchanger network synthesis *** Rewriting grammar for HENS with splitting (Fraga, 2009) #+begin_src bib @article{fraga-2009a, title = {A rewriting grammar for heat exchanger network structure evolution with stream splitting}, volume = 41, issn = {{0305-215X}}, doi = {10.1080/03052150903070153}, number = 9, journal = {Engineering Optimization}, author = {Eric S. Fraga}, year = 2009, pages = {813-831} } #+end_src --8<---------------cut here---------------end--------------->8--- Put this in a file, t.org say, and hit =C-c C-v t= (=org-babel-tangle=) and it should create =hens.bib=. Sorry for the self-citation here ;-) You could also put the actual tangle destination on each src block, in case you want to tangle to more than one file from the same org file. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.128.ga9e6)