2

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

How to set up accordingly?

enter image description here

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

1 Answer 1

4

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}

enter image description here

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,

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

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.