Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a fix for an issue that started in astropy over here: astropy/astropy#3617
The gist of it is that there is no good way to represent an Angstrom symbol (Å) in "pure" LaTeX (meaning no extra packages), mathjax and matplotlib.
The example string
$\mathring{A} \stackrel{\circ}{A} \AA$
renders like:LaTeX:
MathJax:
matplotlib (prior to this PR):
With this PR, we add support for the
\mathring
command, and also fix\AA
so it is italic in order to match LaTeX.matplotlib, this PR, computer modern:
matplotlib, this PR, STIX:
matplotlib, this PR, STIX Sans (note that the STIX fonts don't have a sans-serif version of the Angstrom symbol. This isn't really a limitation we can address on the matplotlib side other than by some sort of special casing -- and there's a lot of symbols like that to special case):