Author interactive math equations and diagrams online using LaTeX and PSTricks
Author real LaTeX+PSTricks in React, Vue.js, or pure HTML5.
Choose the package for your platform:
# For pure HTML5
npm install latex2html5
# For React
npm install latex2react
# For Vue.js
npm install latex2vue
These are the main packages for rendering LaTeX content:
Package | Description |
---|---|
latex2js | Core LaTeX parsing and rendering engine with environment support |
latex2html5 | Pure HTML5 implementation with automatic discovery and bundled JavaScript distribution |
latex2react | React components for LaTeX rendering with interactive graphics and mathematical notation |
latex2vue | Vue.js components for LaTeX rendering with Composition API and SSR support |
If you just want to render equations using MathJax:
Package | Description |
---|---|
mathjaxjs | Pure HTML5 MathJax loading utilities for mathematical notation rendering |
mathjaxjs-react | React wrapper and provider for MathJax with modern hooks-based architecture |
Internal utilities for extending functionality:
Package | Description |
---|---|
@latex2js/utils | Core utilities for string processing, coordinate transformations, and SVG manipulation |
@latex2js/settings | Configuration management for PSTricks graphics settings and parameters |
@latex2js/macros | Comprehensive collection of LaTeX macro definitions for mathematical notation |
@latex2js/pstricks | PSTricks graphics engine with interactive elements and coordinate system support |
As always, BIG thanks to MathJax