是否可以通过 .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.
我实际上找到了解决方案
kableExtra::kable_styling(latex_options = "hold_position")
。请注意,如果您遇到某种形式的 tinytex
错误,tinytex::reinstall_tinytex()
可能会起作用。