TypeScript MIT

LaTeX2JS

LaTeX web components

M

Mathapedia

Dernière activité 25 août 2026
Mathapedia/LaTeX2JS

625

étoiles

71

forks

6

issues ouvertes

Ce README est souvent en anglais.

LaTeX2JS

LaTeX2JS

Author interactive math equations and diagrams online using LaTeX and PSTricks

Author real LaTeX+PSTricks in React, Vue.js, or pure HTML5.

Quick Start

Choose the package for your platform:

# For pure HTML5
npm install latex2html5

# For React
npm install latex2react

# For Vue.js
npm install latex2vue

Resources

Core Packages

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

MathJax Integration

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

Advanced Packages

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

Credits

As always, BIG thanks to MathJax

Projets similaires

Fast math typesetting for the web.

TypeScriptjavascriptkatexlatex
KKaTeX
20,4 k étoiles1,3 k

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.

TypeScript
JJames-Yu
12,3 k étoiles591

JavaScript LaTeX to HTML5 translator

TypeScripthtml5javascriptjs
Mmichael-brade
875 étoiles66