-
-
Notifications
You must be signed in to change notification settings - Fork 648
Use LaTeX commands instead of Unicode characters #40589
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
base: develop
Are you sure you want to change the base?
Conversation
Documentation preview for this PR (built with commit 389559a; changes) is ready! 🎉 |
71eb6b3
to
916ea36
Compare
916ea36
to
389559a
Compare
Some of this is definitely good, like the change from For things like What commands exactly did you run to build the PDF doc? I've always had trouble with the Sage docbuild, especially with meson. |
I have troubles too. See #40290 . Would be nice if someone contribute to https://doc.sagemath.org/html/en/developer/sage_manuals.html to explain more clearly what needs to be done, I guess. |
The official LaTeX team doesn't want to support it, see https://tex.stackexchange.com/a/628285/250119 section 2.2. We could just How about fixing this on IPython? |
actually Sage already have logic to deal with this: https://doc.sagemath.org/html/en/reference/misc/sage/misc/sagedoc.html You may try it out like this:
So the problem is not modify that module to also substitute Unicode characters. Anyway, out of scope for this pull request. |
The pdf build uses lualatex. Hence, the package |
Another issue is: MathJax does not support several Unicode characters e.g. In any case, everywhere else in the code base LaTeX commands are used. Discussion on whether to use unicode-math can be left for later. |
I agree with this sentiment of @vincentmacri. So maybe just leave the tau's and sigma's untouched in this PR, and see in a follow-up PR if unicode-math (perhaps with a different other font) solves the pdf issues? |
There's another option: use Also, there's the ². If you don't change it to ^2, it renders badly in the HTML also. At least everyone can agree to change that one right? |
Because PDF build does not handle Unicode characters correctly.
With this change, there should be less
in the documentation, but there are still some (that I cannot hunt down immediately).
📝 Checklist
⌛ Dependencies