Skip to content
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

How to change math font? #11

Closed
vultix opened this issue Jul 26, 2023 · 2 comments · Fixed by #15
Closed

How to change math font? #11

vultix opened this issue Jul 26, 2023 · 2 comments · Fixed by #15
Labels
bug Something isn't working

Comments

@vultix
Copy link

vultix commented Jul 26, 2023

I'm trying to switch my math font to use firamath: https://github.com/firamath/firamath

I have installed firamath locally to my system, enabled "Search System Fonts", and reloaded the plugin.

My math block preamble contains this line:

#show math.equation: set text(font: "Fira Math")

My code blocks look broken however:
image

I've tried many different math fonts, and there doesn't appear to be any change. Any suggestions?

@fenjalien
Copy link
Owner

Your font issue is entirely my fault, I missed out the line that gets the system fonts sorry about that. By the way the you don't need a show rule for equations in the math preamble as it only gets prepended to math blocks. It won't affect code blocks.

Why your code block looks like that I do not know with out your source.

@fenjalien fenjalien added the bug Something isn't working label Jul 27, 2023
@fenjalien
Copy link
Owner

Latest version (0.5.1) should renable loading of system fonts. I've improved the method/ui as well.

also I was wrong you do need a show rule to set the math font...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants