Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Latest commit

 

History

History
83 lines (70 loc) · 2.26 KB

README.md

File metadata and controls

83 lines (70 loc) · 2.26 KB

Development discontinued here

The project is maintained actively at the following repository. https://github.com/geogebra/geogebra/tree/master/retex

ReTeX

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

Screenshots

Alt text

Alt text

Alt text

FAQ

Regarding JLaTeXMath’s Classpath Exception and JavaScript: If you use the Google Web Toolkit (GWT) to compile JLaTeXMath to an “executable” (in JavaScript) you can then include/link this “executable” JavaScript library on a website or inside another program. In this case the rest of the website/program need not be licensed under the GPL.