Search LaTeX documentation with Alfred

Solution 1:

(1) Ready Alfred to accept a terminal command. Per this support document, the standard method is to type > and then the terminal command. Similarly, in LaunchBar the action is built into the basic index, too, and one can initiate it with term or similar.

(2) Type texdoc PackageName where PackageName is the LaTeX package you're looking for the documentation for. For example: texdoc enumitem or texdoc thmtools.

It'll open the documentation PDF. That's it!

Note that of course you can also do this from the command line directly if you open a terminal window.

Solution 2:

If you're a Powerpack user, I'd suggest creating a file filter. Follow the steps in the tutorial below, but drag in a LaTeX file instead to tell your filter which file types to include. You can include as many file types as you need.

http://blog.alfredapp.com/2014/04/24/tutorial-creating-an-alfred-workflow-without-a-single-line-of-code/

If you're not a Powerpack user, you can add the LaTeX file types to Alfred's Default Results. Go to the Preferences > Features > Default Results, click on "Advanced" and drag in your file types. However, be aware that this could clutter up your results quite a bit if you have a lot of files of this type, making it harder to locate your apps or essential files. :)