Open jakubkovac opened 1 year ago
Possibly related to:
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 embed-resources: true
. Also with some inline images like ![](imgs/logo.svg){.center}
the .center
css style is ignored only when embed-resources: true
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 quarto
used Pandoc with some other options back then?
The solution to my problem was to convert all SVG images to PNG. Then it all works fine.
My quarto version is 1.5.56
.
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 embed-resources:true
.
Also with 1.4.557 (latest release in 1.4) the SVGs are already broken, but in different ways from 1.5.56:
All these problems still seem to be related to title slide background and logo. If both are replaced by PNG, then all other SVGs are render correctly.
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.
---
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 style/styles.css
defines just the .center
:
.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:
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