From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Links to BibTeX data files Date: Thu, 27 Apr 2006 10:28:08 +0200 Message-ID: <19761aa36da576d041c9f475149c23e8@science.uva.nl> References: <17479.63578.510248.710138@David-Chadds-Computer.local> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FZ1r4-0003iK-F0 for emacs-orgmode@gnu.org; Thu, 27 Apr 2006 04:28:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FZ1r3-0003hp-LV for emacs-orgmode@gnu.org; Thu, 27 Apr 2006 04:28:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FZ1r3-0003hl-Bv for emacs-orgmode@gnu.org; Thu, 27 Apr 2006 04:28:05 -0400 Received: from [66.249.92.169] (helo=uproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FZ1tv-0001OB-Dh for emacs-orgmode@gnu.org; Thu, 27 Apr 2006 04:31:03 -0400 Received: by uproxy.gmail.com with SMTP id m2so1315231ugc for ; Thu, 27 Apr 2006 01:28:04 -0700 (PDT) In-Reply-To: <17479.63578.510248.710138@David-Chadds-Computer.local> 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: d.chadd@uea.ac.uk Cc: emacs-orgmode@gnu.org On Apr 20, 2006, at 23:08, David Chadd wrote: > This was mentioned recently --- the links to .bib files really don't > work very well (for me, anyway...). If I want to link to the > following entry in the .bib file: > > @Book{wright:sociophilological, > > assuming point is in the top line I will get this link: > > [[file:~/path/to/file.bib::Book%20wright%20sociophilological]] > > This doesn't find the entry. This was a bug in the function executing the search, which is fixed in 4.27. This does now work out if the box, so you can use the standard links if the line is in the "@entrytype{key," line. However, you are right that it is much better to always link to the key even if the cursor is not in the line. > Of course, the author of the wonderful > RefTeX will make a much better job of this than my Horrible Hack, and > probably include some other goodies too ;-) Appealing to my vanity as a strategy to get me to work? It works :-) In org.el 4.27, C-c l does link to the correct key no matter where the cursor is. It also creates a nice descriptive text for the article, using author names, year and the first few title words. For this stuff to work smoothly, BibTeX files should be preselected to be visited by Emacs and not another application when visited through an org-mode link. This is so by default now, but if you have customized the variable `org-file-apps', you are overruling this change. - Carsten