tylerlong / asciimath-to-latex

AsciiMath to LaTeX converter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AsciiMath to LaTeX converter

AsciiMath to LaTeX converter.

Installation

yarn add asciimath-to-latex

Import

import asciimath2latex from 'asciimath-to-latex';

OR

const asciimath2latex = require('asciimath-to-latex').default;

Usage

const asciimath = '2=(((3-x)xx2)/(3-x))'
console.log(`asciimath: ${asciimath}`)
const latex = asciimath2latex(asciimath)
console.log(`latex: ${latex}`)

Demo project

demo project

Credits

I forgot where I copied the original code from. It's probably here.

About

AsciiMath to LaTeX converter


Languages

Language:TypeScript 99.7%Language:JavaScript 0.3%