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

Change font used in numbers #27

Open
TheHanziChauvanist opened this issue May 4, 2024 · 3 comments
Open

Change font used in numbers #27

TheHanziChauvanist opened this issue May 4, 2024 · 3 comments

Comments

@TheHanziChauvanist
Copy link

Good package, but need way to change the font used so that it may jibe well with the rest of the document.

@Alex-Muirhead
Copy link

I agree with this, even just having it be able to adapt to the surrounding text modifiers (i.e. bold or italics) would be extremely useful.

@MarkusFF
Copy link

MarkusFF commented Jun 6, 2024

Unify seems to use the maths font. You can change it:

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

However this is not a great workaround since most of the time (for me at least) values with units live in text world, and the choice of fonts in math world is significantly restricted. As far as I can tell, currently unify will produce jarring results if the text font is too different from available maths fonts.

@Patrik112358
Copy link

I've found a way to make this work and change the font only in unify functions (note that this does not change the font in normal equations):
image

Downside of this workaround is, that you have to apply this for every unify function you want to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants