Skip to content

Commit

Permalink
Use a sans-serif math font for pgfplots
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 18, 2025
1 parent c3904d2 commit 427dcbf
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 427dcbf

Please sign in to comment.