From 427dcbfa372574f69b85bf3c873195d23215c206 Mon Sep 17 00:00:00 2001 From: Cedric Date: Sun, 12 Jan 2025 15:17:12 +0000 Subject: [PATCH] Use a sans-serif math font for pgfplots 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... --- book/sourdough.sty | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/book/sourdough.sty b/book/sourdough.sty index fe2f1ca..d38a7cd 100644 --- a/book/sourdough.sty +++ b/book/sourdough.sty @@ -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