CTex cannot open TrueType font file for reading 简单的解决方法
2013-08-02 10:37
369 查看
在实验室安装CTex时,显示的错误如下:
!pdfTex error: pdflatex.exe (file simkai.ttf): cannot open TrueType font file for reading
==>Fatal error occurred, no output PDF file produced!
texify: pdffatex.exe failed for some reason (see log file).
……
PDFTeXify failed to create a pdf file.
For possible explainations start the command from the Command Promt...
很明显这是字体集出了问题,还会出现两种情况,可以进一步验证是否是字体集的问题:
【1】新建一个文件(路径或者文件名中带有中文),保存后输入一下代码:
\documentclass{article}
\begin{document}
hello,this is the first CTex!
\end{document}
编辑时会显示“系统找不到指定文件”的错误。这是因为字符集出现问题导致CTex无法识别中文,因此无法识别你的路径。
【2】新建一个文件(路径和文件名全部为英文),保存后输入如下代码:
\documentclass{article}
\begin{document}
hello,this is the first CTex!
\end{document}
【注意:上面的空格和标点都要是英文的】
看能否生成一个正确的pdf文件,如果不能,应该是其它地方出了问题。如果能,则可以继续做如下实验:将上面的代码改成这样:
\documentclass{article}
\begin{document}
hello ,world 你好!
\end{document}
【注意:上面的标点是中文的】
此时如果能生成的话,只会显示“ hello world”,而中文的不管你怎么改都不会显示。
我试验了一上午,看了很多的网页,有的说下载字体包,有的说要更新宏文件,试验了很多方法也不行,最后采用了一个最简单的方法:
【解决方法】在你的“C://windows//fonts//”目录下搜索“楷体”,看看是否有“楷体 常规”的文件,如果没有,好!到别人电脑里找找,如果有,直接将该文件拷到上面的目录中。结果问题就解决了。
!pdfTex error: pdflatex.exe (file simkai.ttf): cannot open TrueType font file for reading
==>Fatal error occurred, no output PDF file produced!
texify: pdffatex.exe failed for some reason (see log file).
……
PDFTeXify failed to create a pdf file.
For possible explainations start the command from the Command Promt...
很明显这是字体集出了问题,还会出现两种情况,可以进一步验证是否是字体集的问题:
【1】新建一个文件(路径或者文件名中带有中文),保存后输入一下代码:
\documentclass{article}
\begin{document}
hello,this is the first CTex!
\end{document}
编辑时会显示“系统找不到指定文件”的错误。这是因为字符集出现问题导致CTex无法识别中文,因此无法识别你的路径。
【2】新建一个文件(路径和文件名全部为英文),保存后输入如下代码:
\documentclass{article}
\begin{document}
hello,this is the first CTex!
\end{document}
【注意:上面的空格和标点都要是英文的】
看能否生成一个正确的pdf文件,如果不能,应该是其它地方出了问题。如果能,则可以继续做如下实验:将上面的代码改成这样:
\documentclass{article}
\begin{document}
hello ,world 你好!
\end{document}
【注意:上面的标点是中文的】
此时如果能生成的话,只会显示“ hello world”,而中文的不管你怎么改都不会显示。
我试验了一上午,看了很多的网页,有的说下载字体包,有的说要更新宏文件,试验了很多方法也不行,最后采用了一个最简单的方法:
【解决方法】在你的“C://windows//fonts//”目录下搜索“楷体”,看看是否有“楷体 常规”的文件,如果没有,好!到别人电脑里找找,如果有,直接将该文件拷到上面的目录中。结果问题就解决了。
相关文章推荐
- cannot open TrueType font file for reading错误解决方法[ubuntu]
- cannot open TrueType font file for reading错误解决方法[ubuntu]
- 关于fedora 17启动时显示cannot open font file true的解决办法
- 解决Critical error: #inport: Cannot open file "ns1.h" for reading.
- LINK : fatal error LNK: cannot open file "uafxcw.lib"的解决方法
- libpthread.so.0: cannot open shared object file解决方法
- fatal error C1083 Cannot open include file 'iostream.h' No such file or directory 的解决方法
- 安装oracle 10g遇到cannot open shared object file这个错误以及解决方法
- RAC srvctl 命令报 libpthread.so.0 cannot open shared object file No such file or directory 解决方法
- LINK : fatal error LNK1168: cannot open Debug/Test.exe for writing的解决方法
- ORACLE RAC之libpthread.so.0: cannot open shared object file解决方法
- error while loading shared libraries: libevent-1.3.so.1:cannot open shared object file :No such file or directory解决方法
- ORA-19573: cannot obtain exclusive enqueue for datafile XXX 解决方法
- error: #5: cannot open source input file "stm32f10x_conf.h": No such fi 解决方法
- nginx无法启动提示libpcre.so.1: cannot open shared object file的解决方法
- 解决Win7 Cannot open type library file: 'msxml.dll': No such file or directory
- VSS登陆 出错 Cannot find SS.INI file for user *** 解决方法
- Cannot open include file: 'iphlpapi.h': No such file or directory(最终解决方法)
- Cannot find SS.INI file for user *** 解决方法
- fatal error C1083:Cannot open source file: 解决方法