Skip to content

Image placement in Revealjs presentation #1477

Answered by mcanouil
asalber asked this question in Q&A
Discussion options

You must be logged in to vote

Only captioned figures are centered. Figures without caption are left aligned by default.
See #949 and @jjallaire 's answer.

Maybe "Captioned ..." should be added at the beginning of the following sentence: https://github.com/quarto-dev/quarto-web/blob/0856310989b7715deacf6620315143bb4cc25640/docs/authoring/figures.qmd#L37

Screen.Recording.2022-07-21.at.23.12.07.mov
See the code from the video.
---
title: "Habits"
author: "John Doe"
format: revealjs
---

## Getting up

- Turn off alarm
- Get out of bed

![Something](https://quarto.org/images/hello-jupyter.png)

## Going to sleep

- Get in bed
- Count sheep

![](https://quarto.org/images/hello-jupyter.png){fig-align="center"}

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@cderv
Comment options

@asalber
Comment options

@mcanouil
Comment options

@cderv
Comment options

Answer selected by asalber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants