quarto-dev / quarto-dev/quarto-cli
margin figures errors in pdf when generating plots
Open
Nobody has claimed this yet.
enhancement
lint
wontfix
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
If a plot is programmatically generated, it produces an error: LaTeX Error: Not in outer par mode when rendering. Here is a simple example:
---
format:
pdf:
execute:
echo: false
---
This is some text
::: {.column-margin}
#### Subtitle
```{r}
#| label: fig-test
#| fig-cap: Test captions
#| warning: false
library(tidyverse)
data(iris)
iris %>% ggplot(aes(Sepal.Length, Sepal.Width, color = Species)) + geom_point()
```
:::
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the supplied example with Quarto's PDF format and R execution, then inspect the generated LaTeX around the column-margin figure. Compare it with a plot outside the margin to isolate the rendering boundary; done means the example renders without the reported LaTeX error and preserves the caption.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- latex, r
- Domain
- build-system, data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100