【问题标题】:Cannot install framed.sty when I use knitr and RStudio to produce a pdf file on Windows在 Windows 上使用 knitr 和 RStudio 生成 pdf 文件时无法安装 framed.sty
【发布时间】:2017-04-05 11:49:32
【问题描述】:

我正在尝试使用 RStudio 和 knitr 在 Windows 10 上生成 PDF 文件。我的计算机上没有 LaTex。单击“编译 PDF”按钮时,我收到以下错误消息:

LaTex Error: File 'framed.sty' not found.
==>Fatal error occurred, no output PDF file produced.

我在 H:\R\win-library\3.3\knitr\misc 下找到了一个 framed.sty 文件。看起来 RStudio 找不到路径。所以,我尝试了一些方法。例如,安装框架包。我从https://www.ctan.org/pkg/framed?lang=en下载了框架包。

但是,我发现的所有网站都在谈论 Mac 或 Linux 上的解决方案,例如 https://github.com/rstudio/rmarkdown/issues/39。如何在 Windows 10 上解决此问题?

【问题讨论】:

    标签: r windows latex rstudio knitr


    【解决方案1】:

    大概你在 Windows 上使用 MiKTeX。您可以使用它的包管理器来安装丢失的包:https://docs.miktex.org/manual/pkgmgt.html

    【讨论】:

      猜你喜欢
      • 2021-08-14
      • 2020-01-06
      • 2017-01-24
      • 1970-01-01
      • 2013-12-18
      • 2014-03-30
      • 2016-08-18
      • 1970-01-01
      • 2012-03-24
      相关资源
      最近更新 更多