Jump to content

Convert multimarkdown > latex > pdf


Recommended Posts

Convert multimarkdown > latex > pdf

This workflow generates a .tex file from a multimarkdown (mmd) text document and then converts it into a pdf. It's triggered by typing the name of the mmd document you'd like to process in Alfred and then choosing mmd > LaTeX > pdf from the workflow menu.
 
Stuff you need to have
The commands used are mmd2tex latexmk, makeglossaries, bibtex and pdflatex. Obviously, you need to have them installed. You'll also need the appropriate mmd header files in your Library folder, as well as accurate headings in your mmd text file (e.g. name and location of your BibTeX file, the type of LaTeX header you'd like to use, etc.). If you use mmd regularly, you probably know what I'm talking about and have everything already downloaded and installed. If the last few sentences made no sense, then please see Fletcher Penney's website on mmd. His mmd manual is pretty comprehensive, and discusses how to combine LaTeX and mmd using all the commands and files just mentioned. Everything is free.

Housekeeping

The script only works on a .txt or .md files. The name of your BibTeX document must match the name of your mmd document, i.e., if your mmd document is called mydoc.txt then your BibTeX document must be called mydoc.bib. It must also be in the same folder as your mmd document. However, there's no need to actually have a BibTeX document. The script runs just fine without it.

 
Feel free to use it however you wish. I made this script for myself and haven't tested it anywhere else, so I'm sure it's not perfect. If you have any problems or know how it could be improved, please let me know.

 
Download
http://db.tt/CO1wz2IQ
 
Erin

Link to post
  • 8 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...