Skip to content

arnog/mathlive

Folders and files

NameName
Last commit message
Last commit date
Jun 7, 2024
Jul 17, 2024
May 9, 2021
Jan 23, 2025
Nov 11, 2024
Dec 10, 2024
May 27, 2021
Jun 2, 2024
Jan 23, 2025
Nov 11, 2020
Jan 23, 2025
Jan 23, 2025
Apr 5, 2021
Nov 16, 2023
Dec 12, 2019
Feb 14, 2024
Jul 18, 2019
Nov 13, 2020
Jun 19, 2017
Jan 23, 2025
Jan 22, 2020
Jul 16, 2024
Jun 13, 2017
Jan 21, 2025
Apr 4, 2021
Apr 5, 2023
Jan 23, 2025
Jan 27, 2025
Apr 5, 2023
Feb 14, 2024
Jul 13, 2023
Dec 3, 2023
May 22, 2024

Repository files navigation

math live

MathLive

A Web Component for Math Input

Maintenance GitHub license

MathLive is a powerful web component that provides an easy-to-use interface for editing math formulas.

With over 800 built-in LaTeX commands, MathLive renders beautiful, TeX-quality typesetting.

It's designed for mobile devices with an extensive set of virtual keyboards for math input, and is compatible with screen readers, including custom math-to-speech support for improved accessibility.

MathLive outputs to LaTeX, MathML, ASCIIMath, and MathJSON formats, making it incredibly versatile.

And the best part? It's easy to customize to your needs!

The popover panel A Virtual Keyboard
The Loop Equation

πŸš€ Getting Started

Using MathLive is easy! Simply add a <math-field> tag to your page. It initializes automatically and works just like a <textarea> or <button> element. You can manipulate the mathfield using methods of the element and listen for events to be notified when its internal state changes.

npm install mathlive

import 'mathlive';
<!DOCTYPE html>
<html lang="en-US">
  <body>
    <math-field>f(x)=</math-field>
  </body>
</html>

You can also add it using CDN

<head>
    <script src="https://unpkg.com/mathlive"></script>
</head>

Check documentation for React and interaction with Mathfield.

πŸ“– Documentation

MathLive has an extensive set of documentation to help you get started, including guides on interacting with a mathfield, customizing it, executing commands, defining custom LaTeX macros, managing inline and keyboard shortcuts, controlling speech output, and displaying static math formulas. You can find all of these guides on the CortexJS.io website.

In addition to the guides, you can also find reference documentation of the MathLive API on the MathLive SDK page.

FAQ

Q: When is the next release?

MathLive follows a semi-annual release cycle, with major releases typically scheduled for June and January. These may be followed by patch releases to address any issues that arise shortly after deployment. Additionally, an out-of-band release can be made if requested by a sponsor or if a community member submits a pull request and requests a release to include their contribution.

β‹― Related Projects

MathJSON (on GitHub)
A lightweight data interchange format for mathematical notation.
Compute Engine (on GitHub)
The CortexJS Compute Engine performs calculations on MathJSON expressions
Cortex (on GitHub)
Cortex is a programming language for scientific computing

πŸ’¬ Contact Us

πŸ“ƒ License

This project is licensed under the MIT License.