尝试使用mathjax显示数学公式的字符“\”

问题描述 投票:1回答:1

我正在尝试在webview中显示用LaTex编写的数学公式,但我正在努力处理字符“\”:我不能写“\”因为是错误,但如果我使用“\\”应用程序无法渲染公式。

url += "This is a display equation: $$P=\frac{F}{A}$$";

url += "This is also an identical display equation with different format:\\[P=\\frac{F}{A}\\]";

我正在使用这个问题作为模型:Display Good-looking Math Formula in Android

任何建议表示赞赏。

java android math formula mathjax
1个回答
1
投票

对于每个有我自己问题的人...我最近发现有一种更简单的方法可以用MathView显示数学公式。如果有人有兴趣:qazxsw poi

© www.soinside.com 2019 - 2024. All rights reserved.