无法启用管理模式

无法启用管理模式

我在编译 TeX 文档时继续收到此错误:

Sorry, but "G:\Other Software\Developer Environments\MiKTeX\miktex\bin\x64\pdflatex.exe" did not succeed. The log file hopefully contains the information to get MiKTeX going again: C:/Users/User Name/AppData/Local/MiKTeX/2.9/miktex/log/pdflatex.log You may want to visit the MiKTeX project page, if you need help.

奇怪的是,它似乎仍在生成 pdf。日志输出为:

2018-02-26 21:36:49,287-1000 INFO  pdflatex - starting with command line: 

"G:\Other Software\Developer Environments\MiKTeX\miktex\bin\x64\pdflatex.exe" -synctex=1 -interaction=nonstopmode "ED Case Report - Jan 2018.tex"
2018-02-26 21:36:49,287-1000 INFO  pdflatex - allowing known shell commands
2018-02-26 21:36:49,287-1000 INFO  pdflatex - enabling input (output) from (to) processes
2018-02-26 21:36:49,302-1000 INFO  pdflatex - going to create file: pdflatex.fmt
2018-02-26 21:36:51,422-1000 INFO  pdflatex - installing package placeins triggered by tex\latex\placeins\placeins.sty
2018-02-26 21:36:51,422-1000 FATAL pdflatex - Administrative mode cannot be enabled (makes no sense) because this is not a shared MiKTeX setup.
2018-02-26 21:36:51,422-1000 FATAL pdflatex - Info: 
2018-02-26 21:36:51,422-1000 FATAL pdflatex - Source: Libraries\MiKTeX\Core\Session\config.cpp
2018-02-26 21:36:51,422-1000 FATAL pdflatex - Line: 1268
2018-02-26 21:36:51,422-1000 INFO  pdflatex - finishing with exit code 1
2018-02-26 21:37:07,321-1000 INFO  pdflatex - starting with command line: "G:\Other Software\Developer Environments\MiKTeX\miktex\bin\x64\pdflatex.exe" -synctex=1 -interaction=nonstopmode "ED Case Report - Jan 2018.tex"
2018-02-26 21:37:07,321-1000 INFO  pdflatex - allowing known shell commands
2018-02-26 21:37:07,321-1000 INFO  pdflatex - enabling input (output) from (to) processes
2018-02-26 21:37:07,405-1000 INFO  pdflatex - installing package placeins triggered by tex\latex\placeins\placeins.sty
2018-02-26 21:37:07,405-1000 FATAL pdflatex - Administrative mode cannot be enabled (makes no sense) because this is not a shared MiKTeX setup.
2018-02-26 21:37:07,405-1000 FATAL pdflatex - Info: 
2018-02-26 21:37:07,405-1000 FATAL pdflatex - Source: Libraries\MiKTeX\Core\Session\config.cpp
2018-02-26 21:37:07,405-1000 FATAL pdflatex - Line: 1268
2018-02-26 21:37:07,405-1000 INFO  pdflatex - finishing with exit code 1
2018-02-26 21:37:07,558-1000 INFO  pdflatex - starting with command line: "G:\Other Software\Developer Environments\MiKTeX\miktex\bin\x64\pdflatex.exe" -synctex=1 -interaction=nonstopmode "ED Case Report - Jan 2018.tex"
2018-02-26 21:37:07,558-1000 INFO  pdflatex - allowing known shell commands
2018-02-26 21:37:07,558-1000 INFO  pdflatex - enabling input (output) from (to) processes
2018-02-26 21:37:07,652-1000 INFO  pdflatex - installing package placeins triggered by tex\latex\placeins\placeins.sty
2018-02-26 21:37:07,652-1000 FATAL pdflatex - Administrative mode cannot be enabled (makes no sense) because this is not a shared MiKTeX setup.
2018-02-26 21:37:07,652-1000 FATAL pdflatex - Info: 
2018-02-26 21:37:07,652-1000 FATAL pdflatex - Source: Libraries\MiKTeX\Core\Session\config.cpp
2018-02-26 21:37:07,652-1000 FATAL pdflatex - Line: 1268
2018-02-26 21:37:07,653-1000 INFO  pdflatex - finishing with exit code 1

这和我没有运行它有关系吗Administrative mode?我不确定我知道那是什么或怎么做。似乎我的电脑正在尝试下载它需要的软件包,但它无法获得这样做的权限。是这样吗?如果是这样,我该如何解决这个问题并避免将来出现问题?

答案1

对于将来遇到此问题的任何人 - 打开MiKTeX Console-> settings->设置choose whether missing packages are to be installed on-the-fly:Ask me

这有点烦人,因为它会询问您是否要单独安装每个包,但它解决了Administrative mode我在动态包安装中收到的错误。

相关内容