为什么 MikTex TeXworks 无法将 Latex 文档转换为 .pdf?

为什么 MikTex TeXworks 无法将 Latex 文档转换为 .pdf?

我根据在线找到的示例创建了一个基本的 Latex 文档:

\documentclass{article}
\usepackage{booktabs}
\begin{document}

\begin{tabular}
Field Name:&FIRST_FIELD
\end{tabular}
\begin{tabular}
Field Name:&SECOND_FIELD
\end{tabular}

\end{document}

我安装了适用于 Windows 的最新版本的 MikTex,但每次运行它并从下拉菜单中选择“pdfLatex”并点击绿色播放按钮时,我都会收到此消息:

抱歉,“MiKTeX 配置实用程序”没有成功。

日志文件希望包含让 MiKTeX 再次运行的信息:

C:/用户/jonc/AppData/Local/MiKTeX/2.9/miktex/log/initexmf.log

您可能想访问 MiKTeX 项目页面 (http://miktex.org), 如果你需要帮助。

抱歉,但 C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\miktex-pdftex.exe 没有成功。

日志文件希望包含让 MiKTeX 再次运行的信息:

C:/用户/jonc/AppData/Local/MiKTeX/2.9/miktex/log/miktex-pdftex.log

您可能想访问 MiKTeX 项目页面 (http://miktex.org), 如果你需要帮助。

第一个日志表明存在权限错误,但我不知道哪个文件有问题:

2015-10-14 11:01:23,455+0100 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-14 11:01:23,472+0100 INFO  initexmf - Skipping user root directory (C:\Users\jonc\AppData\Roaming\MiKTeX\2.9)...
2015-10-14 11:01:23,472+0100 INFO  initexmf - Skipping user root directory (C:\Users\jonc\AppData\Local\MiKTeX\2.9)...
2015-10-14 11:01:23,473+0100 INFO  initexmf - Creating fndb for common root directory (C:\ProgramData\MiKTeX\2.9)...
2015-10-14 11:01:23,489+0100 INFO  initexmf - Creating fndb for common root directory ("C:\Program Files (x86)\MiKTeX 2.9")...
2015-10-14 11:01:25,303+0100 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-14 11:01:25,320+0100 INFO  initexmf - Making format links...
2015-10-14 11:01:25,357+0100 INFO  initexmf - Making script links...
2015-10-14 11:01:25,484+0100 INFO  initexmf -   C:\Program Files (x86)\MiKTeX 2.9\miktex/bin\miktex-taskbar-icon.exe
2015-10-14 11:01:25,488+0100 INFO  initexmf -   C:\Program Files (x86)\MiKTeX 2.9\miktex/bin\miktex-update.exe
2015-10-14 11:01:25,582+0100 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-14 11:01:25,597+0100 INFO  initexmf - Creating language.dat, language.dat.lua and language.def...
2015-10-14 11:01:25,618+0100 INFO  initexmf - running: mkfntmap --verbose --admin
2015-10-14 11:01:56,061+0100 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-14 11:01:56,093+0100 FATAL initexmf - Windows API error 32: The process cannot access the file because it is being used by another process.

2015-10-14 11:01:56,093+0100 FATAL initexmf - Info: C:\Users\jonc\AppData\Local\MiKTeX\2.9\miktex/data/le\4d5868e95e95ecff33e8315a05cb58f3.fndb
2015-10-14 11:01:56,093+0100 FATAL initexmf - Source: Libraries\MiKTeX\Core\win\winFile.cpp
2015-10-14 11:01:56,093+0100 FATAL initexmf - Line: 520
2015-10-14 11:01:56,242+0100 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-14 11:01:56,274+0100 FATAL initexmf - Windows API error 32: The process cannot access the file because it is being used by another process.

2015-10-14 11:01:56,274+0100 FATAL initexmf - Info: C:\Users\jonc\AppData\Local\MiKTeX\2.9\miktex/data/le\4d5868e95e95ecff33e8315a05cb58f3.fndb
2015-10-14 11:01:56,274+0100 FATAL initexmf - Source: Libraries\MiKTeX\Core\win\winFile.cpp
2015-10-14 11:01:56,274+0100 FATAL initexmf - Line: 520
2015-10-14 11:02:07,626+0100 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-14 11:02:07,659+0100 FATAL initexmf - Windows API error 32: The process cannot access the file because it is being used by another process.

2015-10-14 11:02:07,659+0100 FATAL initexmf - Info: C:\Users\jonc\AppData\Local\MiKTeX\2.9\miktex/data/le\4d5868e95e95ecff33e8315a05cb58f3.fndb
2015-10-14 11:02:07,659+0100 FATAL initexmf - Source: Libraries\MiKTeX\Core\win\winFile.cpp
2015-10-14 11:02:07,659+0100 FATAL initexmf - Line: 520

我错过了什么?

答案1

通过反复从开始菜单运行,成功启动并运行了它MiKTeX Update (Admin)。我记得当我第一次这样做时,更新软件找到了一个无法更新的分销商,然后悄悄地失败了。

诀窍是持续运行更新,直到没有列出需要更新的包。

相关内容