- 我昨天更新了 MiKTeX。
- pdflatex 停止工作(luatex 不受影响)。
日志文件 ( C:\Users\manu\AppData\Local\MiKTeX\2.9\miktex\log\pdflatex.log
) 指出:
2019-07-18 18:54:02,500+0200 INFO pdflatex - starting with command line: pdflatex my_LaTeX_File.tex
2019-07-18 18:54:02,516+0200 INFO pdflatex - allowing known shell commands
2019-07-18 18:54:02,516+0200 INFO pdflatex - enabling input (output) from (to) processes
2019-07-18 18:54:02,516+0200 FATAL pdflatex - MiKTeX encountered an internal error.
2019-07-18 18:54:02,516+0200 FATAL pdflatex - Info:
2019-07-18 18:54:02,516+0200 FATAL pdflatex - Source: Libraries\MiKTeX\Core\Session\config.cpp
2019-07-18 18:54:02,516+0200 FATAL pdflatex - Line: 526
2019-07-18 18:54:02,516+0200 INFO pdflatex - finishing with exit code 1
我的 MWE 如下所示:
\documentclass{article}
\begin{document}
Test
\end{document}
有什么快速解决方法吗?
更新 1
- 我听从了用户“Bernard”和用户“Mensch”的建议。
- 我收到一个新错误:
The MiKTeX configuration utility failed for some reason. The process output has been saved to a file.
- 日志文件包含以下内容:
initexmf.log
----------
2019-07-19 12:30:07,559+0200 INFO initexmf - starting: MiKTeX Configuration Utility 2.9.7076 (MiKTeX 2.9.7050 64-bit)
2019-07-19 12:30:07,559+0200 INFO initexmf - Operating on the private (per-user) MiKTeX setup
2019-07-19 12:30:07,559+0200 INFO initexmf - starting with command line: initexmf --dump=pdfetex
2019-07-19 12:30:07,559+0200 INFO initexmf - running: miktex-makefmt.exe --engine=pdftex --dest-name=pdfetex --no-dump pdfetex.ini --engine-option=-tcx=cp227.tcx --miktex-disable-maintenance
2019-07-19 12:30:10,350+0200 ERROR initexmf - sub-process error output has been saved to 'C:\Users\manu\AppData\Local\MiKTeX\2.9\miktex\log\miktex-makefmt_2019-07-19-123010.out'
2019-07-19 12:30:10,350+0200 FATAL initexmf - The executed process did not succeed.
2019-07-19 12:30:10,350+0200 FATAL initexmf - Info: fileName="C:\Users\manu\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64\miktex-makefmt.exe", exitCode="1"
2019-07-19 12:30:10,350+0200 FATAL initexmf - Source:
2019-07-19 12:30:10,350+0200 FATAL initexmf - Line: 0
也许我只是卸载 MiKTeX 并尝试 TeXLive。
最终解决方案
最终解决方案:我删除了 MiKTeX 并安装了 TeXLive。
答案1
答案2
我通过启动 MiKTex 控制台并执行以下步骤解决了这个问题:
- 前往清理
- 选择重置本地配置
这将删除您本地(用户级)的 MiKTex 配置,显然会让我重新开始。
答案3
这可能会对某些人有所帮助:
就我而言,事件日志卡在了这一点:
INFO miktex-xelatex - this process (6743) started by 'texstudio' with command line: /Users/username/bin/miktex-xelatex
INFO miktex-xelatex - allowing known shell commands
INFO miktex-xelatex - enabling input (output) from (to) processes
可是,等待了许久,却没有任何动静。
当我检查我的“配置 TexStudio”设置时,它们是这样的:
然后我将其更改为以下内容:(检查 Latex、Pdflatex、Xelatex 命令) (点击上方红色圆圈内的按钮即可轻松完成)
瞧!一切恢复正常!
问题在于正确格式化命令和包含文件名。