LatexFormulaConverter

simple command line tool for mathematical formula of latex

Installation

Add this line to your application's Gemfile:

gem 'latex_formula_converter'

And then execute:

$ bundle

Or install it yourself as:

$ gem install latex_formula_converter

Requirement

  • platex
  • dvipdfmx
  • imagemagick (if you want to convert from pdf to image)
    • with ghostscript

Usage

$ lfconvert "your mathematical formula"

e.g.

$ lfconvert "\sum_{i=1}^{\infty} \frac{1}{i^2}"

TODO

  • [x] fix adjustment of generated pdf's blank
  • [ ] fix \\'s handling. (Now, if you want to break line, you need to input \\\\ istead of \\)
  • [ ] activate some options
    • [ ] select output file type
    • [x] determine output file name

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/naoki-k/latex_formula_converter.