JLaTeXMath - A Java API to render LaTeX

JLaTeXMath - A Java API to render LaTeX

JLaTeXMath is a Java library. Its main purpose is to display mathematical formulas written in LaTeX. JLaTeXMath is the best Java library to display LaTeX code.

This library is used by numerous important projects like Scilab, Geogebra, Freeplane, Mathpiper, CaRMetal, Ultrastudio, etc.

You can now follow the development of JLaTeXMath or ask for questions or requests in using the mailing-list jlatexmath@lists.forge.scilab.org. The releases will be announced on it.

You can subscribe to this mailing-list by checking jlatexmath mailing list

The default encoding is UTF-8.

The most of LaTeX commands are available and :

  1. macros from amsmath and symbols from amssymb and stmaryrd;
  2. \includegraphics (without options);
  3. the TeX macro \over;
  4. accents from amsxtra package;
  5. the macros \definecolor, \textcolor, \colorbox and \fcolorbox from the package color;
  6. the macros \rotatebox, \reflectbox and \scalebox from the package graphicx;
  7. the most of latin unicode characters are available and cyrillic or greek characters are detected for the loading of the different fonts;
  8. the commands \newcommand and \newenvironment;
  9. the environments array, matrix, pmatrix,..., eqnarray, cases;
  10. the vertical and horizontal lines are handled in array environment;
  11. the commands to change the size of the font are available : \tiny, \small,...,\LARGE, \huge, \Huge,
  12. the fonts are embedded in the jar file to be used by fop 0.95 to generate PDF, PS or EPS (SVG export with shaped fonts works fine too). Since the version 0.9.5, the fop plugin is fully compatible with fop 1.0 and xmlgraphics 1.4;
  13. and probably other things I forgot...
There is no dependency and no external programs to install : JLaTeXMath is fully functional by itself.

Few examples are available in the source distribution, they show how to use JLaTeXMath and for developpers how to write new commands in using Java.

A first example :

a second one :

and a third one :

JLaTeXMath is used by Scilab to display formulas wrote in LaTeX in graphic windows :

JLaTeXMath is a fork of the excellent project JMathTeX.

Powered by InDefero,
a Céondo Ltd initiative.