LaTeX小技巧——File ended while scanning use of \@writefile錯誤的

早上在修改編譯論文時發現了這個問題,仔細檢查代碼並沒發現錯誤,一時也找不到具體的解決辦法。我一直覺得是由於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.
 
 
相關文章
相關標籤/搜索