-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
embed-resources breaks title-slide-attributes in revealjs #7221
Comments
Yes definitely related. thanks ! |
Sorry if this only adds to the confusion. But I recently encounter this problem while revisiting a presentation I've made last year. The issue seems to be the same. title-slide-attributes:
data-background-image: imgs/image.svg
data-background-size: contain
data-background-opacity: "0.5" Is ignored if The weird part is that I could swear that as of 2023.05.23 it actually worked as expected and didn't cause any problems. So considering the age of the Pandoc issue it's hard to pin it only on it. Perhaps The solution to my problem was to convert all SVG images to PNG. Then it all works fine. My quarto version is Addendum: I've checked now with quarto v1.4.80 (latest before I made the original presentation). It doesn't have this problem. All SVGs are rendered correctly even with Also with 1.4.557 (latest release in 1.4) the SVGs are already broken, but in different ways from 1.5.56:
So I guess I'll just be sticking with 1.4.80 for now. |
@maxim-h Can you share a minimal example of your document that works with 1.4.557 and don't work with 1.5 ? thank you |
Sure, @cderv . Although I wouldn't say that 1.4.557 "works". 1.4.80 works for me. So, something like that:---
title: "My great presentation"
logo: imgs/renv.svg
format:
revealjs:
title-slide-attributes:
data-background-image: imgs/renv.svg
data-background-size: contain
data-background-opacity: "0.5"
theme:
dark
css: style/styles.css
---
# First slide
- inline SVG ![](imgs/drake.svg){.center}
- Other stuff
- Reuse logo SVG ![](imgs/renv.svg){.center} The .center{
margin: 0!important;
height: 40px;
width: 40px;
} I'm not sure If I should send you the HTML outputs. They're about 4Mb. But visually: 1.4.80 creates 2 slides like I want it to:1.4.557 creates only 1 slide that looks like this:1.5.56 creates only 1 slide that looks like this:Let me know if you want all the files with the HTML output. |
Bug description
Not sure if this is a quarto bug or revealjs bug. Using both
title-slide-attributes
andembed-resources
/self-contained
breaks the visuals of the presentation, shows title on all the slides and the first 2 slides get combined.Steps to reproduce
Changin
embed-resources
fromfalse
totrue
breaks both the visuals and also the 2 slides are combined into one.Expected behavior
embed-resources: true should not break other things.
Actual behavior
No response
Your environment
Quarto check output
The text was updated successfully, but these errors were encountered: