fast-reflexes / better-react-mathjax

MIT License
124 stars 16 forks source link

Error: Misplaced & #43

Closed dangdinhvan closed 1 year ago

dangdinhvan commented 1 year ago

I wrote the correct syntax of LaTeX but it shows as "Misplaced &". Input: ${{log }_{a}}left( b+1 ight)≤0$ but output: "Misplaced &". Please help!

image

fast-reflexes commented 1 year ago

Hi there!

&lt; is HTML, you need to use < like {{\\log}_{a}}\\left( b + 1 \\right) < 0

(also don't forget double escaping of the backslashes)

dangdinhvan commented 1 year ago

Hi there!

&lt; is HTML, you need to use < like {{\\log}_{a}}\\left( b + 1 \\right) < 0

(also don't forget double escaping of the backslashes)

in case less-than or equal to, i expect ${{\log }_{a}}\left( b+1 \right)≤0$. hope your help

fast-reflexes commented 1 year ago

Google is your friend: https://www.geeksforgeeks.org/inequalities-in-latex/

Will close this now :) Good luck! :)