lingarajsankaravelu / Katex

Android Katex library to render math Formula faster in android using khanacademy Katex
167 stars 38 forks source link

Katex fails to parse table commands #39

Open waleorchids opened 4 years ago

waleorchids commented 4 years ago

Let me begin by appreciating your effort on this library. Its one of the best MathView library for android. Thank you. But i observed that the library does not render table even with HTML tags. I am also using these commands below to create latex table \begin{tabular}{|l|c|c|c|c|c|c|c|} \hline Marks & 2 & 3 & 4 & 5 & 6 & 7 & 8 \ \hline No. of Students & 4 & 2 & 5 & 2 & 4 & 1 & 3 \ \hline \end{tabular}

Please help.

ratala1 commented 4 years ago

@lingarajsankaravelu I have the same issue

lingarajsankaravelu commented 4 years ago

@ratala1 wr u able to find a solution for this?

ratala1 commented 4 years ago

https://github.com/KaTeX/KaTeX/issues/267 Katex doesn't support this.

One solution would be to parse the data and create a html table before rendering.

waleorchids commented 4 years ago

hello and how are you?

I will recommend that you use array instead using the example below

\begin{array}{|c|c|c|} \hline \text{Set} & \text{Operation} & \text{Identity} \ \hline \mathbb{Z} & + & 0 \ \hline \mathbb{Q} & + & 0 \ \hline \mathbb{R} & + & 0 \ \hline \mathbb{Z} & \times & 1 \ \hline \mathbb{Q} & \times & 1 \ \hline \mathbb{R} & \times & 1 \ \hline \end{array}

Hope this helps?

Regards

On Thu, Jul 9, 2020 at 2:23 PM rajeswari ratala notifications@github.com wrote:

KaTeX/KaTeX#267 https://github.com/KaTeX/KaTeX/issues/267 Katex doesn't support this.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lingarajsankaravelu/Katex/issues/39#issuecomment-656124882, or unsubscribe https://github.com/notifications/unsubscribe-auth/APYPRJBX66IV2KDBYV7ZWTDR2XAGXANCNFSM4NOAYXWQ .