I want to use the FiraSans
font as main text font and the newtx
as the math font in my pgfplots figure. Because the data file contains much points I use the lualatex
as the compiler for it can dynamically adjust the memory, here is the mwe
\RequirePackage{luatex85}
\documentclass[tikz,12pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usepackage[sfdefault,scaled=.85]{FiraSans}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amsthm}
\usepackage[cmintegrals]{newtxsf}
\begin{document}
test
\[
a^2+b^2=c^2
\]
\end{document}
But the font package seems not work well.
The text and the figures is still in the cm style. If I use
pdflatex
all is right. Two warning informations appear when I use lualatex
LaTeX Font Warning: Font shape `T1/FiraSans(0)/m/n' undefined(Font)
LaTeX Font Warning: Some font shapes were not available, defaults substituted.
How can I use the font package with the lualatex
?