Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subfigure overflows width available space. #3435

Open
4 tasks done
rgaiacs opened this issue Nov 23, 2022 · 7 comments
Open
4 tasks done

Subfigure overflows width available space. #3435

rgaiacs opened this issue Nov 23, 2022 · 7 comments
Assignees
Labels
docx Issues with the docx format enhancement New feature or request
Milestone

Comments

@rgaiacs
Copy link
Contributor

rgaiacs commented Nov 23, 2022

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.
@XiangyunHuang
Copy link

I can reproduce the bug.

@cscheid cscheid added the docx Issues with the docx format label Nov 23, 2022
@cscheid cscheid added this to the v1.3 milestone Nov 23, 2022
@rich-iannone
Copy link
Collaborator

I will have a look at this and try to get a fix in for v1.3.

@cscheid cscheid added enhancement New feature or request and removed bug Something isn't working labels Mar 7, 2023
@cscheid cscheid modified the milestones: v1.3, v1.4 Mar 7, 2023
@PeterWang-dev
Copy link

same issue here. the ms out put of subfigures are absolutely in a mess.

@cscheid
Copy link
Collaborator

cscheid commented Apr 26, 2023

@PeterWang-dev I'd like to ask you to be more constructive in your issue reports. Thanks for understanding.

@PeterWang-dev
Copy link

PeterWang-dev commented Apr 26, 2023

@PeterWang-dev I'd like to ask you to be more constructive in your issue reports. Thanks for understanding.

Sorry about that. I just want to make this issue keep alive, not to be ignored. Thanks for your contribution about this project! :)

@cscheid
Copy link
Collaborator

cscheid commented Apr 26, 2023

I just want to make this issue keep alive, not to be ignored.

That's not a helpful way to do this, and the issues are not being ignored. Please keep that in mind in the future.

@PeterWang-dev
Copy link

PeterWang-dev commented Apr 26, 2023

I just want to make this issue keep alive, not to be ignored.

That's not a helpful way to do this, and the issues are not being ignored. Please keep that in mind in the future.

Thank you for your advice and toleration to me a newbie. I'll keep in mind.

By the way, I think this issue is likely to be fix after #2251 implemented, since this issue may due to the over-scale of the sub-figure.

@cscheid cscheid modified the milestones: v1.4, v1.5 Dec 19, 2023
@cscheid cscheid modified the milestones: v1.5, Future Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docx Issues with the docx format enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants