Project

latexmath

0.01
No release in over 3 years
Low commit activity in last 3 years
There's a lot of open issues
Converts LaTeX math into MathML.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 2.13
 Project Readme

DEPRECATION NOTICE: This repository is no longer maintained. Please visit Plurimath for the latest updates and features.

latexmath

Gem Version Build Status Code Climate Pull Requests Commits since latest

Purpose

Ruby gem to translate LaTeX math into MathML. The MathML is supposed to be compliant with output of LaTeXML.

It also works in reverse by translating MathML into LaTeX code.

The LaTeX math syntax supports amsmath, array, split and pmatrix packages.

Note
Bolding, symbols like \backepsilon, equation alignment, are all supported.

Usage

require "latexmath"

latex = "$$f_i =  \sum_{j=1}^2 s_{ij} n_j \quad {\rm for} \quad i = 1,2$$"
mathml = Latexmath.parse(latex).to_mathml