Mohit Patel
Mohit Patel

Reputation: 21

Mathjax library (MathView) is not rendering certain latex code (like matrix, unit vectors etc) in android,

here is the image link with three questions with 1st and 3rd being matrix and equation respectively Here is my latex code for a matrix :

\(\left| {\begin{array}{*{20}{c}}{3--x}&2&2\\2&{4--x}&1\\{--2}&{--4}&{--1--x}\end{array}} \right|\)

And latex code for equation with unit vector:

\(\mathop E\limits^ \to = ({E_0}\mathop i\limits^ \wedge + 2{E_0}\mathop j\limits^ \wedge )\) 

They work perfectly fine with angular 5 but not in android (MathView)

Upvotes: 0

Views: 304

Answers (2)

Mohit Patel
Mohit Patel

Reputation: 21

Finally I found the solution, all I had to do was mathView.setEngine(1). The default value for engine is 0 which is for KATEX and 1 is for MATHJAX.

Upvotes: 1

scraaappy
scraaappy

Reputation: 2886

The error message in the posted image comes from chunk.

Check if all {% exec %} blocks have their corresponding end marker {% endexec %}

Upvotes: 1

Related Questions