对比主流框架,先容如下几款
1、AndroidMath
官网:GitHub - gregcockroft/AndroidMath: Render beautiful LaTeX Math Equations in an Android View
基于android原生view方式渲染
长处:速率快,开源协议 MIT license
缺点:不支持笔墨+公式混淆渲染
2、MathView
官网:GitHub - jianzhongli/MathView: A library for displaying math formula in Android apps.
基于webview加载js的方式渲染,对MathJax和KaTeX的封装。
长处:支持笔墨+公式混淆渲染;Apache-2.0 license
缺点:异步渲染
3、MathJax
官网:GitHub - mathjax/MathJax: Beautiful and accessible math in all browsers
基于webview加载js的方式渲染,实用于必要处置惩罚复杂数学公式和高级功能的场景,如学术论文、技能陈诉等。
长处:支持笔墨+公式混淆渲染;Apache-2.0 license
缺点:异步渲染
4、KaTeX
官网:GitHub - KaTeX/KaTeX: Fast math typesetting for the web.
基于webview加载js的方式渲染,实用于必要快速渲染大量简朴或中等复杂度数学公式的场景,如博客文章、简朴网页等。
长处:支持笔墨+公式混淆渲染;Apache-2.0 license
缺点:异步渲染
5、jlatexmath-android
官网:GitHub - noties/jlatexmath-android: A Java API to render LaTeX
长处:基于原生方式渲染;支持笔墨+公式混淆渲染
缺点:开源协议 Unknown, GPL-2.0 licenses found