emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Links to BibTeX data files
@ 2006-04-20 21:08 David Chadd
  2006-04-27  8:28 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: David Chadd @ 2006-04-20 21:08 UTC (permalink / raw)
  To: emacs-orgmode

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
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-04-27  8:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-20 21:08 Links to BibTeX data files David Chadd
2006-04-27  8:28 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).