LaTeX问题File ended while scanning use of @writefile
问题描述:File ended while scanning use of @writefile.
我的解决方法,在Mac系统下重新安装了MacTex2018,然后编译之后,问题就自动解决了。
在网上搜索的办法并没有解决问题:
-
https://www.jianshu.com/p/b92fff3e9742?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation 给出了编译报出:File ended while scanning use of @writefile. 错误我一直以为是哪里有{}不对等导致的,仔细检查并未发现!真实原因:实际上就是因为aux文件没有完整输入,导致上次编译结束后aux文件的部分内容缺失。处理:删掉原来的.aux文件即可解决!再次编译就通过了。
-
https://blog.csdn.net/kebu12345678/article/details/79301284给出了解决方法:删除编译文件夹内.aux扩展名结尾的文件,重新用Latex命令进行编译,自动生成正确的aux文件,完成错误的修复。
-
英文原文见这里:
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.