aJLaTeXMath 库 - 在 Android 操作系统中显示 LaTeX 命令。
aJLaTeXMath Library - Displays LaTeX commands.
Russian bank card: 4817 7601 3803 3687
I find this page and think, why not?
aJLaTeXMath is an fork with a lot of modifications to support jlatexmath in Android OS.
Minimal SDK is 9. Tested on Android 2.3.4, 4.0.2, 4.4.4 and 5.0.1
© 2015 Maksim Bartosh
See AUTHORS file for all contributors' information.
Assets not support in android library. This project is a skeleton application.
To used JLaTeXMath need init it by command:
AjLatexMath.init(context); \\ init library: load fonts, create paint, etc.To compilite math formula used TeXFormula class:
TeXFormula formula = new TeXFormula(formulaString);To create bitmap used TeXIcon class:
TeXIcon icon = formula.new TeXIconBuilder()
.setStyle(TeXConstants.STYLE_DISPLAY)
.setSize(12)
.setWidth(TeXConstants.UNIT_PIXEL, 100, TeXConstants.ALIGN_LEFT)
.setIsMaxWidth(true)
.setInterLineSpacing(TeXConstants.UNIT_PIXEL,5).build();
icon.setInsets(new Insets(5, 5, 5, 5));
Bitmap image = Bitmap.createBitmap(icon.getIconWidth(), icon.getIconHeight(),Config.ARGB_8888);
Canvas g2 = new Canvas(image);
g2.drawColor(Color.WHITE);
icon.paintIcon(g2, 0, 0);android-support-v4.jar not must field. You can delete this lib.
…See you again, dude:) 2015.
暂无开放 Issues,或尚未同步最近议题。