quarto-dev / quarto-dev/quarto-cli

Subfigure overflows width available space.

Open
#3,435 7 comments 1 reaction 1 assignee View on GitHub

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"}
![R Logo](R_logo.svg.png){#fig-r-logo-1}

![R Logo](R_logo.svg.png){#fig-r-logo-2}

Awesome Programming Language Logo.
:::

quarto render mwe.qmd produces

Screenshot from 2022-11-23 17-14-51

Note the subfigures overflow the width available.

Expected Output

Subfigure is resized to fit in the available space.

Screenshot from 2022-11-23 17-19-40

Supporting Files

mwe.zip

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.