-
-
Notifications
You must be signed in to change notification settings - Fork 205
Option to use sans serif fonts for MathML #582
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I like it too. We may use it as default output and use the current serif font for output in TraditionalForm. |
|
I think the fraction doesn't look very good in Jupyter, unlike the traditional interface. It should have the same font size as the rest of the expression. In the traditional interface, the fraction bar seems a bit too think. There seems to be an option to control the fraction thinckess. |
|
Turns out the fraction size depends on the |
|
Looks better now 👍 |
| # #convert_box(boxes) | ||
| mathml = '<math>%s</math>' % xml # convert_box(boxes) | ||
| if True: # configuration to be defined | ||
| xml = '<mstyle mathvariant="sans-serif">%s</mstyle>' % xml |
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.
can we add this as a settings option. Perhaps XML_FONT = None by default.
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.
@poke1024 I belive this is the only thing preventing us from merging the PR (?)
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.
@GarkGarcia @sn6uv From a user standpoint, what is a "settings option" and how does one add this?
I like this feature.
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.
Please see PR #908
|
Would be possible to choose the output format as a command from inside Mathics? $UseSansserif=False; I will try to take this on the weekend. |
|
Good. The Mathematica way seems to be to do this as part of the web interface: https://community.wolfram.com/groups/-/m/t/402640 |
|
Not sure, but it seems that here: Mathics/mathics/web/media/js/mathics.js Line 233 in a2b7f78
a new line: is also necessary? |
|
@axkr It would be helpful if you could upload before and after screenshots. @mmatera I've been thinking about what you were saying about adding a |

I recently found that I like sans serif MathML fonts much better as they match the general Jupyter theme I use:
Maybe this is also interesting for #574, as this seems to use sans serif fonts for the code input? Here's what it looks like in the non-spiffified
mathicsserver:I wonder where this should be configured;
settings.pydoesn't seem a good place to me.