R cmd检查Latex错误:致命pdflatex-无法初始化GUI框架 [英] R cmd check Latex error: FATAL pdflatex - GUI framework cannot be initialized

查看:776
本文介绍了R cmd检查Latex错误:致命pdflatex-无法初始化GUI框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在检查我的包裹,这实际上是剩下的最后一个问题。 pdf文件无法编译,日志文件告诉我

I am checking my package and this is actually the last remaining problem. The pdf file cannot be compiled and the logfile tells me

2015-10-15 14:17:47,430+0200 INFO  pdflatex - running 'initexmf --quiet --update-fndb' to refresh the file name database
2015-10-15 14:17:50,276+0200 FATAL pdflatex - GUI framework cannot be initialized.
2015-10-15 14:17:50,276+0200 FATAL pdflatex - Info: 
2015-10-15 14:17:50,276+0200 FATAL pdflatex - Source: Libraries\MiKTeX\UI\Qt\mikuiqt.cpp
2015-10-15 14:17:50,276+0200 FATAL pdflatex - Line: 50

知道问题可能在哪里吗?

Any idea where the problem could be?

推荐答案

当pdflatex时,这是MikTex 2.9的已知问题遇到错误

This is known problem wit MikTex 2.9 when pdflatex encounters error

GUI framework cannot be initialized.

(在Windows 7系统上的文件〜\AppData\Local\中找到\MiKTeX\2.9\miktex\log

(found on my Windows 7 system in the file ~\AppData\Local\MiKTeX\2.9\miktex\log)

到目前为止,我可以提供以下操作序列来对此进行补救:

So far, I can offer following sequence of actions to remedy this:


  1. 在Windows命令提示符下转到MiKTeX bin文件夹(例如 C:\Program Files(x86)\MiKTeX 2.9\miktex \bin )并运行实用程序 mo.exe ;

  1. In Windows Command prompt go to MiKTeX bin folder (e.g. C:\Program Files (x86)\MiKTeX 2.9\miktex\bin) and run utility mo.exe;

在常规标签中,更改在- the-fly:'选项设为No(这将禁用GUI,并且不会再次发生上述错误);

In General tab change 'Install missing packages on-the-fly:' option to No (this will disable GUI and error above won't be happening again);

运行R CMD,它再次调用乳胶转换器(在我的情况下

Run R CMD that calls latex converter again (in my case

R CMD Rd2pdf man/


再次看到新错误;


  1. 这一次miktex不会抱怨GUI,而是会丢失像这样的错误包

  1. This time miktex won't complaint about GUI - instead it will be missing packages with error like this

! LaTeX Error: File `inconsolata.sty' not found.


  • 启动MiKTeX软件包管理器(同样是 mo.exe 软件包选项卡),并通过重复步骤3.-5来安装缺少的软件包。 p>


  • Start MiKTeX package manager (again from mo.exe Packages tab) and install missing package one at the time by repeating steps 3.-5.

    这可能不是解决此问题的最有效方法,因此,我感谢您进行更正或采用其他解决方案。

    This might be not most effective way of fixing this so I appreciate corrections or alternative solutions.

    这篇关于R cmd检查Latex错误:致命pdflatex-无法初始化GUI框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆