Skip to content

Repository files navigation

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:

PackageDescription
latex2jsCore LaTeX parsing and rendering engine with environment support
latex2html5Pure HTML5 implementation with automatic discovery and bundled JavaScript distribution
latex2reactReact components for LaTeX rendering with interactive graphics and mathematical notation
latex2vueVue.js components for LaTeX rendering with Composition API and SSR support

MathJax Integration

If you just want to render equations using MathJax:

PackageDescription
mathjaxjsPure HTML5 MathJax loading utilities for mathematical notation rendering
mathjaxjs-reactReact wrapper and provider for MathJax with modern hooks-based architecture

Advanced Packages

Internal utilities for extending functionality:

PackageDescription
@latex2js/utilsCore utilities for string processing, coordinate transformations, and SVG manipulation
@latex2js/settingsConfiguration management for PSTricks graphics settings and parameters
@latex2js/macrosComprehensive collection of LaTeX macro definitions for mathematical notation
@latex2js/pstricksPSTricks graphics engine with interactive elements and coordinate system support

Credits

As always, BIG thanks to MathJax

About

LaTeX web components

Resources

Stars

625 stars

Watchers

32 watching

Forks

Releases

Packages

Used by

Contributors

Languages