I'm following asmeurer's solution on this thread (Converting latex code to Images (or other displayble format) with Python and everything worked fine will I tried to display a simple fraction like \frac{2}{3}.
Why am I getting a LaTex abnormally exit error if the LaTex code for the equation is right? It works fine as long as the LaTex code has a single line (I mean, everything is written side by side, once it has to be something written above something else... crashes)
This code works:
expr="r'$$\int_0^1 e^x\,dx$$"
preview(expr, viewer='file', filename='test.png', euler=False)
and produces this image:
But this code doesn't:
expr="$$\frac{2}{3}$$"
preview(expr, viewer='file', filename='test.png', euler=False)