1

I'm trying to display a math formula written in LaTex in a webview, but i'm struggling with the character "\": I can't write "\" because is error, but if I use "\\" the app fails in rendering the formula.

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}\\]";

I'm using this question as a model: Display Good-looking Math Formula in Android

Any suggestion appreciated.

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115

1 Answers1

1

For everyone who has my own problem... I recently discoverd that there is a easier way to display math formulas with MathView. If anyone is interested: https://github.com/kexanie/MathView/blob/master/README.md