Jump to content
Sign in to follow this  
zeitlings

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.


Description

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: 

github.com/zeitlings/alfred-latex-md/raw/master/LaTeX-MD.alfredworkflow (direct download) 

github.com/zeitlings/alfred-latex-md

 

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: 

github.com/zeitlings/alfred-latex-md-direct/raw/master/LaTeX-MD-direct.alfredworkflow (direct download) 

github.com/zeitlings/alfred-latex-md-direct

 

_____________

 

The workflow is piggybagging off these two:

https://www.alfredforum.com/topic/459-workflow-create-a-new-text-file-with-clipboard-content/
https://www.alfredforum.com/topic/394-fixed-create-a-new-file-in-the-finder/

 

https://pandoc.org/

 

 

 

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.

Guest
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...