# Fira Math [![Build Status](https://github.com/firamath/firamath/workflows/build/badge.svg)](https://github.com/firamath/firamath/actions/workflows/main.yml) [![CTAN](https://img.shields.io/ctan/v/firamath.svg)](https://www.ctan.org/pkg/firamath) [![GitHub release](https://img.shields.io/github/release/firamath/firamath/all.svg)](https://github.com/firamath/firamath/releases/latest) Fira Math is a sans-serif font with Unicode math support. This font is a fork of - [FiraSans](https://github.com/bBoxType/FiraSans) - [FiraGO](https://github.com/bBoxType/FiraGO) ## Showcase
## Installation ### On your system Download `FiraMath-Regular.otf` from the [GitHub release](https://github.com/firamath/firamath/releases) page, then: - Windows 1. Quit related programs, e.g. Microsoft Word. 1. Double-click the font file to open it in the Font Previewer. 1. Click `Install` bottom to install. 1. You can also directly copy all the `.otf` font files into `%WINDOWS%\Fonts\` to install them. - macOS 1. Double-click on the font files in Finder. 1. It will open in the font previewer. Click Install Font. It will open in the Font Book. 1. Close the Font Book. The fonts should now be available. 1. Details can be found in [this article](http://support.apple.com/kb/HT2509). - Linux 1. Copy the `.otf` font files to your fonts directory. 1. Run `sudo fc-cache`. ### On the TeX distribution - If there are no special reasons, you should always install Fira Math via the package manager: - TeX Live: run `tlmgr install firamath` - MiKTeX: run `mpm --admin --install=firamath` Both distributions have GUI interfaces, you may enjoy them as well. - **[NOT RECOMMENDED]** Download `firamath.tds.zip` from [CTAN](https://ctan.org/pkg/firamath) or [GitHub release page](https://github.com/firamath/firamath/releases), extract it in the root of one of your TDS trees, then run `mktexlsr` and `fc-cache` to update the filename database and font cache. ## Usage Fira Math can be used in LaTeX, ConTeXt and Microsoft Word after installed on your OS (or the TeX distribution). ### LaTeX ```latex % Compiled with XeLaTeX or LuaLaTeX \documentclass{article} \usepackage{amsmath} \usepackage[mathrm=sym]{unicode-math} \setmathfont{Fira Math} \begin{document} \[ \int_0^{\mathrm{\pi}} \sin x \, \mathrm{d}x = 2 \] \end{document} ``` You may try the [`firamath-otf`](https://ctan.org/pkg/firamath-otf) package as well. - Thanks [Herbert Voß](https://github.com/hvoss49)! ### ConTeXt ```tex % Compiled with ConTeXt MkIV \definefontfamily [mainface] [rm] [FiraGO] % Require FiraGO fonts \definefontfamily [mainface] [mm] [Fira Math] \setupbodyfont [mainface] \starttext \startformula \int_0^{\mathrm{\pi}} \sin x \, \mathrm{d}x = 2 \stopformula \stoptext ``` See