All Projects → oerpub → mathconverter

oerpub / mathconverter

Licence: MIT license
Converts from AsciiMath, LaTeX, MathML to LaTeX, MathML

Programming Languages

XSLT
1337 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to mathconverter

react-mathjax-preview
The MathJax React component you were looking for.
Stars: ✭ 46 (+31.43%)
Mutual labels:  mathjax, mathml, asciimath
mathup
Easy MathML authoring tool with a quick to write syntax
Stars: ✭ 46 (+31.43%)
Mutual labels:  mathml, asciimath
react-native-math-view
Math view for react native! No WebView!
Stars: ✭ 49 (+40%)
Mutual labels:  mathjax, mathml
Mathjax
Beautiful and accessible math in all browsers
Stars: ✭ 8,551 (+24331.43%)
Mutual labels:  mathjax, mathml
MathJax-dev
Build and release tools for the MathJax project
Stars: ✭ 34 (-2.86%)
Mutual labels:  mathjax, mathml
Asciidocfx
Asciidoc Editor and Toolchain written with JavaFX 16 (Build PDF, Epub, Mobi and HTML books, documents and slides)
Stars: ✭ 1,533 (+4280%)
Mutual labels:  mathjax, mathml
php2python
No description or website provided.
Stars: ✭ 19 (-45.71%)
Mutual labels:  converts
gedcom
👪 A Go library and CLI tools for encoding, decoding, traversing, merging, comparing, querying and publishing GEDCOM files.
Stars: ✭ 55 (+57.14%)
Mutual labels:  converts
keisan
A Ruby-based expression parser, evaluator, and programming language
Stars: ✭ 48 (+37.14%)
Mutual labels:  equation
split-ease
The JavaScript Easing function with a beginning, middle and end
Stars: ✭ 55 (+57.14%)
Mutual labels:  equation
notes
Simple text editor for your Markdown and LaTeX notes.
Stars: ✭ 24 (-31.43%)
Mutual labels:  mathjax
ng-html-to-pdf-save
Save HTML as pdf file on the browser with angularjs .
Stars: ✭ 29 (-17.14%)
Mutual labels:  converts
md2gemini
File converter from Markdown to Gemini.
Stars: ✭ 128 (+265.71%)
Mutual labels:  converts
lambda2js
Converts a C# expression tree (from Linq namespace) to a syntatically correct javascript code.
Stars: ✭ 51 (+45.71%)
Mutual labels:  converts
SwiftyIllustrator
A tool for quickly converting Adobe Illustrator shapes into SwiftUI code.
Stars: ✭ 26 (-25.71%)
Mutual labels:  converts
Mathquill
Easily type math in your webapp
Stars: ✭ 1,968 (+5522.86%)
Mutual labels:  equation
stiff3
Adaptive solver for stiff systems of ODEs using semi-implicit Runge-Kutta method of third order
Stars: ✭ 13 (-62.86%)
Mutual labels:  equation
srcset.sh
A command line script that generates multiple responsive versions of an image at width breakpoints -- 320,480,640,768,960,1024,1280,1440 pixels wide -- that match common Mobile and widescreen desktop/laptop viewports using Imagemagick's convert utility and outputs the needed <img/> tag
Stars: ✭ 20 (-42.86%)
Mutual labels:  converts
Picture-To-Ascii
Converts a picture to Ascii.
Stars: ✭ 18 (-48.57%)
Mutual labels:  converts
FileConvert
Converts between file formats such as CSV and Parquet
Stars: ✭ 14 (-60%)
Mutual labels:  converts

Converter for AsciiMath, LaTeX & MathML equations

Converts from AsciiMath, LaTeX, MathML to LaTeX, MathML

utilizes MathMLCloud (for MathML output) and XSL transforms (for LaTeX output).

(Optional):

virtualenv env
. env/bin/activate

Install:

pip install -r requirements.txt

Usage:

./converter.py --help

Example

$ ./converter.py --equation "x^2" --iformat asciimath --oformat mathml

<math xmlns="http://www.w3.org/1998/Math/MathML" alttext="x squared">
  <mstyle displaystyle="true">
    <msup>
      <mi>x</mi>
      <mn>2</mn>
    </msup>
  </mstyle>
</math>

Known issues

Don't use bash shell confusing/specific signs like e.g. $$ or " in the commandline or escape them properly. If you're unsure how to do that, run the command without --equation like this:

$ ./converter.py --iformat asciimath --oformat mathml

it will prompt you for the equation that way.

Background information

For generating MathML it is using the public reachable MathMLCloud on https://api.mathmlcloud.org/equation which is utilizing a Node.js server version of Mathjax for generating output.

LaTeX is generated by XSLTs from MathML input.

A special case is the AsciiMath to LaTeX conversion. On the first step it generates MathML from MathMLCloud and then uses the XSLTs to generate LaTeX out of it.

MathML to LaTeX XSLTs available in this repo:

  • xsl_yarosh by Vasil Yaroshevich. Contains XSLT 1 transformation from MathML to LaTeX
  • xsl_transpect by transpect.io. Contains XSLT 2 transformations from MathML to LaTeX (not used currently)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].