From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David Chadd" Subject: Links to BibTeX data files Date: Thu, 20 Apr 2006 22:08:42 +0100 Message-ID: <17479.63578.510248.710138@David-Chadds-Computer.local> Reply-To: d.chadd@uea.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FWxpU-0000wE-Li for emacs-orgmode@gnu.org; Fri, 21 Apr 2006 11:45:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FWxpS-0000vz-9a for emacs-orgmode@gnu.org; Fri, 21 Apr 2006 11:45:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWxpS-0000vw-3X for emacs-orgmode@gnu.org; Fri, 21 Apr 2006 11:45:54 -0400 Received: from [139.222.130.185] (helo=mailgate5.uea.ac.uk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FWxr2-0001VS-6E for emacs-orgmode@gnu.org; Fri, 21 Apr 2006 11:47:32 -0400 Received: from [139.222.130.167] (helo=ueams2) by mailgate5.uea.ac.uk with esmtp (Exim 4.50) id 1FWxRE-0001iF-Gu for emacs-orgmode@gnu.org; Fri, 21 Apr 2006 16:20:53 +0100 Received: from [139.222.208.192] (helo=David-Chadds-Computer.local) by ueams2 with esmtp (Exim 4.51) id 1FWxRE-0007Re-BO for emacs-orgmode@gnu.org; Fri, 21 Apr 2006 16:20:52 +0100 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: emacs-orgmode@gnu.org 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, author = {Wright, Roger}, title = {A Sociophilological Study of Late Latin}, publisher = {Brepols}, year = 2002, address = {Turnhout}, number = 5, series = {Utrecht Studies in Medieval Literacy}, } 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. The situation is worse if point is in other lines of the entry ('year 2002' is not likely to be very helpful!). Nor is the use of the line-number if (like me) you keep your .bib files sorted. I have patched org-store-link so that, if a file is in bibtex-mode and I am somewhere between the outer enclosing braces of an entry, then it is the corresponding BibTeX key which is used (so, with the current example, that would mean '...bib::wright:sociophililogical'). This does what I want, which is to enable me to make notes on reading and references in my org file. 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 ;-) David -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Professor David Chadd Faculty of Arts & Humanities, University of East Anglia, Norwich NR4 7TJ, UK d [dot] chadd [at] uea [dot] ac [dot] uk -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-