Describe possible need for loading the 'lmodern' package when using PGF files #20708
Conversation
Thank you for opening your first PR into Matplotlib! If you have not heard from us in a while, please feel free to ping You can also join us on gitter for real-time discussion. For details on testing, writing docs, and our review process, please see the developer guide We strive to be a welcoming and open project. Please follow our Code of Conduct. |
I would have thought(?) that this is rather a standard TeX limitation (https://texfaq.org/FAQ-boldgreek, https://tex.stackexchange.com/questions/595) and may not warrant a specific doc entry on our side? |
@anntzer Those links describe a related issue of |
I think the mystery here is what combination of factors do you need to trigger this problem. I've never come across a LaTeX install that requires |
On one hand, that we have this issue is super weird (and as discussed on gitter it seems to depend on which LaTeX engine you use) and may actually be caused by something inside of the pgf package. Given that this work around does fix the problem, I am in favor of including a note about this and opening a new issue in the spirit of "sort out when / why / if |
PR Summary
The PR adds a suggestion to use the
lmodern
package when using.pgf
files generated by Matplotlib. Changes are made both to a documentation page as well as the commented preamble printed in every generated.pgf
file.This was found to be necessary specifically in the case of a math-bold-faced, uppercase Greek letter 'delta' was not rendered when the
lmodern
package was not loaded.See discussion for more details:
https://matrix.to/#/!BXmyZMTnRjWJldDRLV:gitter.im/$M7KxLQuyUosx2byFxIsKJE8QS_14NRiWqmmlb6nSIfE?via=gitter.im&via=matrix.org
PR Checklist
pytest
passes).flake8
on changed files to check).flake8-docstrings
and runflake8 --docstring-convention=all
).doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).