Im testing Sans Serif Fonts in a LuaLaTeX scrartcl document. I found out that with

        UprightFont={Source Sans Pro Light},
        BoldFont={Source Sans Pro Bold},
        ItalicFont={Source Sans Pro Italic},
        BoldItalicFont={Source Sans Pro SemiBold Italic}   
]{Source Sans Pro} 
\setmathfont{Source Sans Pro}[math-style=TeX]

I get the best results. But still all variables inside a \sqrt{xy} are black. Like black rectangles. Im testing now about 2h and didn't found another Sans Serif Font that works anyhow better...

Does anybody have me an advice how to make all work?


Probably you are looking for a package like mathastext.


  UprightFont={* Light},
  BoldFont={* Bold},
  ItalicFont={* Italic},
  BoldItalicFont={* Semibold Italic} 
]{Source Sans Pro} 





enter image description here

  • Yes. I still had the problem that with that package it made the math serif. I then copied it below the \setmainfont and then it worked. So it seams that it has to be executed after defining the font. Somehow that makes sense... - Thanks.
    – novski
    Dec 8 '16 at 14:04

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.