您的位置:首页 > 大数据 > 人工智能

一个近期频繁出现的错误PDFLaTeX failed to create a pdf file.--你的文件名有空格吗?

2012-03-19 17:39 1216 查看
期很多人问及这样的错误:

(C:\CTEX\MiKTeX\tex\latex\base\article.clspdflatex.exe: Invalid argument: new*name.synctex(busy)

pdflatex.exe: Data: new*name.synctex(busy)

PDFLaTeX failed to create a pdf file.

For possible explanations start the command from the Command Prompt...

或者

(C:\CTEX\MiKTeX\tex\latex\base\article.clslatex.exe: Invalid argument: new*name.synctex(busy)

latex.exe: Data: new*name.synctex(busy)

LaTeX failed to create a dvi file.

For possible explanations start the command from the Command Prompt...

【问题解析】

这不是TeX自身的问题,而是MIKTeX的.synctex问题,Synctex好像非常讨厌文件名里的空格。可以关注其官网是否会修复这个问题。

参考:http://comments.gmane.org/gmane.editors.winedt/4966

http://sourceforge.net/tracker/index.php?func=detail&aid=2101871&group_id=10783&atid=110783

【解决方案】

第一,命名源文件不要带空格即可。这个容易做到。

第二,若是觉得上面解决不好,那就取消Synctex,这样的话pdf文件双向搜索的功能就没有了,但是运行没有问题。操作步骤如下:





点击 PDFviewer选项卡。勾选掉图中选项即可。





and Enjoy your LaTeX!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐