Parse LaTeX
Output Readme Download Replit Sel. & Copy Full

About

This repl parses common LaTeX math syntax and outputs a string that is easier to postfix.

To view this on TripleLog, click here.

HTML

The HTML is a simple input/output to change a string of text.

CSS

Add CSS by editing the style.css file that is linked to in the head section or inline edit the style section in the head.

JavaScript

The script.js file parses some LaTeX like fractions, matrices, roots, and more. Try "⌊3.2⌋ + \begin{matrix}1 & 2\ 3 & 4\end{matrix} - \sqrt[2]{4}". A lot of LaTeX can easily be parsed without any special functions so this script is far from complete. You can add support for more syntax.