-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Math equations do not render #1185
Comments
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
Also, when writing LaTeX equations in ReStructured Text, they do not start with the dollar sign, for example:
I add the center class for my equations to be centered. If that's not what you want, you can ignore the first line. |
Has this been fixed ? I am not able to render math equation. Will there be multiline support in future?
|
Thanks for sharing your experience. We'd be happy to review a pull request to add improvements in this area. |
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: