quarto-dev / quarto-dev/quarto-cli
`#| out/fig-width:` ignored when specifying `#| layout-nrow/col:`
Open
@cscheid is already working on this.
Since Sep 14, 2022.
bug
crossref
figures
layout
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Bug description
repex
.qmd:
```{r}
url1 <- "https://www.haustier-news.de/welpen/wp-content/uploads/2020/09/pomeranian.jpg"
url2 <- "https://www.allthingsdogs.com/wp-content/uploads/2020/01/White-Pomeranian-Feature-678x381.jpg"
```
# this works
```{r}
#| label: a-pomeranian
#| out-width: 50%
knitr::include_graphics(url1)
```
```{r}
#| label: another-pomeranian
#| out-width: 25%
knitr::include_graphics(url1)
```
# this doesn't
```{r}
#| label: two-pomeranians
#| fig-show: hold
#| out-width: 25%
#| layout-nrow: 1
knitr::include_graphics(url1)
knitr::include_graphics(url2)
```
output:

software
- Quarto version 1.1.168
- macOS Monterey version 12.2
- RStudio IDE version "Prairie Trillium" Release
(1db809b8, 2022-05-16) for macOS
Checklist
- Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- Please format your issue so it is easier for us to read the bug report.
- Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- Please document the operating system you're running. If on Linux, please provide the specific distribution.
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.
Assessment
This issue has not been assessed yet.