加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

拷贝过来的latex源文件编译后出现错误“Runaway argument?  ! File ended&nb

(2017-06-21 16:09:53)
分类: latex相关
准备写个原来投过的论文,使用的latex模板是同一个。于是乎,把原先编译正确的latex源文件,拷贝过来,重新编译没想到出现了如下错误。

Runaway argument? 
File ended while scanning use of \@newl@bel. 
  
                \par  
l.8 \begin{document} 
                     
从网上找到了答案,已解决!非常感谢!
转载
http://blog.sina.com.cn/s/blog_631a4cc40101otu6.html
=====================================================
早上在修改编译论文时发现了这个问题,仔细检查代码并没发现错误,一时也找不到具体的解决办法。我一直以为是因为runaway argument的错误提示,可实际上就是因为aux文件没有完整输入,导致上次编译结束后aux文件的部分内容缺失。处理方法嘛,很简单。

解决方法:删除编译文件夹内.aux扩展名结尾的文件,重新用Latex命令进行编译,自动生成正确的aux文件,完成错误的修复。

注:如果还不好使,就把除.tex以外的文件均删除掉,如:.bbl,.blg,.dvi,.log等

英文原文见这里:

Solution to: File ended while scanning use of @writefile 

Recently came across this error in latex. This shows up every 
time I try to compile the code after I first saw this error and 
restarting my system or the latex editor did not help- 

> Runaway argument? 
> ! File ended while scanning use of @writefile. 
> par 
> l.110 begin{document} 


This error is seen typically because of an incomplete 
entry in the aux file and can be removed by 
deleting the file with .aux extension in the latex source. 
To re-generate these aux files “latex” needs to be run. 
Note – you have to run latex and not texify or any 
other tool. 

Good luck.

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有