我正在使用 moderncv 模板编写我的简历,这时出现了一个有关 fontawesome 的奇怪错误(我只粘贴日志的最后几行):
LaTeX Font Warning: Font shape `U/fontawesometwo/m/sl' undefined
(Font) using `U/fontawesometwo/m/n' instead on input line 94.
LaTeX Font Info: Try loading font information for OMS+lmr on input line 94.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\lm\omslmr.fd"
File: omslmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
)
LaTeX Font Info: Font shape `OMS/lmr/m/sl' in size not available
(Font) Font shape `OMS/lmsy/m/n' tried instead on input line 94.
Package Fancyhdr Warning: \footskip is too small (30.0pt):
Make it at least 51.952pt.
We now make it that large for the rest of the document.
This may cause the page layout to be inconsistent, however.
[1
{C:/ProgramData/MiKTeX/2.9/pdftex/config/pdftex.map}]
LaTeX Font Info: External font `lmex10' loaded for size
(Font) on input line 110.
LaTeX Font Info: External font `lmex10' loaded for size
(Font) on input line 110.
LaTeX Font Info: External font `lmex10' loaded for size
(Font) on input line 110.
Package Fancyhdr Warning: \footskip is too small (30.0pt):
Make it at least 51.952pt.
We now make it that large for the rest of the document.
This may cause the page layout to be inconsistent, however.
[2]
Package atveryend Info: Empty hook `BeforeClearDocument' on input line 162.
Package atveryend Info: Empty hook `AfterLastShipout' on input line 162.
(C:\Users\lmdam\Desktop\moderncv\cv.aux)
Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 162.
Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 162.
Package rerunfilecheck Warning: File `cv.out' has changed.
(rerunfilecheck) Rerun to get outlines right
(rerunfilecheck) or use package `bookmark'.
Package rerunfilecheck Info: Checksums for `cv.out':
(rerunfilecheck) Before:
(rerunfilecheck) After: 91D9B1A013BDBCD69BFACF90E673B69C;1735.
LaTeX Font Warning: Some font shapes were not available, defaults substituted.
)
Here is how much of TeX's memory you used:
19772 strings out of 493921
326644 string characters out of 3144876
404671 words of memory out of 3000000
22816 multiletter control sequences out of 15000+200000
73377 words of font info for 75 fonts, out of 3000000 for 9000
841 hyphenation exceptions out of 8191
48i,21n,49p,10379b,425s stack positions out of 5000i,500n,10000p,200000b,50000s
!pdfTeX error: pdflatex (file FontAwesome--fontawesometwo): Font FontAwesome--f
ontawesometwo at 600 not found
==> Fatal error occurred, no output PDF file produced!
我不知道这是什么意思,但我觉得问题与一些“奇特”字符有关。我在 .tex 文件的第 94 行唯一能发现的是š
。
我尝试删除该字符,但错误仍未消失。另外,这不是我简历的初稿,以前从未发生过此错误。也许这与我刚刚换用 Windows 10 有关,但无论如何,我希望有解决方案。
答案1
我在使用 FontAwesome 时也遇到了同样的问题,在安装新的 Windows 10、MiKTeX 2.9 和 TexStudio 时也遇到了很多困难。我还尝试了其他方法,例如运行initexmf --mkmaps
或initexmf --update-fndb
重新安装 MiKTeX 或使用 MPM 重新安装软件包,但都没有帮助。
以下是有效的方法:
miktex-makepk:无法创建 PK 字体 Alegreya-Regular-lf-t1--base
我Map Alegreya.map
将该帖子中的语句替换为Map FontAwesome.map
,然后C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\updmap.exe
在管理控制台中运行(不知道是否相关)。之后,我的文件使用 pdflatex 编译得很好。