This project is a fork of the original JLaTeXMath (http://forge.scilab.org/index.php/p/jlatexmath/), refactored to be used through different platforms, such as desktop, android and web (using GWT).
##Include in your project ###Using gradle ####Desktop
dependencies {
compile project(':renderer:desktop')
}####Android
dependencies {
compile project(':renderer:android') // for android API 7 and up
}####GWT Web application
dependencies {
compile project(':renderer:web'),
project(':renderer:share'),
files(project(':renderer:web').sourceSets.main.allSource.srcDirs),
files(project(':renderer:share').sourceSets.main.java.srcDirs)
}{AppName}.gwt.xml
<module>
...
<inherits name='com.himamis.retex.renderer.web.JLaTeXMathGWT'/>
...
</module>####Web application
Grab the folder from renderer/web/dist. For examples please see renderer/web/war
##Usage
Before using the API, set the platform dependent factory instance.
Android
FactoryProvider.INSTANCE = new FactoryProviderAndroid(getAssets());Desktop
FactoryProvider.INSTANCE = new FactoryProviderDesktop();GWT Web application
FactoryProvider.INSTANCE = new FactoryProviderGWT();For details of the original API please see http://forge.scilab.org/index.php/p/jlatexmath/.
Web application
jlmlib.drawLatex(options)
For parameters, please see renderer/web/war/index.html
