TeXShop, TeX Live, IEEEtran & Fonts (Oh dear!)

Hopefully this will help somebody else avoid the ‘fun’ of trying to track down why, exactly, LaTeX has suddenly gotten cranky, and (under OSX) the TeXShop ‘typeset’ command suddenly started dying miserably with:

pathsea: Running mktexmf ptmr7t
! I can't find file `ptmr7t'.
<*> ...:=ljfour; mag:=1; nonstopmode; input ptmr7t

Please type another input file name
! Emergency stop.
<*> ...:=ljfour; mag:=1; nonstopmode; input ptmr7t

A few quick basics — I’m running TeXShop as my front end, with the handy BasicTeX package (discussed halfway down the page) for a lightweight TeX backend on OS X 10.4.11.

It’s a bit embarrassing to admit that I hadn’t noticed that there was an issue with generating pdfs from TeXShop until some well intentioned directory cleanup. It appears that TeXShop will cheerfully show you an existing pdf by the appropriate name if one exists, and it can’t actually typeset the new version… sans error!

Once I’d discovered that there was a problem, the yak shaving began. Skipping over the chasing faint hints and vague suggestions, I found the following:

  • IEEEtran clearly included something problematic
  • This debian bug report which pointed out that the ‘ptmr7t’ font wasn’t included in the base TeX Live install.
  • An exceedingly simple document resulted in the failure:
        \documentclass{article}
          \usepackage{times}
          \title{Brief Article}
          \author{The Author}
          \begin{document}
          \maketitle
          This is a test!
        \end{document} 
  • It’s bloody hard to find what’s actually missing.

As it turns out, the problem seems to be that the PSNFSS macros only included the font description (.fd) and style (.sty) files … which wouldn’t matter if the psnfss definitions weren’t used for a number of basic things, including various math functions.

You can download the whole PSNFSS package — but the missing fonts for ptmr7t et al were in lw35nfss.zip.

From there, I extracted the fonts, and:

  • Copied the extracted fonts from ./psnfss/fonts/[vf|tfm] over to $texlive/…/texmf-dist/fonts/[vf|tfm]
  • Ran ‘texhash’ and ‘mktexlsr’ (it’s possible that I only needed one or the other, but I wasn’t about to try and break things again, just to see)

Hope that helps… or at least reduces your yak shaving!

6 Responses to “TeXShop, TeX Live, IEEEtran & Fonts (Oh dear!)”

  1. Electron Says:

    Thanks for posting this solution! I was having the same problem and this was the only post I found.

  2. losorio Says:

    Thanks! This worked for me too. This is the best solution I found :D
    I only installed the missing fonts for ptmr7t

  3. Yuemx Says:

    Thank you very much! A friend of mine had this problem and your post solved everything smoothly :)

  4. Guido Says:

    Very nice! it absolutely works for me!
    Thank you!

  5. karl berry Says:

    BasicTeX is, well, basic. It doesn’t include the PostScript fonts. To get those (and others), run “sudo tlmgr install collection-fontsrecommended”.

    I haven’t tested it, but it is possible that “sudo tlmgr install times” will also do this particular job. I’m interested to hear the results if someone tries it.

    texhash and mktexlsr are just two different names for the same program. You only need to run one or the other, not both. Not that it hurts.

    Finally, I feel I should mention that the problem is nonexistent for those installing the full MacTeX, which includes everything.

    Happy TeXing,
    karl

  6. Martin Says:

    Thanks, very helpful!

Leave a Reply