Git Product home page Git Product logo

alfred-texdoc's Introduction

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

alfred-texdoc's People

Contributors

egeerardyn avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

f17mkx

alfred-texdoc's Issues

Don't store build artefact in repository

I utterly dislike having this ugly .alfredworkflow file in my git repository.

Since it is just a ZIP file, probably, it makes sense to use some of the techniques from either:

to solve this.

In any case, the build artefact should still be available from the releases page.

does not work on python3

Latest macOS comes with python3 by default but the scripts are python2 only. Needs updating of all the python scripts and the script filter.

Interactive filter

It would be really nice to make this workflow interactive, i.e. transform the output from texdoc --list ... to XML such that Alfred can display it to the user.

Output from that command looks something like:

1 /usr/local/texlive/2015/texmf-dist/doc/latex/pgfplots/pgfplots.pdf
   = Package manual
 2 /usr/local/texlive/2015/texmf-dist/doc/latex/pgfplots/TeX-programming-notes.pdf
 3 /usr/local/texlive/2015/texmf-dist/doc/context/third/pgfplots/pgfplotsexample-context.pdf
 4 /usr/local/texlive/2015/texmf-dist/doc/plain/pgfplots/pgfplotsexample-plain.pdf
 5 /usr/local/texlive/2015/texmf-dist/doc/latex/pgfplots/pgfplotsexample.pdf
 6 /usr/local/texlive/2015/texmf-dist/doc/latex/pgfplots/pgfplotstable.pdf
 7 /usr/local/texlive/2015/texmf-dist/doc/latex/pgfplots/pgfplotstodo.pdf
 8 /usr/local/texlive/2015/texmf-dist/doc/generic/pgfplots/README
   = Readme

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.