防止R Markdown中的图形和表格浮动

问题描述 投票:0回答:1

是否可以通过 .pdf 输出防止 R Markdown 中的图形和表格浮动?

每次尝试 LaTex 解决方案时,我都会收到以下错误:

A new version of TeX Live has been released. If you need to install or update any LaTeX packages, you have to upgrade TinyTeX with tinytex::reinstall_tinytex(). If it fails to upgrade, you might be using a default random CTAN mirror that has not been fully synced to the main CTAN repository, and you need to wait for a few more days or use a CTAN mirror that is known to be up-to-date (see the "repository" argument on the help page ?tinytex::install_tinytex).

tlmgr: Local TeX Live (2021) is older than remote repository (2024).
Cross release updates are only supported with
  update-tlmgr-latest(.sh/.exe) --update
See https://tug.org/texlive/upgrade.html for details.
! LaTeX Error: File `multirow.sty' not found.

! Emergency stop.
r r-markdown
1个回答
0
投票

我实际上找到了解决方案

kableExtra::kable_styling(latex_options = "hold_position")
。请注意,如果您遇到某种形式的
tinytex
错误,
tinytex::reinstall_tinytex()
可能会起作用。

© www.soinside.com 2019 - 2024. All rights reserved.