Skip to content

Commit

Permalink
Use a sans-serif math font
Browse files Browse the repository at this point in the history
pgfplots uses math fonts for graphs ticks... and it looks weird when
building sans serif.

Not sure Fira is necessarily a great choice with open-sans but we have
very little math so that should do...
  • Loading branch information
cedounet committed Jan 12, 2025
1 parent 92ff917 commit f01f339
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions book/sourdough.sty
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@
\DeclareRobustCommand\sbseries{\fontseries{sb}\selectfont}
% Fonts for accessibility
\ifdefined\isaccessible
\setmainfont{Open Sans}[
Scale=MatchLowercase]
\usepackage[mathrm=sym]{unicode-math}
\setmathfont{Fira Math}[Scale=MatchLowercase]
\setmainfont{Open Sans}[Scale=MatchLowercase]
\else
\setmainfont{TeX Gyre Pagella}[Scale=1.0] % Or Palatino Linotype, etc.
% TODO not available on github CI
Expand Down

0 comments on commit f01f339

Please sign in to comment.