This repository contains a Workflow for Alfred 5 that allows you to easily open the documentation of your TeX distribution.
It makes use of your local LaTeX installation, so searching the documentation is really fast and does not depends on websites such as texdoc.net.
Installation is pretty easy:
- Download
TeXdoc.alfredworkflow
from the latest release. - Open the workflow and install it in Alfred.
Alternatively, if you want to build from the repository, run the following instructions in your working directory
make alfredworkflow # build the workflow
make install # install into Alfred
To use the workflow, type td
in your Alfred, followed by the name of the documentation you want to consult.
Internally, the texdoc command is used to query the documentation present on your local computer. Hence, the query in the figure above will open the documentation of texdoc in your default viewer.
If you type tdn
followed by a package name into Alfred, you will download the corresponding documentation from texdoc.net.
This keyword opens the CTAN page for the package you specify, i.e. https://www.ctan.org/pkg/<name>
.