michael-brade/LaTeX.js
关于
将 LaTeX 转换为 HTML5 的 JavaScript 转换器。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文LaTeX to HTML5 translator using a PEG parser
This is a LaTeX to HTML5 translator written in TypeScript, using a PEG parser generated by peggy.
latex.js for LaTeX is similar in spirit to marked for Markdown.
LaTeX.js tries to be absolutely and uncompromisingly exact and compatible with LaTeX. The generated HTML is exactly what is meant to be output, down to the last space. The CSS makes it look like LaTeX output—except where impossible in principle, see limitations.
You can play with it here: https://latex.js.org/playground.html
Installation
For CLI usage install it globally (it needs Node.js 22 or newer):
npm install -g latex.js
For library usage add it to your project:
npm install --save-prod latex.js
Documentation
You can find the full documentation on the website: https://latex.js.org/
To work on LaTeX.js itself, see Development.
Alternatives
If you need a LaTeX to HTML translator that also understands TeX to some extent, take a look at:
- TeX4ht (TeX)
- LaTeXML (Perl)
- LaTeX2HTML (Perl)
- HEVEA (OCaml)
- plasTeX (Python)
Update: sadly, those last two are nowhere near the quality of LaTeX.js.
There is no such alternative in JavaScript yet, though, which is why I started this project. I want to use it in my
derby-entities-lib project.
License
Copyright (c) 2015-2026 Michael Brade
探索相关项目
加载中…