fast-reflexes / better-react-mathjax

MIT License
132 stars 16 forks source link

How to align mathjax to the left? #36

Closed nioclass closed 1 year ago

nioclass commented 1 year ago

I am unable ot figure out how to set the mathjax equation aligned to the left instead of being centre aligned. Any info would be helpful.

tanmayaBiswalOdiware commented 1 year ago

Hello there, I happen to know one solution atleast.

image

If I had to figure out the solution, I would just go for the CSS property here. Just set it to 'left' and you are gold. Perhaps there is a more official API, but I have not seen that yet.

fast-reflexes commented 1 year ago

You can impact this on two basic levels:

The rest is just a matter of where you place your MathJax element like any HTML.

fast-reflexes commented 1 year ago

Will close this one, feel free to open it if you feel something is wrong.