Skip to content

arkadiusz-ark/jlatexmath

 
 

Repository files navigation

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 :

  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<\code>, 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.

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

About

A Java API to render LaTeX

Resources

License

Unknown, GPL-2.0 licenses found

Licenses found

Unknown
LICENSE
GPL-2.0
COPYING

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 99.6%
  • Other 0.4%