From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: org-mode and ebib Date: Sat, 11 Dec 2010 15:06:22 -1000 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=41259 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRaOT-0003Nt-CU for emacs-orgmode@gnu.org; Sat, 11 Dec 2010 20:06:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PRaOR-0006kK-L8 for emacs-orgmode@gnu.org; Sat, 11 Dec 2010 20:06:29 -0500 Received: from oproxy3-pub.bluehost.com ([69.89.21.8]:54185) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PRaOR-0006j7-DH for emacs-orgmode@gnu.org; Sat, 11 Dec 2010 20:06:27 -0500 In-Reply-To: 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: Ali Tofigh Cc: emacs-orgmode On Dec 10, 2010, at 7:19 AM, Ali Tofigh wrote: > Hi everyone, > > A while ago I asked on this list about connecting org-mode with ebib, > which is a bibtex database manager for emacs. Thanks to Joost Kremers, > there is now a solution. > > I asked the developer of ebib, Joost Kremers, if he could write a > function that would start ebib on a given bibtex entry. He kindly > added this functionality to the 'ebib' function (which starts ebib in > emacs) and it is now available in the ebib git repository (see > http://ebib.sourceforge.net). If you are using ebib and would like to > get org-mode to open bibtex entries do the following: > > 1) Install the latest development version of ebib. > > 2) make sure ebib-preload-bib-files is set properly so that your .bib > file is loaded by ebib when ebib starts > > 3) add the following lines to your .emacs: > (org-add-link-type "ebib" 'ebib) > > Now you can insert ebib links in your documents like this: > [[ebib:Jones1998][some paper title]]. Opening this link should now > result in ebib starting, loading your default bibtex database, and > highlighting the bibtex entry Jones1998. Alternatively, if you already > have started ebib, then opening the link will get you to the bibtex > entry in your opened ebib database. > > /Ali Tofigh > Aloha /Ali Tofigh, Thanks very much for this. It is a nice addition to Org-mode. Now it is also possible to add link types for LaTeX citation macros, as the following link type for one of the natbib citation macros: (org-add-link-type "citep" 'ebib (lambda (path desc format) (cond ((eq format 'latex) (format "\\citep[%s]{%s}" desc path))))) A link like [[citep:jones][35]] will export this to LaTeX: \citep[35]{jones} And of course the link will jump to the bibtex entry with a single click. Thanks again for making this happen. All the best, Tom > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode