-
Notifications
You must be signed in to change notification settings - Fork 50
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 expression rendered as "\[a^2 + b^2 = c^2\]" in pdf file #272
Comments
Thanks for reporting! |
BTW, it works fine when using "pure" Latex... BUT.... the generated doc is a pure typical latex document (somehow black&white, no graphic, ...).... |
I am unsure what is |
That's an extension to build a PDF from the doc |
Thanks for reporting this! Indeed, it was a problem. I did my usual and asked "what does jupyter-book" do and found an issue that was fixed by this: https://github.com/executablebooks/jupyter-book/pull/1774/files This is the current extension we use to make a pdf (using pyppeteer, which from my investigation seemed similar to weasyprint) https://pypi.org/project/sphinx-pyppeteer-builder/ - it seems to be the same spirit as simplepdf: renders HTML and then using a headless browser to make a PDF out of it. But it seems more true to the original style than simplepdf. I tried to modify sphinx_pyppeteer_builder with the jupyter-book fix, and it didn't work. sphinx-simplepdf doesn't currently work either, but a fix is added using imgmath (and I pointed out the other fix): useblocks/sphinx-simplepdf#86 So with this... I guess let's see what happens with the two builders and adjust to the one that can work most easily. Thanks for the report! I hope it can be fixed soon, somehow. (for others testing: $ pip install https://github.com/useblocks/sphinx-simplepdf/archive/main.zip
$ make simplepdf and check the output in _build/simplepdf |
Hi,
It looks like the pdf generation does not work properly with math expression.
The lesson.pdf file contains "[a^2 + b^2 = c^2]" instead of the "real" math expression.
Fred
The text was updated successfully, but these errors were encountered: