windows 10中使用latexdiff生成审阅版本tex文件
latex生成审阅版本的.tex文件编译过程中出现Missing \begin{document},出现该错误并不一定说明你的.tex文件缺少\begin{document},而是说明你的\begin{document}之前出现了一些编辑器(我用的是WinEdt)不认识的字符
@Override This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9) (preloaded format=pdflatex 2020.9.16) 20 OCT 2020 11:06 entering extended mode **C:/Users/HP/Desktop/article3/MarkRevision20201020/MarkedRevision20201020.tex (C:/Users/HP/Desktop/article3/MarkRevision20201020/MarkedRevision20201020.tex LaTeX2e <2011/06/27> Babel <v3.8m> and hyphenation patterns for loaded. ! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.1 ? - - c o d i n g : U T F - 8 - - ? ! Emergency stop. ... l.1 ? - - c o d i n g : U T F - 8 - - You're in trouble here. Try typing <return> to proceed. If that doesn't work, type X <return> to quit.在确认文件中没有乱码出现的情况下,在文本编辑器(我用的是utraEdit)中重新打开,复制重新粘贴到一个新的空白的.tex文件中即可。个人认为原因是windows系统写入生成的diff文件与winEdt的字符不兼容造成的,mac电脑和linux系统应该不会出现这种问题。