# Operator font with newtx

I am using \usepackage{newtxmath,newtxtext}. But, \operatorname{} seems to use another font.

How to set up accordingly?

• \usepackage{newtxtext,newtxmath} Mar 7, 2018 at 23:51
• @egreg, ohhh I never imagined that the order could be a solution. Simpler than this, impossible. Mar 7, 2018 at 23:53

The correct order is the reverse, first newtxtext and then newtxmath.

\documentclass{article}
\usepackage{newtxtext,newtxmath}
\usepackage{amsmath}

\begin{document}

notations: $Y=N-\operatorname{int}(U)$

\end{document}


In newtxmath.sty we find

\DeclareSymbolFont{operators}{\tx@enc}{\rmdefaultB}{m}{n}


and \rmdefaultB is \rmdefault, which still is Computer Modern if newtxtext has not yet been loaded,

• Do you mean "if newtxtext has not yet been loaded"? Mar 8, 2018 at 0:34
• @user94293, I think so. Mar 8, 2018 at 1:01
• @user94293 Yes, probably I inverted Sigur’s inversion and the inverted again… :-) Mar 8, 2018 at 7:34