RevealJS and r-fit-text class (with slide titles) #3975
Unanswered
fuhrmanator
asked this question in
Q&A
Replies: 1 comment 7 replies
-
I'm away from a computer where I can quickly test this, but can you try
|
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How can I apply
r-fit-text
to level 1 titles in RevealJS with Quarto? The Quarto documentation shows examples using##
to make smaller titles, but that won't work for thetoc:
feature with level 1 titles.https://quarto.org/docs/presentations/revealjs/advanced.html#fit-text shows to put text in
:::
blocks, but it appears to have no effect.Since I want to use a
toc: true
slide at the start of my presentations - it's great because it's re-build based on the slides -- titles need to be defined as#
. The snag I hit is that# title
with most reveal themes results in a really huge title that often wraps, eating up all the space in the slide.The reveal-esque solution is to use the
r-fit-text
class on the<h1>
tag, such as described at https://revealjs.com/layout/#fit-text# My title that wraps several lines {.r-fit-text}
has no effect. I believe it's because of how the markdown is parsed. I gather from examples such as https://quarto.org/docs/presentations/revealjs/index.html#content-overflow that{.something}
(e.g., .scrollable) is meant to apply to the entire slide, rather than just the title.I know it can work, because I used it in a partial for the title slide:
A partial solution is
But then the level 1 entry in the TOC slide is blank.
I ultimately must use a level 1 slide by itself; that is, with no other info. This works, but is maybe a waste of the page in the PDFs generated (students sometime print things for studying, but maybe I need to forget about that!). It seems to be a Reveal philosophy, so maybe it's not worth trying to hack around it.f
EDIT: cleared up misuse of
r-text-fit
Beta Was this translation helpful? Give feedback.
All reactions