Tinytex无法安装缺少的LaTeX软件包,因为它已经安装

问题描述

我的同事在将Rmd转换为pdf时遇到以下错误。 tinytex找不到sty文件,尝试安装该文件,但由于已安装该文件而失败?

我对如何解决这个问题感到困惑。欢迎提出建议。

"C:/R/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS Tuininsecten.utf8.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output Tuininsecten.tex --self-contained --highlight-style tango --latex-engine pdflatex --variable graphics --variable "geometry:margin=1in" --include-in-header "C:\Users\DIRK_M~1\AppData\Local\Temp\RtmpQJewV9\rmarkdown-str714276548a6.html"
tlmgr.pl: package repository http://mirror.koddos.net/CTAN/systems/texlive/tlnet (verified)
tlmgr.pl install: package already present: pdftexcmds
! LaTeX Error: File `pdftexcmds.sty' not found.

! Emergency stop.
<read *>

Error: LaTeX Failed to compile Tuininsecten.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See Tuininsecten.log for more info.
In addition: There were 11 warnings (use warnings() to see them)
Execution halted```

解决方法

重新安装TinyTex本身(不是R包)解决了该问题。

tinytex::reinstall_tinytex()

感谢Steffen Moritz的建议。

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...