[Tex/LaTex] New font file not found with MiKTeX installation

fontslatin-modernlmmiktex

I am trying to use Latin Modern fonts in my document (using MikTeX in Windows 10, 64-bit). I have the following in my header:

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}

When I compile, I get the following warnings/errors:

"C:Program Files\MiKTeX 2.9\tex\latex\lm\omxlmex.fd")[1

pdflatex.exe (file pdftex.map): cannot open font map file

]

A couple of lines (and overfull boxes) later it gets to

miktex-makemf: The ec-lmri source file could not be found

miktex-makepk: The application file ttf2pk.exe could not be found

And the final error, which reads:

!pdfTeX error: pdflatex.exe (file ec-lmri12): Font ec-lmri12 at 600 not found

==> Fatal error occurred, no output PDF produced!

I take all of this to mean that I am somehow missing Latin Modern roman italics at 12 points. How do I install it? And why did the lm package not install it?

Best Answer

I was able to fix my problem, thanks to Problems with fonts. This appears to be a MiKTeX bug, as stated in that answer by Bernard: "As happens from time to time, MiKTeX's installation of the fonts doesn't update the postcript fonts database, in particular psfonts.map and its friends."

The solution that worked for met was to run (from the command prompt), in order:

updmap --admin

initexmf --admin --mkmaps.

Related Question