Giter Site home page Giter Site logo

temml's Introduction

Temml is a LaTeX-to-MathML JavaScript conversion utility. It is built to be lightweight.

Library Minified JavaScript + CSS
Temml 147 KB
MathJax 2.7.5 338 KB
KaTeX 280 KB
TeXZilla 168 KB

As a futher advantage, Temml can use local system fonts. The minimum Temml installation serves a font file that is only 12kb. Sadly, Chromium has some rendering bugs when using system fonts. It work better with the Latin Modern font, a 380 KB file.

Temml’s coverage of LaTeX functions is as good as MathJax, slightly better than KaTeX 0.16.0 and substantially better than TeXZilla. See a detailed coverage comparison.

Temml's test suite includes many rendered examples, including the Temml supported functions page and tests from Mozilla, Wikipedia, mhchem, and LaTeXML.

Temml's demonstration page is at https://temml.org/

Documentation can be found at:

Acknowledgements

I built Temml by:

  1. Forking KaTeX.

  2. Deleting half the code, removing the HTML parts and keeping the parser, the macro expander, and the MathML parts.

  3. Doing some code refactoring and many MathML bug fixes.

  4. Adding new functionality: upright lower-case Greek letters, \euro, \label{…}, \ref{…}, \prescript, \definecolor, xcolor color names, etc.

I wish to thank Khan Academy and the many volunteer KaTeX contributors. This library would not exist if KaTeX had not existed first.


Temml is released under terms of the MIT license

temml's People

Contributors

ronkok avatar traeblain avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.