michael-brade/LaTeX.js
Fork: 60 Star: 789 (更新于 2024-12-16 22:24:14)
license: MIT
Language: LiveScript .
JavaScript LaTeX to HTML5 translator
最后发布版本: v0.12.6 ( 2023-04-24 01:57:24)
LaTeX to HTML5 translator using a PEG.js parser
This is a LaTeX to HTML5 translator written in JavaScript using PEG.js.
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: http://latex.js.org/playground.html
Installation
For CLI usage install it globally:
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/
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-2021 Michael Brade
最近版本更新:(数据更新于 2024-09-03 02:24:09)
2023-04-24 01:57:24 v0.12.6
2020-06-08 07:08:52 v0.12.4
2020-06-06 23:00:12 v0.12.2
2019-08-02 05:22:11 v0.12.1
2019-06-23 21:00:40 v0.12.0
2018-09-12 07:02:11 v0.10.1
2018-09-20 08:41:36 v0.11.0
2018-06-02 20:38:18 v0.10.0
2018-02-18 06:04:48 v0.9.2
2018-02-07 05:16:34 v0.9.1
主题(topics):
html5, javascript, js, latex, latex2html, parser, pegjs, tex, translator, webcomponent
michael-brade/LaTeX.js同语言 LiveScript最近更新仓库
1970-01-01 00:00:00 gkz/LiveScript