Jump to content
Sign in to follow this  

Simple LaTeX ⟷ Markdown converter using Pandoc

Recommended Posts

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:







Edited by zeitlings

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  
  • Create New...