quarto-dev / quarto-dev/quarto-cli
Subfigure overflows width available space.
Open
Nobody has claimed this yet.
docx
enhancement
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Bug description
Consider the following minimal working example:
---
title: "MWE"
format: docx
---
## Quarto
Quarto enables you to weave together content and executable code into a finished document.
To learn more about Quarto see <https://quarto.org>.
::: {#fig-r-logos layout-ncol="2"}
{#fig-r-logo-1}
{#fig-r-logo-2}
Awesome Programming Language Logo.
:::
quarto render mwe.qmd produces

Note the subfigures overflow the width available.
Expected Output
Subfigure is resized to fit in the available space.

Supporting Files
Environment Information
[✓] Checking Quarto installation......OK
Version: 1.2.79
Path: /opt/quarto/bin
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....(None)
Unable to locate an installed version of Python 3.
Install Python 3 from https://www.python.org/downloads/
[✓] Checking R installation...........(None)
Unable to locate an installed version of R.
Install R from https://cloud.r-project.org/
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.