Eugenio Anselmino
Eugenio Anselmino

Reputation: 145

Struggle with character "\" trying to display math formulas with mathjax

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.

Upvotes: 1

Views: 141

Answers (1)

Eugenio Anselmino
Eugenio Anselmino

Reputation: 145

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

Upvotes: 1

Related Questions