Code Monkey home page Code Monkey logo

Comments (7)

hvoss49 avatar hvoss49 commented on September 27, 2024

Where is the sense of defining mathversion=sans? Fira is by default sans serif.

\documentclass{article}
\usepackage{unicode-math}
\setsansfont{Fira Sans}
\renewcommand\familydefault{\sfdefault}
\setmathfont{Fira Math}

\begin{document}

	inline math: $\sqrt{a}$ $\sqrt{\frac{a}{b}}$.
	
	display math:
	\begin{displaymath}
		\sqrt{a}\sqrt{\frac{a}{b}}
	\end{displaymath}

\end{document}
Bildschirmfoto 2023-09-29 um 20 18 00

from firamath.

apoorvpotnis avatar apoorvpotnis commented on September 27, 2024

Where is the sense of defining mathversion=sans? Fira is by default sans serif.

\documentclass{article}
\usepackage{unicode-math}
\setsansfont{Fira Sans}
\renewcommand\familydefault{\sfdefault}
\setmathfont{Fira Math}

\begin{document}

	inline math: $\sqrt{a}$ $\sqrt{\frac{a}{b}}$.
	
	display math:
	\begin{displaymath}
		\sqrt{a}\sqrt{\frac{a}{b}}
	\end{displaymath}

\end{document}
Bildschirmfoto 2023-09-29 um 20 18 00

I don't know what OP's reasons are here for mathversion=sans, but I can imagine where two or more math fonts are used in a document. For example, serif math for normal text and sans serif in titles and section headers, or in figures.

from firamath.

fermifunktion avatar fermifunktion commented on September 27, 2024

Yes, mathversion=sans is a reminiscence of a larger file where I defined other math fonts in version 'sansbold' and 'bold'.
But again, following Herbert's suggestion and removing the definition of mathversion, the problem still exists.

For clearness: I do not use the font FiraMath-Regular.otf from Tex Live or the official GitHub source, but use the fonts built from source. Unfortunately, these built fonts show the behavior, and I do not understand the source so well to solve the problem on my own in changing the source code... 

from firamath.

hvoss49 avatar hvoss49 commented on September 27, 2024

can you provide your math font file for download?

from firamath.

fermifunktion avatar fermifunktion commented on September 27, 2024

This is the file I get after following the building rules (without the patch):
FiraMath-Regular.zip

from firamath.

hvoss49 avatar hvoss49 commented on September 27, 2024

For the symbols at the end of the file it looks completely different to the current FiraMath-Regular.otf from TL2023
It looks like a problem with the tools, but I am not sure.

from firamath.

hvoss49 avatar hvoss49 commented on September 27, 2024

I downloaded the source and created the fonts. Only FiraMath-Ultra.otf has no problem with the square root

from firamath.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.