You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of problem
Using math, it appears that there is a problem with the way that the string is processed within the function math_flowable.py.
I haven't been able to work out what the issue is (my Python isn't that great) but it has to do with the $ sign as far as I can tell.
ParseException: Expected end of text, found '$' (at char 0), (line:1, col:1)
[ERROR] math_flowable.py:109 Math error:
$\frac{q}{\sqrt{g H_{m 0}^{3}}}=0.011\left(\frac{H_{m 0}}{h
Have tried several math equations but none seem to render. They do render if they are marked for in-line.
🖥 Versions
0.101
python -V3.11.6
The text was updated successfully, but these errors were encountered:
awmp1
changed the title
Math formular that are not inline do not render
Math equations do not render
Jan 6, 2024
Thanks @awmp1 for the bug report. Can you give an example of a simple source file that produces this problem? The math support is far from perfect but we can take a look.
Hi @awmp1, I was looking for a similar issue with the equations not rendering in the newer versions of rst2pdf, but then I realized that I when I upgraded Python version recently, I didn't install matplotlib. Make sure you have it by running
pip install matplotlib
Also, when writing LaTeX equations in ReStructured Text, they do not start with the dollar sign, for example:
.. class:: center
.. math::
P = \sqrt {s * (s - a) * (s - b) * (s - c)}
I add the center class for my equations to be centered. If that's not what you want, you can ignore the first line.
Description of problem
Using math, it appears that there is a problem with the way that the string is processed within the function math_flowable.py.
I haven't been able to work out what the issue is (my Python isn't that great) but it has to do with the $ sign as far as I can tell.
ParseException: Expected end of text, found '$' (at char 0), (line:1, col:1)
[ERROR] math_flowable.py:109 Math error:
$\frac{q}{\sqrt{g H_{m 0}^{3}}}=0.011\left(\frac{H_{m 0}}{h
Have tried several math equations but none seem to render. They do render if they are marked for in-line.
🖥 Versions
0.101
python -V3.11.6
The text was updated successfully, but these errors were encountered: