在 R markdown 中使用 Latex 时遇到问题

JKo*_*ong 5 latex r r-markdown

嘿,我正在尝试在 R 降价文件中使用一些乳胶,但我得到了这个error

如果您使用 pdflatex,请尝试其他 LaTeX 引擎(例如 xelatex)。对于 R Markdown 用户,请参阅https://bookdown.org/yihui/rmarkdown/pdf-document.html

错误:无法编译 M5_collab.tex。有关调试提示,请参阅https://yihui.name/tinytex/r/#debugging。有关更多信息,请参阅 M5_collab.log。另外: 有 33 个警告(使用 warnings() 来查看它们)执行停止

我已经查看了 bookdown 网站并安装了 tinytex

install.packages("tinytex")
Run Code Online (Sandbox Code Playgroud)

有人可以让我知道出了什么问题吗?我该如何解决这个问题?

谢谢

M.S*_*uza 6

我和你有同样的问题。

就我而言,我想生成一个 pdf 文件并收到您收到的这条消息。

我解决了定义latex_engine的问题如下:

---
title: "Report"
output:
  pdf_document:
    latex_engine: xelatex
---
Run Code Online (Sandbox Code Playgroud)