/alfred-texdoc

Alfred 2 Workflow for TeXdoc to consult your LaTeX documentation

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

TeXdoc workflow for Alfred

TeXdoc

This repository contains a Workflow for Alfred 2 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

Installation is pretty easy:

  1. Download TeXdoc.alfredworkflow from the latest release.
  2. 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

Usage

Keyword td

To use the workflow, type td in your Alfred, followed by the name of the documentation you want to consult.

Example td texdoc

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.

Keyword tdn

Example tdn texdoc

If you type tdn followed by a package name into Alfred, you will download the corresponding documentation from texdoc.net.

Keyword ctan

Example td texdoc

This keyword opens the CTAN page for the package you specify, i.e. https://www.ctan.org/pkg/<name>.

Links