1
我想在ImageView中显示Android中的LaTex项目。我正在使用jlatexmath
库。到目前为止,我从公式中得到了TexIcon对象。现在我想在ImageView中显示该内容(或者任何地方,只需要在活动中显示它们)。一种方法是将其转换为位图或PNG,然后在ImageView
显示,但我不能TexIcon
转换为其他格式,这是我的java代码至今:在Android中显示LaTex
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
String math = "\\frac {V_m} {K_M+S}";
TeXFormula fomule = new TeXFormula(math);
TeXIcon ti = fomule.createTeXIcon(TeXConstants.STYLE_DISPLAY, 40);
}
我是比较新的LaTex,感谢先进!