Skip to content
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

Per slide or per fragment background color #107

Open
Kabouik opened this issue Jun 16, 2021 · 3 comments
Open

Per slide or per fragment background color #107

Kabouik opened this issue Jun 16, 2021 · 3 comments

Comments

@Kabouik
Copy link

Kabouik commented Jun 16, 2021

It would be pretty nice to be able to set the background color, as this can be used to emphasize on some things or distinguish parts of a talk. present for instances has this feature (and some others, like effects), but it is missing full image support (among other things) so present and patat are not really interchangeable.

@jaspervdj
Copy link
Owner

Thanks for reporting! Looks like present uses this syntax on the first line of a slide:

<!-- fg=black bg=yellow -->

This seems compatible with what syntax patat uses right now, as we already ignore HTML comments. I'll see if I can hack on it a bit during ZuriHac.

@Kabouik
Copy link
Author

Kabouik commented Jun 17, 2021

Nice, I hope your attempts will be conclusive.

Do you foresee it would be technically possible to extend that to fragments, or maybe to make the background a fragment itself? I am new to patat but I assume fragments are limited (I think fragments can only be shown, not hidden, nor shown then hidden, and they can only appear from top to bottom of the text body), so perhaps this would imply more profound changes on fragments and would be a totally different task.

@jaspervdj
Copy link
Owner

I did part of this in #148, which adds a per-slide configuration. The background color isn't customizable but that can be tackled separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants