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

期很多人问及这样的错误:
(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文件双向搜索的功能就没有了,但是运行没有问题。操作步骤如下:

LaTeX技巧502:一个近期频繁出现的错误PDFLaTeX <wbr>failed <wbr>to <wbr>create <wbr>a <wbr>pdf <wbr>file.--你的文件名有空格吗?
点击 PDFviewer选项卡。勾选掉图中选项即可。

LaTeX技巧502:一个近期频繁出现的错误PDFLaTeX <wbr>failed <wbr>to <wbr>create <wbr>a <wbr>pdf <wbr>file.--你的文件名有空格吗?


and  Enjoy your LaTeX!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值