I would like to use my selected sans serif font in place of my mathfs fonts. I know that there are so called mathversions which define different types of characters (letters, symbols, etc). I would be satisfied if I could set the basic Latin alphabetical math sans serif characters the same as my default text sans serif font. Is it possible, how?

  • If David Carlisle's answer does not solve the problem, please post a minimal working example (MWE) which shows the font configuration you are using. We do not even know if you are using (pdf)TeX or Lua/XeTeX or which font or in which encoding(s).
    – cfr
    May 13, 2014 at 23:08
  • His solution is working perfectly in my configuration (using pdflatex, Latin-1 encoding, and tex gyre fonts).
    – bcsikos
    May 14, 2014 at 9:30

1 Answer 1


\mathsf is defined by

\DeclareMathAlphabet      {\mathsf}{OT1}{cmss}{m}{n}

so you just need


with cmss replaced by the LaTeX font family name of the font you want.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.