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 are 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 :
- macros from amsmath and symbols from amssymb and stmaryrd;
\includegraphics
(without options);- the TeX macro
\over
; - accents from amsxtra package;
- the macros
\definecolor
,\textcolor
,\colorbox
and\fcolorbox
from the package color; - the macros
\rotatebox
,\reflectbox
and\scalebox
from the package graphicx; - the most of latin unicode characters are available and cyrillic or greek characters are detected for the loading of the different fonts;
- the commands
\newcommand
and\newenvironment
; - the environments
array<\code>,
matrix
,pmatrix
,...,eqnarray
,cases
; - the vertical and horizontal lines are handled in array environment;
- the commands to change the size of the font are available :
\tiny
,\small
,...,\LARGE
,\huge
,\Huge
, - 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;
- 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.
To build the jlatexmath library just type ant...
The default task is "buildJar", the others are:
- source;
- plugin;
- embedded;
- src-all;
- plugin-src;
- clean;
- minimal (for GeoGebra or web applications), dist/jlatexmath-minimal.zip will be created
For the moment, the doc is very poor ... It will come in the future ...
But some examples are provided to show how to use easily the library.
Have fun and if you meet any problem, don't hesitate to create a new issue on github