欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

rmarkdown 编译成 pdf 文件时报错 LaTeX Error: File `xxx.sty' not found.

程序员文章站 2023-12-25 10:30:21
...

原帖:https://github.com/rstudio/rmarkdown/issues/39

报错信息

LaTeX Error: File 'framed.sty' not found.
LaTeX Error: File 'titling.sty' not found.

解决方法

方法一

使用 tex 的 tlmgr 包管理安装缺少的 .sty 文件

tlmgr install framed

方法二

我的系统上显示 tlmgr install: package already present: framed 但是依旧报错,下述方法成功安装

yum 安装缺少的文件

yum -y install texlive-framed
yum -y install texlive-titling

上一篇:

下一篇: