# 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} – egreg Mar 7 '18 at 23:51
• @egreg, ohhh I never imagined that the order could be a solution. Simpler than this, impossible. – Sigur Mar 7 '18 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"? – user94293 Mar 8 '18 at 0:34
• @user94293, I think so. – Sigur Mar 8 '18 at 1:01
• @user94293 Yes, probably I inverted Sigur’s inversion and the inverted again… :-) – egreg Mar 8 '18 at 7:34