quarto-dev / quarto-dev/quarto-cli

Images not following global figure alignment unless has caption

Open
#4,415 3 comments 1 reaction 1 assignee View on GitHub

@cscheid is already working on this.

Since Feb 18, 2023.

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

Description

Bug description

I am using quarto version 1.2.269 on Windows 10
RStudio 2022.12.0+353 "Elsbeth Geranium" Release (7d165dcfc1b6d300eb247738db2c7076234f6ef0, 2022-12-03) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2022.12.0+353 Chrome/102.0.5005.167 Electron/19.1.3 Safari/537.36

When I render this document the first image is not centered. The middle image is centered and given a caption. The third image does not have a caption is centered and told explicitly to be centered.

---
title: "test"
author: "Victor"
format: 
  html:
    fig-align: center
---

![](https://www.clker.com/cliparts/1/9/e/4/13140637591549686593blue%20square-hi.png)

![Block](https://www.clker.com/cliparts/1/9/e/4/13140637591549686593blue%20square-hi.png)


![](https://www.clker.com/cliparts/1/9/e/4/13140637591549686593blue%20square-hi.png){fig-align="center"}
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.