latex编译报错:Font ntx-Regular- tlf-ot1r at 438 not found
在用TeXworks编译LaTeX时报如下错:
Sorry, but miktex-makepk did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:\Users\lzping\AppData\Local\MiKTeX\2.9\miktex\log\miktex-makepk.log
!pdfTeX error: miktex-pdftex.exe (file ntx-Regular-tlf-ot1r): Font ntx-Regular-
tlf-ot1r at 438 not found
==> Fatal error occurred, no output PDF file produced!
解决办法:
- win+R打开运行窗口,输入cmd进入命令行窗口
- cmd输入
initexmf -u
并回车 - cmd输入
initexmf --edit-config-file updmap
并回车 - 在打开的updmap.cfg文件后面添加
Map newtx.map
,保存并退出 - cmd输入
initexmf --mkmaps
并回车 - 重新编译letex文件