quarto-dev / quarto-dev/quarto-cli

Some multi-part figures get stretched

Open
#10,146 20 comments 0 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since Jun 26, 2024.

bug crossref engines-jupyter regression
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Bug description

As shown below and documented in #9927 multi-part figures became stretched in recent versions. The patch works, but not for figures with subcaptions.

Steps to reproduce
firefox https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=447558863 # or other browser
# then open a terminal and run:
quarto preview
# edit block beginning as follows to remove the subcaptions:
#| label: fig-raster-slope

You get this before:

image

Expected behavior

The figures should not be stretched, as was the case in previous versions and as is the case after removing subcaptions:

image

Actual behavior

See screenshot with stretched images above

Your environment
  • VS Code but only the quarto version is relevant for this example I think
Quarto check output
quarto check
Quarto 1.5.47
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.2.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.41.0: OK
      Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.5.47
      Path: /opt/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Tex:  (not detected)

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.11.4
      Path: /usr/local/bin/python3
      Jupyter: 5.7.2
      Kernels: python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/

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.