Conversation
|
Is that only implemented for stix? Do dejavu & cm also need their own thing? |
|
Looks like dejavu and cm require their own mappings. |
| (['mathrm'], all), | ||
| (['mathbf'], all), | ||
| (['mathit'], all), | ||
| (['mathbfit'], all), |
There was a problem hiding this comment.
The comment just above this list says “Add new tests at the end.” Looking at the failing tests themselves, it looks like the images are numbered according to the index in the list. So I think you just need to move your new entry to the end of the list.
|
Thanks for this! I think it is a great addition! Some questions:
Note that apart from maybe the first bullet, these are not things that must be included in this PR. Just wanted to open the discussion. |
|
This is probably a good location to document it: |
|
Hi @oscargus, Thank you for the review! I have tried replying to your comments below:
|
|
I am not exactly sure how to add an alias for the And, I believe the |
I just checked the code and I do not think that there is an easy way to do that... Probably one will have to add a special command for this, both wrt parsing and a callback. |
|
@oscargus Per #19393 (comment), for consistency with latex, I think we should actually make |
|
I'm afraid I don't have the expertise to review this one. |
|
I think that the tutorial should be updated a bit further as discussed above (at least add it to the Stix section). I'm also wondering if Code-wise it looks good AFAICT. |
lib/matplotlib/mpl-data/matplotlibrc
Outdated
| ## settings which map a TeX font name to a fontconfig font pattern. (These | ||
| ## settings are not used for other font sets.) | ||
| #mathtext.bf: sans:bold | ||
| #mathtext.bfit:sans |
There was a problem hiding this comment.
| #mathtext.bfit:sans | |
| #mathtext.bfit: sans:italic:bold |
This is what I think is a more correct default.
oscargus
left a comment
There was a problem hiding this comment.
Just some minor details, but all-in-all looking good!
| @@ -0,0 +1,14 @@ | |||
| Bold-italic cmd ``\mathbfit`` | |||
There was a problem hiding this comment.
| Bold-italic cmd ``\mathbfit`` | |
| Bold-italic mathtext command ``\mathbfit`` |
| Bold-italic cmd ``\mathbfit`` | ||
| ----------------------------------------------------- | ||
|
|
||
| Supports use of bold-italic font style in Mathtext using the *\mathbfit{}* command: |
There was a problem hiding this comment.
| Supports use of bold-italic font style in Mathtext using the *\mathbfit{}* command: | |
| Supports use of bold-italic font style in mathtext using the ``\mathbfit{}`` command: |
| ``\mathfrak{Fraktur}`` :math-stix:`\mathfrak{Fraktur}` | ||
| ``\mathsf{sansserif}`` :math-stix:`\mathsf{sansserif}` | ||
| ``\mathrm{\mathsf{sansserif}}`` :math-stix:`\mathrm{\mathsf{sansserif}}` | ||
| ``\mathbfit{bolditalic}`` :math-stix:`\mathbfit{bolditalic}}` |
There was a problem hiding this comment.
| ``\mathbfit{bolditalic}`` :math-stix:`\mathbfit{bolditalic}}` | |
| ``\mathbfit{bolditalic}`` :math-stix:`\mathbfit{bolditalic}` |
|
Hi @oscargus, I have updated the PR with the suggestions. Please let me know if anything else needs to be updated. |
anntzer
left a comment
There was a problem hiding this comment.
Extremely minor nits, but otherwise lgtm.
|
Hi all! |


PR Summary
Fixes #19393
Adds support for bfit command in mathtext for bold italic
PR Checklist
Documentation and Tests
pytestpasses)Release Notes
.. versionadded::directive in the docstring and documented indoc/users/next_whats_new/.. versionchanged::directive in the docstring and documented indoc/api/next_api_changes/next_whats_new/README.rstornext_api_changes/README.rst