StatisticianLH的个人博客分享 http://blog.sciencenet.cn/u/leonardo 医学统计垃圾一枚,希望各位指出我的错误

博文

Rmarkdown使用Tinytex报错! LaTeX Error: File ‘xxxx.sty’ not found

已有 809 次阅读 2025-3-21 16:45 |个人分类:R markdown|系统分类:科研笔记

(/usr/local/texlive/2023basic/texmf-dist/tex/latex/base/ifthen.sty))

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

iShot_2025-03-21_16.39.27.png

在使用Rmarkdown导出PDF的时候,报错信息如上。要解决该问题可以用如下代码解决问题:

在R console中输入

tinytex::tlmgr_install('algpseudocode')

在后续导出中可能遇到多次报这种错误,按照这种方法依次解决即可。



https://blog.sciencenet.cn/blog-3587875-1478672.html


下一篇:tinytex::tlmgr_install()不报错,但是安装包不成功;更换镜像
收藏 IP: 202.202.232.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

1/0 | 鎬昏:0 | 棣栭〉 | 涓婁竴椤� | 璺宠浆

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2025-4-14 16:38

Powered by ScienceNet.cn

Copyright © 2007-2025 中国科学报社

返回顶部