【问题标题】:figure temporisation in Rmarkdown beamerRmarkdown beamer中的图形临时化
【发布时间】:2018-10-24 07:41:35
【问题描述】:

第一次尝试Rmarkdown,我在任何地方都找不到如何进行一些基本的投影仪操作。例如,我想让一个图形出现在幻灯片中的某些文本之后,或者用另一个图形替换一个图形,仍然在框架内。 我怎么能这样做:

\only<1>{![](figureA.pdf)}
\only<2>{![](figureB.pdf)}

谁能告诉我使用 Rmarkdown 进行幻灯片临时化的基础知识?

【问题讨论】:

标签: latex r-markdown knitr pandoc beamer


【解决方案1】:

Beamer 重新定义了各种宏,包括\includegraphics,以接受覆盖参数。您可以像这样在 rmarkdown 中使用它们:

---
output: 
  beamer_presentation:
    theme: "CambridgeUS"
    keep_tex: true

---

# test

text

\includegraphics<+>[width=.5\textwidth]{example-image-a}
\includegraphics<+>[width=.5\textwidth]{example-image-b}

【讨论】:

    猜你喜欢
    • 2015-03-16
    • 1970-01-01
    • 2017-04-22
    • 2017-12-29
    • 2021-05-13
    • 2017-07-30
    • 1970-01-01
    • 2020-06-19
    • 2023-03-25
    相关资源
    最近更新 更多