你能将 r 代码添加到 R Markdown 中的 beamer 注释中吗? 2024-5-25 • beamer rmarkdown 例如, \note{ ```{r, ex1} curve(x) ``` } 当我尝试时,我的 tex 文件包含以下内容 \note{ ![](.../figure-beamer/ex1-1.pdf)<!-- --> } 答案1 据我所知,您不能在 latex 环境或宏中使用 r 块。作为一种解决方法,您可以使用 rmarkdown 语法进行注释(但请确保不要将任何易碎内容包含在注释中) --- title: "" output: beamer_presentation: toc: false keep_tex: true header-includes: - \setbeameroption{show notes on second screen} --- test ::: notes ```{r,echo=FALSE} plot(cars) ``` ::: 相关内容 Firefox 默认将 URL 打开为固定标签页 有没有办法对 Mail.app 中的某些文件夹进行颜色编码? GParted 无法识别我的 Fujitsu HDD 如何阻止 Windows 10 在登录 Windows 时打开开始菜单? 我很难让 gdb 在莫哈韦沙漠上工作 为什么创建无名管道时需要两个文件描述符? 为什么连接我的本地站点需要很长时间? Google Play 音乐媒体键无法使用 14.04? 枚举中阿拉伯数字的 RTL 渲染不正确 如何计算连续相同行的数量