Equation Formatter
Write an equation in a visual editor or in LaTeX, see whether it typesets, and copy the source into your manuscript.
Visual editor
Type LaTeX commands such as \alpha or \frac straight into the box, or press the keyboard icon for an on-screen maths keyboard.
Insert a matrix
LaTeX source
Preview
Your equation will be typeset here
It updates as you type and names the first error when the LaTeX does not typeset.
How to write and check an equation
Build the equation in whichever form suits you, see it typeset as you go, and take the LaTeX to your manuscript.
Write the equation
Type in the Visual editor, where \alpha, \frac, ^ and _ work as in LaTeX, or type and paste in LaTeX source. The two stay in step with each other.
Check the preview
The Preview typesets the source as you type. If it cannot, it names the first problem, such as a missing brace or an unknown command.
Add a matrix
Choose the rows, columns and brackets under Insert a matrix and press Add the matrix to the equation. It goes on the end, after an equals sign (or on its own if the equation is empty), with placeholder entries x_{11}, x_{12}, … to replace.
Copy the LaTeX
Copy LaTeX copies the source without the invisible placeholder characters the visual editor adds. Paste it inside an equation or align environment.
\newcommand of yours shows as an error here and still compiles in your document.