noties / jlatexmath-android

A Java API to render LaTeX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JLatexMath Android

This is a fork of jlatextmath project that brings rendering of LaTeX math to Android. Fork tries to keep as close as possible to the parent project by mimicking java.awt.* package classes.

Installation

jlatexmath-android jlatexmath-android-font-cyrillic jlatexmath-android-font-greek

implementation 'ru.noties:jlatexmath-android:${version}'

// for Cyrillic symbols
implementation 'ru.noties:jlatexmath-android-font-cyrillic:${version}'

// for Greek symbols 
implementation 'ru.noties:jlatexmath-android-font-greek:${version}'

Screenshots

Other screenshots can be found ./app/screenshots folder

Usage

final JLatexMathDrawable drawable = JLatexMathDrawable.builder(latex)
        .textSize(70)
        .padding(8)
        .background(0xFFffffff)
        .align(JLatexMathDrawable.ALIGN_RIGHT)
        .build();
<ru.noties.jlatexmath.JLatexMathView
    android:id="@+id/j_latex_math_view"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:padding="16dip"
    android:background="@color/white"
    app:jlmv_alignVertical="center"
    app:jlmv_alignHorizontal="center"
    app:jlmv_textSize="16sp" />

Licence

GNU GENERAL PUBLIC LICENSE Version 2, June 1991

About

A Java API to render LaTeX

License:Other


Languages

Language:Java 99.2%Language:C++ 0.3%Language:Eiffel 0.2%Language:Makefile 0.1%Language:XSLT 0.1%Language:Shell 0.0%