When we change fontfamily in an environment, the equations font does not change.
It makes the whole environment is asynchronous.
Please show me how to change the family font of the equation in this environment.
Thank you in advance.
This is my MWE
\documentclass[12pt]{article}
\usepackage[utf8]{vietnam}
%\usepackage{cmbright}
\newenvironment{note}{\par\noindent\fontfamily{pag}\selectfont}{}
\begin{document}
\noindent Normal text heigth equals to equations text $ \sqrt{x^2+y^2}=z $.
\begin{note}
Normal text heigth does not equal to equations text $ \sqrt{x^2+y^2}=z $.
\end{note}
\end{document}
Best Answer
With
mathastext
you may define a math font using\MTDeclareVersion[it]{pag}{T1}{pag}{m}{n}