当前位置: 动力学知识库 > 问答 > 编程问答 >

R cmd check Latex error: FATAL pdflatex - GUI framework cannot be initialized

问题描述:

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?

网友答案:

This is known problem wit MikTex 2.9 when pdflatex encounters error

GUI framework cannot be initialized.

(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. 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;

  2. 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);

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

    R CMD Rd2pdf man/
    

again to see new errors;

  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.
    
  2. 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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: