Pdflatex 在 Windows 10 上停止生成任何输出

Pdflatex 在 Windows 10 上停止生成任何输出

我停写 LaTeX 代码几个月了。我回到我的电脑(Windows 10 操作系统)时发现我的文档不再使用 进行编译pdflatex。通常,我会在 中编写代码sublime,将tex文件保存到文件夹中,然后运行

pdflatex example.tex

在命令行中生成 PDF。但是,我不断收到错误

>>pdflatex hello.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (MiKTeX 2.9.6350 64-bit)
entering extended mode
! I can't write on file `hello.log'.
Please type another transcript file name:

过去,pdflatex会生成一个日志文件,但文件夹中没有看到日志文件。我对当前的问题感到困惑。我尝试重新安装 MiKTeX,小心地在删除和重新安装发行版之间重新启动,但问题仍然存在。Windows 10 的任何更新是否导致了这种奇怪的行为?这是我当前版本的 MiKTeX

MiKTeX-pdfTeX 2.9.6354 (1.40.18) (MiKTeX 2.9.6350 64-bit)
2.9.6354 (1.40.18)
TeX is a trademark of the American Mathematical Society.
using bzip2 version 1.0.6, 6-Sept-2010
compiled with curl version 7.54.0; using libcurl/7.54.0 WinSSL
compiled with expat version 2.2; using expat_2.2.0
compiled with jpeg version 9.2
compiled with liblzma version 50020032; using 50020032
compiled with libpng version 1.6.29; using 1.6.29
compiled with libressl version LibreSSL 2.5.3; using LibreSSL 2.5.3
compiled with MiKTeX Application Framework version 1.6334; using 1.6334
compiled with MiKTeX Core version 1.6344; using 1.6344
compiled with MiKTeX Archive Extractor version 1.6300; using 1.6300
compiled with MiKTeX Package Manager version 1.6353; using 1.6353
compiled with poppler version 0.55.0
compiled with uriparser version 0.8.4
compiled with zlib version 1.2.11; using 1.2.11

编辑:我在桌面上创建一个文件夹,并将hello.tex文件放入其中。然后我cd进入该文件夹并输入pdflatex hello.tex命令。

答案1

有时 .tex 文件的内容可能会导致此问题。我以前也遇到过这种情况。让我们从基础开始(只是为了确保)你的hello.tex这个?如果没有,请先尝试该 .tex 文件。如果问题仍然存在,那么我们可能正在查看您在计算机上拥有的权限。您可能需要对该目录具有写入权限。

相关内容