Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tylerlong/asciimath-to-latex
AsciiMath to LaTeX converter
https://github.com/tylerlong/asciimath-to-latex
asciimath latex
Last synced: 28 days ago
JSON representation
AsciiMath to LaTeX converter
- Host: GitHub
- URL: https://github.com/tylerlong/asciimath-to-latex
- Owner: tylerlong
- Created: 2016-11-20T12:24:00.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-04-19T17:40:57.000Z (over 2 years ago)
- Last Synced: 2024-03-25T14:48:52.810Z (9 months ago)
- Topics: asciimath, latex
- Language: TypeScript
- Homepage:
- Size: 193 KB
- Stars: 24
- Watchers: 4
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AsciiMath to LaTeX converter
[AsciiMath](http://asciimath.org/) to [LaTeX](https://www.latex-project.org/) converter.
## Installation
```
yarn add asciimath-to-latex
```# Import
```ts
import asciimath2latex from 'asciimath-to-latex';
```OR
```javascript
const asciimath2latex = require('asciimath-to-latex').default;
```## Usage
```javascript
const asciimath = '2=(((3-x)xx2)/(3-x))'
console.log(`asciimath: ${asciimath}`)
const latex = asciimath2latex(asciimath)
console.log(`latex: ${latex}`)
```## Demo project
[demo project](https://github.com/tylerlong/asciimath-to-latex-demo)
## Credits
I forgot where I copied the original code from. It's probably [here](https://github.com/asciimath/asciimathml/blob/master/asciimath-based/ASCIIMathTeXImg.js).