Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add mappings for bold and italic cal font class#26419

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

Draft
devRD wants to merge1 commit intomatplotlib:main
base:main
Choose a base branch
Loading
fromdevRD:mt-calsyms

Conversation

devRD
Copy link
Contributor

@devRDdevRD commentedJul 31, 2023
edited
Loading

PR summary

Fixes#22056

PR checklist

@devRD
Copy link
ContributorAuthor

From the#22056 discussion, it seems usingplt.rcParams['font.weight'] = 'bold' seems to be problematic. Using the\mathbfit command to fetch the bold calligraphy fonts could be a way forward (?)

fontsets= ["dejavusans","dejavuserif","cm","stixsans","stix"]forx,fsinenumerate(fontsets):s="$\mathrm{%s}: \mathcal{ABCDE} \mathbfit{\mathcal{ABCDE}}$"% (fs)    ...

cal_bold

@devRD
Copy link
ContributorAuthor

devRD commentedAug 3, 2023
edited
Loading

Hi@ksunden, I investigated further on this issue and listing my findings on this:

References:

  • From my understanding, I think neitherDejaVu Sans norStix provides the boldmathcal Unicode. Although the Computer Modern font provides bold versions formathcal from thecmbsy10 font listedhere, integrating that results in the following:
    bold cal

However, it does not make much sense to add a new font just forComputer Modern, or to add theEuler-math font. So this issue could be closed as expected LaTeX behavior because default LaTeX does not seem to provide it simply either.
As a side note, I could add thecmbsy10 changes here as a reference for the user or maybe an example plot or something (?)

Some more useful references:
https://tug.org/TUGboat/tb33-3/tb105vieth.pdf
https://cs.brown.edu/about/system/managed/latex/doc/euler.pdf
https://tex.stackexchange.com/questions/580904/accessing-all-possible-math-styles-of-the-stix-font

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

[Bug]: \mathcal does not work when font.weight is "bold"
1 participant
@devRD

[8]ページ先頭

©2009-2025 Movatter.jp