3

I want to use newtx to get a times font and have MaxTeX installed. However, when I put \usepackage{newtx}and \usepackage{newtxmath} at the top of my tex file I get the error

LaTeX Error: File `newtx.sty' not found.

Now, when I search for newtx in /usr/local/texlive I get a number of folders and files come up. However, if I search for newt.sty there are no results.

If you could suggest what the problem is here (I think it is installed, so I don't know why the style file cannot be found) and how to make it work I would be grateful. Happy to answer any questions that may help locate the problem.

  • 1
    It should be \usepackage{newtxtext}, not \usepackage{newtx} – egreg Sep 13 '17 at 11:31
  • Thanks! Can't believe it was that simple, the tutorial I read had just newtx as the command!? – FluidFox Sep 13 '17 at 12:08
  • The place of that tutorial is the waste basket. ;-) – egreg Sep 13 '17 at 12:17
8

Although the TeX Live/MiKTeX package corresponding to the NewTX fonts is called newtx, this is of no consequence on how you have to load the LaTeX package.

The unfortunate circumstance that we use the term ‘package’ with two different meanings sometimes leads to confusion. They're two distinct planes: TeX Live/MiKTeX package provide infrastructure that can contain LaTeX packages, sometimes several of them.

The correct call is

\usepackage{newtxtext}
\usepackage{newtxmath}

Better doing separate calls, because the latter package accepts options that are not valid for the former. However, if you need no special option for the latter package, you can also do

\usepackage{newtxtext,newtxmath}

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.