converts Markdown to LaTeX using redcarpet (mirror of http://git.rrerr.net/nilsding/mdlatex/)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples/readme
spec
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
mdlatex.rb
render_latex.rb

README.md

mdlatex

build status

mdlatex is a simple Markdown to LaTeX conversion tool. It works by providing a new renderer class for redcarpet.

Features

  • Write all your things in Markdown and convert them to LaTeX with ease!
  • It's written in Ruby!
  • Code syntax highlighting using minted and Pygments
  • Won't eat your grandma!

Installation

Install the dependencies:

  • Ruby 1.9.3+
  • A LaTeX distribution (with XeTeX included)
  • minted (LaTeX package/style for syntax highlighting source code)
  • Pygments (the syntax highlighter minted uses)
  • redcarpet (you can do that by running either bundle install or gem install redcarpet)

Usage

  1. Write your document in Markdown format
  2. Run ruby mdlatex.rb document.md > document.latex
  3. Include the converted file in your LaTeX document like this:
\input{document.latex}
  1. Compile to PDF using xelatex -shell-escape real_document.latex

An example document with output is in the examples directory.

There might be some unexpected behaviour (or even bugs!) in either the Markdown parser or the converter, so you definitely should check the output of the converter and probably edit it, too.