On Nov 25, 2006, at 7:18 PM, Adam R. Maxwell wrote:
Out of curiosity, why -show-path=tex? Just to search for \bibliography commands in those .tex files? I never put .tex/.bib files in the kpsewhich search path, so I don't know precisely how to use them.
My script travels into all \include'd files, looking for \bibliography entries there as well. That's where the -show-path=tex is being used, to locate the file based on its name in \include{...}.
For my own amusement, I wrote an Obj-C program that reproduces most of the behavior of LatexCitekeys.rb (I think), and tells BibDesk to open the files if necessary before asking it for completion terms.
Cool! Perhaps we can use it to replace the "current" Bibdesk completion command in the bundle, so that users have two options when it comes to completion?
It uses a login shell to optionally run kpsewhich and get paths from it, so it works correctly for me even if I run the program from a shell with $PATH="" (and no $PATH in environment.plist). I was surprised at the number of .bib files it found, actually.
-- Adam
Haris