Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Add bfit bolditalic tex cmd#25359
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Is that only implemented for stix? Do dejavu & cm also need their own thing? |
Looks like dejavu and cm require their own mappings. |
@@ -151,6 +151,7 @@ | |||
(['mathrm'], all), | |||
(['mathbf'], all), | |||
(['mathit'], all), | |||
(['mathbfit'], all), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
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: |
devRD commentedMar 10, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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. |
oscargus commentedMar 17, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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
@@ -340,6 +340,7 @@ | |||
## 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
#mathtext.bfit:sans | |
#mathtext.bfit:sans:italic:bold |
This is what I think is a more correct default.
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Bold-italiccmd ``\mathbfit`` | |
Bold-italicmathtext 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Supports use of bold-italic font style inMathtext using the*\mathbfit{}* command: | |
Supports use of bold-italic font style inmathtext using the``\mathbfit{}`` command: |
@@ -220,6 +220,7 @@ | |||
``\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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
``\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. |
oscargus left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks!
A reminder to whoever may merge this to squash the commits. (@devRD if you know how to squash, please do.)
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
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
pytest
passes)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.rst
ornext_api_changes/README.rst