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.
 
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM