LaTeX ⟷ Markdown Alfred Workflow
Quickly convert Markdown to LaTeX or vice versa from your clipboard with Pandoc.
A simple routine to convert snippets of markdown to LateX from your clipboard or vice versa. The workflow creates either a *.md or *.tex file relative to your input and at the location you choose. The file is converted with Pandoc by calling it from the terminal. The converted file subsequently gets output at the same place. Existing files will be overwritten.
Pandoc is key and has to be installed:
$ brew install pandoc
github.com/zeitlings/alfred-latex-md/raw/master/LaTeX-MD.alfredworkflow (direct download)
Alternative Method: Clipboard only
An altered version that removes all created files and copies the converted output back to your clipboard:
Convert markdown to LateX from your clipboard or vice versa. The workflow creates either a *.md or *.tex file at your ~/Documents folder. The file will be converted with pandoc by calling it from the Terminal. The contents of the converted file will be copied to your clipboard. Both files will be moved to your trash bin.
github.com/zeitlings/alfred-latex-md-direct/raw/master/LaTeX-MD-direct.alfredworkflow (direct download)
The workflow is piggybagging off these two: