quarto-dev / quarto-dev/quarto-cli

How to center text in Quarto presentations?

Open
#1,231 17 comments 3 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since Jun 27, 2022.

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

Description

I'm creating a presentation with Quarto ( to revealjs) and wanted to have one slide with a line of text centered horizontally and vertically. I could not find a way to do this. I figured that I can use the .r-stack to center text horizontally like

## 
:::{.r-stack}
centered text ^[with a footnote for extra fun]
:::

But how can one center the line of text also vertically?

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.