MiKTeX 无法编译

MiKTeX 无法编译

MiKTeX 停止编译。最初只有 pdfLaTeX + MakeIndex + BibTeX 无法工作,pdfLaTeX 工作正常。我尝试完全重新安装,现在什么都不起作用了(包括 LuaLaTeX 和 XeLaTeX)。

以下是日志。

2020-07-13 22:59:00,273-0400 ERROR texify.core - Function: CopyFileW
2020-07-13 22:59:00,273-0400 ERROR texify.core - Result: 5
2020-07-13 22:59:00,273-0400 ERROR texify.core - Data: existing="C:/Users/Jason/AppData/Local/Temp/mik18554/_src\untitled-2.pdf", path="C:/Users/Jason/Documents/Notes\untitled-2.pdf"
2020-07-13 22:59:00,273-0400 ERROR texify.core - Source: Libraries\MiKTeX\Core\File\win\winFile.cpp:383
2020-07-13 22:59:00,288-0400 FATAL texify - Windows API error 5: Access is denied.

2020-07-13 22:59:00,288-0400 FATAL texify - Info: existing="C:/Users/Jason/AppData/Local/Temp/mik18554/_src\untitled-2.pdf", path="C:/Users/Jason/Documents/Notes\untitled-2.pdf"
2020-07-13 22:59:00,288-0400 FATAL texify - Source: Libraries\MiKTeX\Core\File\win\winFile.cpp
2020-07-13 22:59:00,288-0400 FATAL texify - Line: 383

通过命令行运行 pdflatex 得到以下结果:

C:\Users\Jason\Documents>pdflatex main.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.6.29)
entering extended mode
(main.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-06-18>
(C:\Users\Jason\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(C:\Users\Jason\AppData\Local\Programs\MiKTeX\tex/latex/base\size11.clo))
(C:\Users\Jason\AppData\Local\Programs\MiKTeX\tex/latex/base\inputenc.sty)
(C:\Users\Jason\AppData\Local\Programs\MiKTeX\tex/latex/l3backend\l3backend-pdf
mode.def) (main.aux)
! I can't write on file `main.pdf'.
Please type another file name for output:

运行该命令latex main.tex就可以生成一个 DVI 文件。

相关内容