-
Hi, I have created a reveal.js presentation with Quarto with the following global option: Since I did that, all my level 2 slides are vertically centered automatically (like level 1 slides). Thanks in advance for help. |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 9 replies
-
Could you share a small "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? Thanks. You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````qmd
---
title: "Reproducible Quarto Document"
format: html
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
```
The end.
```` |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer. Here is an example of reproducible Quarto document 👍
What I'm expecting is the top align of text in slide "Level 2 on top", as it is displayed in slide "Level 3". For the moment, slide "Level 2 on top" inherits of class "center" automatically by Reveal JS. This is related to the fact that slide-level is set to 3. |
Beta Was this translation helpful? Give feedback.
-
OK, I have removed the CSS code block. |
Beta Was this translation helpful? Give feedback.
-
I don't think you can do that easily with revealjs. The slide level will indicate to revealjs which type of slide to use.
Usually you need only two level to structure the slide. Using You could use a trick to override this but it does not seem like a good solution, rather something to solve another type of need. Though you can do ---
title: "Test Reveal JS title levels"
format:
revealjs:
slide-level: 3
smaller: false
self-contained: false
slide-number: c/t
theme: [default, styles.scss]
engine: knitr
---
# LEVEL1
## Level 2
- item 2.1
- item 2.2
- item 2.3
- item 2.4
### Level 3
- item 2.1
- item 2.2
- item 2.3
- item 2.4
## Level 2 on top ? {.top}
- item 2.1
- item 2.2
/*-- scss:defaults --*/
/*-- scss:rules --*/
.reveal section.top {
top: 0px !important;
} Really it is a trick but after all it is CSS. Why do you set Are you using |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer. |
Beta Was this translation helpful? Give feedback.
-
Would this do? (I find it weird because most people won't see the subtle font size change between 2 and 3 ...) See Quarto document code.---
title: "Test Reveal JS title levels"
format:
revealjs:
smaller: false
self-contained: false
slide-number: c/t
engine: knitr
---
# LEVEL1
## Level 2
- item 2.1
- item 2.2
- item 2.3
- item 2.4
---
### Level 3
- item 2.1
- item 2.2
- item 2.3
- item 2.4
## Level 2 on top ?
- item 2.1
- item 2.2
Screen.Recording.2023-05-24.at.18.11.26.mov |
Beta Was this translation helpful? Give feedback.
-
The reason is one slide per level 2, one slide per level 3... |
Beta Was this translation helpful? Give feedback.
-
OK, this can be done with |
Beta Was this translation helpful? Give feedback.
-
With that solution, I have a new problem.
These worked with slide-level: 3 |
Beta Was this translation helpful? Give feedback.
Would this do? (I find it weird because most people won't see the subtle font size change between 2 and 3 ...)
See Quarto document code.
Screen.Recording.2023-05-24.at.18.11.26.mov