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
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