Daniel,
it seems we were following the same discussion :) This is great, but I was hoping to have the keywords in /Library/ teTeX/share/texmf.tetex/texdoctk/texdoctk.dat also be used, as Bruno Voisin mentioned. In other words, if I type vref and ask for help there, the system should be smart enough to find the package that vref is in and pop-up the help for that. Just something to think about, if you want to hack this thing further. One could even be provided with a list of all the various packages with one-line descriptions next to them. That would be cool.
Haris On May 10, 2006, at 3:20 AM, Daniel Käsmayr wrote:
A quick addition to the LaTeX Bundle -- there was some mention of "texdoc" on the TeX on OSX-Mailing list:
Command: "Lookup documentation of current word/package" Shell script: texdoc $TM_CURRENT_WORD (no input, no output) Scope: variable.parameter.name.package
with an addition to the language definition: (although I don't know if the scope names are valid TextMate-speak)
{ name = 'meta.label.package.latex'; begin = '(\(?:usepackage){)'; end = '(})'; patterns = ( { name = 'variable.parameter.name.package'; match = '[a-zA-Z,:0-9]+'; } ); },
This command will then open the corresponding help file for a selected package.
greets,
Dan