本文介绍了我将R更新到版本3.5.0后,Miktex没有成功的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
将R更新到3.5.0版后,无法从Rstudio启动我的MikTex,
After I updated R to version 3.5.0, I couldn't start my MikTex from Rstudio,
---
output:
pdf_document:
latex_engine: xelatex
includes:
in_header: header.tex
keep_tex: yes
---
上面是我在Rmd之前和编织后键入的代码,
Above is the code I typed ahead of my Rmd, and after knitring,
Sorry, but D:\miktex\miktex\bin\x64\xelatex.exe did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:/Users/DELL/AppData/Local/MiKTeX/2.9/miktex/log/xelatex.log
xelatex.log中显示的信息:
Information showed in xelatex.log:
2018-04-29 10:06:17,482+0800 FATAL xelatex - Info:
2018-04-29 10:06:17,482+0800 FATAL xelatex - Source: Libraries\MiKTeX\UI\Qt\mikuiqt.cpp
2018-04-29 10:06:17,482+0800 FATAL xelatex - Line: 45
2018-04-29 10:06:17,482+0800 INFO xelatex - finishing with exit code 1
2018-04-29 10:06:17,626+0800 INFO xelatex - starting with command line: D:\miktex\miktex\bin\x64\xelatex.exe -halt-on-error -interaction=batchmode 1.tex
2018-04-29 10:06:17,631+0800 INFO xelatex - allowing known shell commands
2018-04-29 10:06:17,632+0800 INFO xelatex - enabling input (output) from (to) processes
2018-04-29 10:06:17,812+0800 FATAL xelatex - GUI framework cannot be initialized.
在我尝试之后:
xelatex
"D:\\miktex\\miktex\\bin\\x64\\xelatex.exe"
然后再次编织:
Warning messages:
1: In system2(..., stdout = FALSE, stderr = FALSE) : '"xelatex"' not found
2: In system2(...) : '"xelatex"' not found
No TeX installation detected (TeX is required to create PDF output). You should install a recommended TeX distribution for your platform:
Windows: MiKTeX (Complete) - http://miktex.org/2.9/setup
(NOTE: Be sure to download the Complete rather than Basic installation)
有人可以帮忙吗?谢谢.
Could anyone help? Thanks.
推荐答案
如,您可以更改默认设置并让MiKTeX安装缺少的LaTeX软件包,而无需询问:
as mentioned, you can change the default setting and let MiKTeX install the missing LaTeX packages without asking:
从MiKTeX控制台→设置→始终动态安装丢失的软件包".
From the MiKTeX Console → settings → "Always install missing packages on-the-fly".
这篇关于我将R更新到版本3.5.0后,Miktex没有成功的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!