[TxMt] Lookup documentation command in LaTeX

Daniel Käsmayr daniel at kaesmayr.net
Wed May 10 08:20:13 UTC 2006


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



More information about the textmate mailing list