Figure divs with computation in ppt #10911
-
DescriptionI'm trying to insert a computation into a Figure Div: ---
title: "Untitled"
format: pptx
---
## slide with fig div
::: {#fig-graph1}
```{r}
plot(1:10)
```
A graph
:::
I'm getting the following error:
Using a figure chunk works fine: ---
title: "Untitled"
format: pptx
---
## slide with fig chunk
```{r}
#| label: fig-graph2
#| fig-cap: Another graph
plot(10:1)
```
Outputting the figure div version to .docx also works: ---
title: "Untitled"
format: docx
---
## slide with fig div
::: {#fig-graph1}
```{r}
plot(1:10)
```
A graph
::: Am I doing something wrong? Thanks for any guidance. |
Beta Was this translation helpful? Give feedback.
Answered by
mcanouil
Sep 30, 2024
Replies: 2 comments 1 reply
-
PS - I'm using:
and windows 11. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks, I've opened an issue about this. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
d-morrison
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, I've opened an issue about this.